A semantic search engine for source code https://bitshift.benkurtovic.com/
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 
 
 

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