A semantic search engine for source code https://bitshift.benkurtovic.com/
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 
 
 
 
 

98 řádky
2.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("index.css") }}
  11. <script>
  12. TYPEAHEAD_LANGUAGES = {{ typeahead_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">
  27. <img src="static/img/search_bar_magnifying_glass.png">
  28. </button>
  29. <div id="advanced-search">
  30. <div id="sidebar">
  31. <div>
  32. Fields
  33. </div>
  34. <ul>
  35. <li>
  36. <input type="checkbox" id="language" checked/>
  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="modified"/>
  45. <label for="modified"><div>date last modified</div></label>
  46. </li>
  47. <li>
  48. <input type="checkbox" id="created"/>
  49. <label for="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>
  70. <span>+</span> Add group
  71. </div>
  72. </button>
  73. </div>
  74. <div id="search-groups">
  75. <div class="search-group" id="selected">
  76. <div id="language">
  77. <div>language</div>
  78. <input id="language" type="text">
  79. <input type="checkbox" name="regex"><span>Regex</span>
  80. </div>
  81. </div>
  82. </div>
  83. </div>
  84. </form>
  85. </div>
  86. <div id="results"></div>
  87. {{ assets.tag("index.js") }}
  88. = endblock