index.html 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. <!DOCTYPE html>
  2. <html lang="zh-TW">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.0/dist/css/bootstrap.min.css" rel="stylesheet"
  8. integrity="sha384-KyZXEAg3QhqLMpG8r+8fhAXLRk2vvoC2f3B09zVXn8CA5QIVfZOJ3BCsw2P0p/We" crossorigin="anonymous">
  9. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css">
  10. <link rel="stylesheet" href="https://cdn.datatables.net/1.11.0/css/dataTables.bootstrap5.min.css">
  11. <script src="https://code.jquery.com/jquery-3.6.0.js" integrity="sha256-H+K7U5CnXl1h5ywQfKtSj8PCmoN9aaq30gDh27Xc0jk="
  12. crossorigin="anonymous"></script>
  13. <script src="https://cdn.datatables.net/1.11.0/js/jquery.dataTables.min.js"></script>
  14. <script src="https://cdn.datatables.net/1.11.0/js/dataTables.bootstrap5.min.js"></script>
  15. <style>
  16. @font-face {
  17. font-family: my_font;
  18. src: local("zh-cn.ttf") format("opentype");
  19. }
  20. * {
  21. font-family: my_font;
  22. }
  23. .add_search span {
  24. margin-bottom: 2px;
  25. font-size: 22px;
  26. }
  27. .add_search div {
  28. margin-top: 1px;
  29. }
  30. </style>
  31. <title>iCulture</title>
  32. </head>
  33. <body>
  34. <div class="container">
  35. <div class="p-5 mt-5">
  36. <div class="mb-3">
  37. <div for="search_query" class="form-label fw-bold">iCulture Semantic Search</div>
  38. <hr>
  39. <div class="row mb-3">
  40. <div class="col">
  41. <label for="start_date" class="form-label">Start Date</label>
  42. <input type="date" name="start_date" class="form-control col" id="start_date">
  43. </div>
  44. <div class="col">
  45. <label for="end_date" class="form-label">End Date</label>
  46. <input type="date" name="end_date" class="form-control col" id="end_date">
  47. </div>
  48. </div>
  49. <div class="row mb-3">
  50. <div class="col">
  51. <label for="top_k" class="form-label">Top K</label>
  52. <input type="number" name="top_k" class="form-control col" id="top_k" placeholder="default: 100">
  53. </div>
  54. <div class="col">
  55. <label for="similarity" class="form-label">Similarity</label>
  56. <input type="number" name="similarity" class="form-control col" id="similarity" placeholder="-1 - 1 (default: 0)">
  57. </div>
  58. </div>
  59. <label for="search_query" class="form-label">Search Query</label>
  60. <div class="input-group mb-3">
  61. <input type="text" name="query" class="form-control" id="search_query" placeholder="Search query...">
  62. <button class="btn btn-outline-primary" type="button" id="search"><i class="fas fa-search"></i></button>
  63. </div>
  64. <div class="d-flex align-items-center" style="height: 30px;">
  65. 擴大搜尋:
  66. <div id="add_keywords" class="add_search ms-1"></div>
  67. </div>
  68. <div class="d-flex align-items-center" style="height: 30px;">
  69. iCulture 類別:
  70. <div id="add_labels" class="add_search ms-1"></div>
  71. </div>
  72. <div class="d-flex align-items-center" style="height: 30px;">
  73. 人名:
  74. <div id="add_names" class="add_search ms-1"></div>
  75. </div>
  76. </div>
  77. </div>
  78. <div class="p-1 text-center" id="wordcloud"></div>
  79. <div class="p-5 about" id="tag_list"></div>
  80. <div class="p-5" id="results"></div>
  81. </div>
  82. <!-- Optional JavaScript; choose one of the two! -->
  83. <!-- Option 1: Bootstrap Bundle with Popper -->
  84. <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.0/dist/js/bootstrap.bundle.min.js"
  85. integrity="sha384-U1DAWAznBHeqEIlVSCgzq+c9gqGAJn5c/t99JyeKa9xxaYpSvHU5awsuZVVFIhvj"
  86. crossorigin="anonymous"></script>
  87. <!-- Option 2: Separate Popper and Bootstrap JS -->
  88. <!-- <script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.3/dist/umd/popper.min.js"
  89. integrity="sha384-eMNCOe7tC1doHpGoWe/6oMVemdAVTMs2xqW4mwXrXsW0L84Iytr2wi5v2QjrP/xp"
  90. crossorigin="anonymous"></script>
  91. <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.0/dist/js/bootstrap.min.js"
  92. integrity="sha384-cn7l7gDp0eyniUwwAZgrzD06kc/tftFf19TOAs2zVinnD/C7E91j9yyk5//jjpt/"
  93. crossorigin="anonymous"></script> -->
  94. <script src="static/main.js"></script>
  95. </body>
  96. </html>