A semantic search engine for source code https://bitshift.benkurtovic.com/
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 
 
 
 
 

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