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.
 
 
 
 
 
 

131 rivejä
3.9 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. {{ assets.tag("highlight.css") }}
  12. <script>
  13. AUTOCOMPLETE_LANGUAGES = {{ autocomplete_languages | safe }};
  14. </script>
  15. = endblock
  16. = block body
  17. <div id="search-field">
  18. <a id="title" href="/">
  19. <div id="title">
  20. <span id="title-bit">bit</span
  21. ><span id="title-angle">&laquo;</span
  22. ><span id="title-shift">shift</span>
  23. </div>
  24. </a>
  25. <form id="search-bar">
  26. <input type="text" name="query"
  27. ><button id="advanced-search" title="advanced search">
  28. <img src="static/img/search_bar_magnifying_glass.png">
  29. </button>
  30. <div id="advanced-search">
  31. <div id="heading">
  32. <div id="col1">Fields</div
  33. ><div id="col2">Search groups</div>
  34. </div>
  35. <div id="sidebar">
  36. <ul>
  37. <li>
  38. <input type="checkbox" id="language" checked="true">
  39. <label for="language"><div>languages</div></label>
  40. </li>
  41. <li>
  42. <input type="checkbox" id="author">
  43. <label for="author"><div>authors</div></label>
  44. </li>
  45. <li>
  46. <input type="checkbox" id="date-last-modified">
  47. <label for="date-last-modified"><div>date last modified</div></label>
  48. </li>
  49. <li>
  50. <input type="checkbox" id="date-created">
  51. <label for="date-created"><div>date created</div></label>
  52. </li>
  53. <li>
  54. <input type="checkbox" id="symbol">
  55. <label for="symbol"><div>symbols</div></label>
  56. </li>
  57. <li>
  58. <input type="checkbox" id="function">
  59. <label for="function"><div>functions</div></label>
  60. </li>
  61. <li>
  62. <input type="checkbox" id="class">
  63. <label for="class"><div>classes</div></label>
  64. </li>
  65. <li>
  66. <input type="checkbox" id="variable">
  67. <label for="variable"><div>variables</div></label>
  68. </li>
  69. </ul>
  70. <button id="add-group">
  71. <div><span>+</span> Add</div>
  72. </button>
  73. <button id="remove-group">
  74. <div><span>-</span> Remove</div>
  75. </button>
  76. </div>
  77. <div id="search-groups">
  78. <div class="search-group" id="selected">
  79. <div id="language">
  80. <div class="name">language</div>
  81. <input id="autocomplete" class="language" name="language" type="text">
  82. <input type="checkbox" name="regex">
  83. <span class="regex">Regex</span>
  84. </div>
  85. </div>
  86. <<<<<<< HEAD
  87. =======
  88. <div id="lower-half">
  89. <ul>
  90. <li>
  91. <label for="symbols">Symbols</label>
  92. <input type="text" name="symbols" id="symbols"><br>
  93. </li>
  94. <li>
  95. <label for="functions">Functions</label>
  96. <input type="text" name="functions" id="functions"><br>
  97. </li>
  98. <li>
  99. <label for="classes">Classes</label>
  100. <input type="text" name="classes" id="classes"><br>
  101. </li>
  102. <li>
  103. <label for="variables">Variables</label>
  104. <input type="text" name="variables" id="variables"><br>
  105. </li>
  106. </ul>
  107. </div>
  108. >>>>>>> Search results are now code blocks. Used pygments to parse a block of code into html, and used html styles to highlight the text.
  109. </div>
  110. </div>
  111. </form>
  112. </div>
  113. <div id="results"></div>
  114. {{ assets.tag("index.js") }}
  115. {{ assets.tag("index.advanced-search-form.js") }}
  116. = endblock