A semantic search engine for source code https://bitshift.benkurtovic.com/
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 
 
 
 
 

103 Zeilen
3.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("lib/highlight.css") }}
  11. {{ assets.tag("index.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. </div>
  87. </div>
  88. </form>
  89. </div>
  90. <div id="results"></div>
  91. {{ assets.tag("index.js") }}
  92. {{ assets.tag("index.advanced-search-form.js") }}
  93. = endblock