A semantic search engine for source code https://bitshift.benkurtovic.com/
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

index.html 3.1 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  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 class="language" name="language" type="text">
  81. <input type="checkbox" name="regex"><span class="regex">Regex</span>
  82. </div>
  83. </div>
  84. </div>
  85. <!-- Temporary. -->
  86. <button onclick="assembleQuery()">
  87. Assemble
  88. </button>
  89. </div>
  90. </form>
  91. </div>
  92. <div id="results"></div>
  93. {{ assets.tag("index.js") }}
  94. {{ assets.tag("index.advanced-search-form.js") }}
  95. = endblock