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

126 行
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/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. <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. <form id="search-bar">
  24. <input type="text" name="query"
  25. ><button id="advanced-search" title="advanced search">
  26. <img src="static/img/search_bar_magnifying_glass.png">
  27. </button>
  28. <div id="advanced-search">
  29. <div id="heading">
  30. <div id="col1">Fields</div
  31. ><div id="col2">Search groups</div>
  32. </div>
  33. <div id="sidebar">
  34. <ul>
  35. <li>
  36. <input type="checkbox" id="language" checked="true">
  37. <label for="language"><div>languages</div></label>
  38. </li>
  39. <li>
  40. <input type="checkbox" id="author">
  41. <label for="author"><div>authors</div></label>
  42. </li>
  43. <li>
  44. <input type="checkbox" id="date-last-modified">
  45. <label for="date-last-modified"><div>date last modified</div></label>
  46. </li>
  47. <li>
  48. <input type="checkbox" id="date-created">
  49. <label for="date-created"><div>date created</div></label>
  50. </li>
  51. <li>
  52. <input type="checkbox" id="symbol">
  53. <label for="symbol"><div>symbols</div></label>
  54. </li>
  55. <li>
  56. <input type="checkbox" id="function">
  57. <label for="function"><div>functions</div></label>
  58. </li>
  59. <li>
  60. <input type="checkbox" id="class">
  61. <label for="class"><div>classes</div></label>
  62. </li>
  63. <li>
  64. <input type="checkbox" id="variable">
  65. <label for="variable"><div>variables</div></label>
  66. </li>
  67. </ul>
  68. <button id="add-group">
  69. <div><span>+</span> Add</div>
  70. </button>
  71. <button id="remove-group">
  72. <div><span>-</span> Remove</div>
  73. </button>
  74. </div>
  75. <div id="search-groups">
  76. <div class="search-group" id="selected">
  77. <div id="language">
  78. <div class="name">language</div>
  79. <input id="autocomplete" class="language" name="language" type="text">
  80. <input type="checkbox" name="regex">
  81. <span class="regex">Regex</span>
  82. </div>
  83. </div>
  84. <div id="lower-half">
  85. <ul>
  86. <li>
  87. <label for="symbols">Symbols</label>
  88. <input type="text" name="symbols" id="symbols"><br>
  89. </li>
  90. <li>
  91. <label for="functions">Functions</label>
  92. <input type="text" name="functions" id="functions"><br>
  93. </li>
  94. <li>
  95. <label for="classes">Classes</label>
  96. <input type="text" name="classes" id="classes"><br>
  97. </li>
  98. <li>
  99. <label for="variables">Variables</label>
  100. <input type="text" name="variables" id="variables"><br>
  101. </li>
  102. </ul>
  103. </div>
  104. </div>
  105. </div>
  106. </form>
  107. </div>
  108. <div id="results"></div>
  109. {{ assets.tag("index.js") }}
  110. {{ assets.tag("index.advanced-search-form.js") }}
  111. = endblock