A semantic search engine for source code https://bitshift.benkurtovic.com/
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 
 
 
 

120 rader
3.7 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/highlight.css") }}
  10. {{ assets.tag("index.css") }}
  11. <script>
  12. AUTOCOMPLETE_LANGUAGES = {{ autocomplete_languages | safe }};
  13. </script>
  14. = endblock
  15. = block body
  16. <div id="search-field">
  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 id="query" type="text" name="query"
  26. ><button id="advanced-search" title="advanced search" type="button">
  27. Adv. Search
  28. <!-- <img src="img/index/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">
  34. Search groups
  35. <button id="add-group">
  36. <div><span>+</span> Add</div>
  37. </button>
  38. <button id="remove-group">
  39. <div><span>-</span> Remove</div>
  40. </button>
  41. </div>
  42. </div>
  43. <div id="sidebar">
  44. <ul>
  45. <li>
  46. <input type="checkbox" id="language" checked="true">
  47. <label for="language"><div>languages</div></label>
  48. </li>
  49. <li>
  50. <input type="checkbox" id="author">
  51. <label for="author"><div>authors</div></label>
  52. </li>
  53. <li>
  54. <input type="checkbox" id="date-last-modified">
  55. <label for="date-last-modified"><div>date last modified</div></label>
  56. </li>
  57. <li>
  58. <input type="checkbox" id="date-created">
  59. <label for="date-created"><div>date created</div></label>
  60. </li>
  61. <li>
  62. <input type="checkbox" id="symbol">
  63. <label for="symbol"><div>symbols</div></label>
  64. </li>
  65. <li>
  66. <input type="checkbox" id="function">
  67. <label for="function"><div>functions</div></label>
  68. </li>
  69. <li>
  70. <input type="checkbox" id="class">
  71. <label for="class"><div>classes</div></label>
  72. </li>
  73. <li>
  74. <input type="checkbox" id="variable">
  75. <label for="variable"><div>variables</div></label>
  76. </li>
  77. </ul>
  78. </div>
  79. <div id="search-groups">
  80. <div class="search-group" id="selected">
  81. <div id="language">
  82. <div class="name">languages</div
  83. ><input id="autocomplete" class="language" name="language" type="text"
  84. ><input type="checkbox" name="regex"
  85. ><span class="regex">Regex</span>
  86. </div>
  87. </div>
  88. </div>
  89. </div>
  90. </form>
  91. </div>
  92. <div id="results"></div>
  93. {{ assets.tag("index.js") }}
  94. {{ assets.tag("index.advanced-search-form.js") }}
  95. = endblock
  96. = block after_body
  97. <div id="hotkey-help" class="hidden">
  98. <div>Hotkeys</div>
  99. <ul>
  100. <li><span class="hotkey">k</span> <span class="seperator">:</span> move window up to the previous result</li>
  101. <li><span class="hotkey">j</span> <span class="seperator">:</span> move window down to the next result</li>
  102. <li><span class="hotkey">h</span> <span class="seperator">:</span> move to the previous symbol match</li>
  103. <li><span class="hotkey">l</span> <span class="seperator">:</span> move to the next symbol match</li>
  104. <li><span class="hotkey">?</span> <span class="seperator">:</span> toggle help</li>
  105. </ul>
  106. </div>
  107. = endblock