A semantic search engine for source code https://bitshift.benkurtovic.com/
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 
 
 
 
 

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