A semantic search engine for source code https://bitshift.benkurtovic.com/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

124 lines
4.0 KiB

  1. = extends "layout.html"
  2. = block title
  3. Home
  4. = endblock
  5. = block head
  6. {{ assets.tag("lib/jqueryui.custom.min.css") }}
  7. {{ assets.tag("lib/jquery.min.js") }}
  8. {{ assets.tag("lib/jquery-ui.min.js") }}
  9. {{ assets.tag("lib/typeahead.bundle.min.js") }}
  10. {{ assets.tag("index.css") }}
  11. <script>
  12. TYPEAHEAD_LANGUAGES = {{ typeahead_languages | safe }};
  13. </script>
  14. = endblock
  15. = block body
  16. <div id="search-field" class="partly-visible">
  17. <a id="title" href="/">
  18. <div id="title">
  19. <span id="title-bit">bit</span
  20. ><span id="title-angle">&laquo;</span
  21. ><span id="title-shift">shift</span>
  22. </div>
  23. </a>
  24. <form id="search-bar">
  25. <input type="text" name="query"
  26. ><button id="advanced-search" title="advanced search">
  27. <img src="static/img/search_bar_magnifying_glass.png">
  28. </button>
  29. <div id="advanced-search">
  30. <div id="sidebar">
  31. <div>
  32. Fields
  33. </div>
  34. <ul>
  35. <li>
  36. <input type="checkbox" id="language"/>
  37. <label for="language"><div>languages</div></label>
  38. </li>
  39. <li>
  40. <input type="checkbox" id="author"/>
  41. <label for="author"><div>authors</div></label>
  42. </li>
  43. <li>
  44. <input type="checkbox" id="modified"/>
  45. <label for="modified"><div>date last modified</div></label>
  46. </li>
  47. <li>
  48. <input type="checkbox" id="created"/>
  49. <label for="created"><div>date created</div></label>
  50. </li>
  51. <li>
  52. <input type="checkbox" id="symbol"/>
  53. <label for="symbol"><div>symbols</div></label>
  54. </li>
  55. <li>
  56. <input type="checkbox" id="function"/>
  57. <label for="function"><div>functions</div></label>
  58. </li>
  59. <li>
  60. <input type="checkbox" id="class"/>
  61. <label for="class"><div>classes</div></label>
  62. </li>
  63. <li>
  64. <input type="checkbox" id="variable"/>
  65. <label for="variable"><div>variables</div></label>
  66. </li>
  67. </ul>
  68. <button id="add-group">
  69. <!-- <div> -->
  70. +
  71. <!-- </div> -->
  72. </button>
  73. </div>
  74. <div id="search-groups">
  75. <div class="search-group">
  76. <div>
  77. <div>Authors</div>
  78. <input type="text">
  79. <input type="checkbox" name="regex"><span>Regex?</span>
  80. </div>
  81. <div>
  82. <div>Language</div>
  83. <input type="text">
  84. <input type="checkbox" name="regex"><span>Regex?</span>
  85. </div>
  86. </div>
  87. <div class="search-group">Hello, world. 2</div>
  88. <div class="search-group">Hello, world. 3</div>
  89. <div class="search-group">Hello, world. 4</div>
  90. <div class="search-group">Hello, world. 5</div>
  91. <div class="search-group">Hello, world. 6</div>
  92. <div class="search-group">Hello, world. 7</div>
  93. <div class="search-group">Hello, world. 8</div>
  94. <div class="search-group">Hello, world. 9</div>
  95. <div class="search-group">Hello, world. 10</div>
  96. <div class="search-group">Hello, world. 11</div>
  97. <div class="search-group">Hello, world. 12</div>
  98. <div class="search-group">Hello, world. 13</div>
  99. <div class="search-group">Hello, world. 14</div>
  100. <div class="search-group">Hello, world. 15</div>
  101. <div class="search-group">Hello, world. 16</div>
  102. <div class="search-group">Hello, world. 17</div>
  103. <div class="search-group">Hello, world. 18</div>
  104. <div class="search-group">Hello, world. 19</div>
  105. <div class="search-group">Hello, world. 20</div>
  106. <div class="search-group">Hello, world. 21</div>
  107. <div class="search-group">Hello, world. 22</div>
  108. </div>
  109. </div>
  110. </form>
  111. </div>
  112. <div id="results"></div>
  113. {{ assets.tag("index.js") }}
  114. = endblock