You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.html 1009B

8 years ago
8 years ago
8 years ago
12345678910111213141516171819202122232425262728293031323334
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <link rel="stylesheet/less" type="text/css" href="style.less"/>
  5. <title>Wikipedia search (powered by tantivy)</title>
  6. </head>
  7. <body>
  8. <script id="template" type="x-tmpl-mustache">
  9. <div class='query'>{{ query }}</div>
  10. <div class='num_hits'>{{ num_hits }} articles</div>
  11. <ul class="timings">
  12. {{#timings}}
  13. <li>{{name}} - {{duration}} &mu;s</li>
  14. {{/timings}}
  15. </ul>
  16. </ul>
  17. <ul class='hits'>
  18. {{#hits}}
  19. <li>{{title}}</li>
  20. {{/hits}}
  21. </ul>
  22. </script>
  23. <form onsubmit="event.preventDefault(); search();">
  24. <input type="text" id="q" autocomplete="off"></input>
  25. <!-- <input type="submit"></input> -->
  26. </form>
  27. <div id="serp"></div>
  28. <script src="less.min.js" type="text/javascript"></script>
  29. <script src="https://cdnjs.cloudflare.com/ajax/libs/mustache.js/2.2.1/mustache.min.js"></script>
  30. <script src="https://code.jquery.com/jquery-1.12.0.min.js"></script>
  31. <script src="main.js"></script>
  32. </body>
  33. </html>