A semantic search engine for source code https://bitshift.benkurtovic.com/
Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 
 
 

100 linhas
2.9 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="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>language</div>
  80. <input id="language" type="text">
  81. <input type="checkbox" name="regex"><span>Regex</span>
  82. </div>
  83. </div>
  84. </div>
  85. </div>
  86. </form>
  87. </div>
  88. <div id="results"></div>
  89. {{ assets.tag("index.js") }}
  90. = endblock