PageRenderTime 68ms CodeModel.GetById 27ms RepoModel.GetById 0ms app.codeStats 0ms

/templates/home.tpl

https://github.com/uloga/DaveDaveFind
Smarty Template | 80 lines | 74 code | 6 blank | 0 comment | 5 complexity | a0cd8afd65db77dc910912002b471a53 MD5 | raw file
  1. <!DOCTYPE html>
  2. <html itemscope itemtype="http://schema.org/Product">
  3. <head>
  4. <script src="/styles/jquery-1.7.2.min.js" type="text/javascript"></script>
  5. <script src="/styles/bootstrap.js" type="text/javascript"></script>
  6. <link rel="stylesheet" href="/styles/bootstrap.css" type="text/css">
  7. <link rel="stylesheet" href="/styles/home.css" type="text/css">
  8. <meta itemprop="name" content="DaveDaveFind">
  9. <meta itemprop="image" content="http://davedavefind.appspot.com/">
  10. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  11. <title>DaveDaveFind</title>
  12. <script type="text/javascript">
  13. var _gaq = _gaq || [];
  14. _gaq.push(['_setAccount', 'UA-30777226-1']);
  15. _gaq.push(['_trackPageview']);
  16. (function() {
  17. var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
  18. ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
  19. var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  20. })();
  21. </script>
  22. </head>
  23. <body>
  24. <div class="container">
  25. <div class="row">
  26. <div class="span6 offset4" id="searchdiv">
  27. <h1>DaveDave<strong class="orange">Find</strong></h1>
  28. <form action="/search" method="GET" id="searchbox" class="well form-search">
  29. <input id="searchinput" type="text" name="search_query">
  30. <button type="submit" class="btn btn-warning"><i class="icon-search icon-white"></i> </button>
  31. </form>
  32. </div>
  33. </div>
  34. <div class="navbar navbar-fixed-bottom">
  35. <div class="navbar-inner">
  36. <ul class="nav pull-left" data-no-collapse="true">
  37. <li class="dropdown" data-no-collapse="true">
  38. <a href="#" class="dropdown-toggle"data-toggle="dropdown">
  39. About
  40. <b class="caret"></b>
  41. </a>
  42. <div class="dropdown-menu infobox" data-no-collapse="true">
  43. <p><strong>DaveDave<span class="orange">Find</span></strong> was built by <a href="http://twitter.com/ecmendenhall/">@ecmendenhall</a> with lots of help from <a href="http://www.udacity.com/">Udacity</a> and <a href="http://www.cs.virginia.edu/~evans/">David Evans</a>. You can learn to make your own search engine in <a href="http://www.udacity.com/overview/Course/cs101">CS101</a>, learn about web applications like this one in <a href="http://www.udacity.com/overview/Course/cs253/">CS253</a>, read more about this project on its <a href="http://davedavefind.tumblr.com/">development blog</a>, or see the code on <a href="http://github.com/ecmendenhall/DaveDaveFind">GitHub</a>.</p>
  44. <p>The search crawler and web application were written in <a href="http://python.org">Python</a>, using the <a href="http://bottlepy.org/docs/dev/">Bottle</a> web framework on <a href="https://developers.google.com/appengine/">Google App Engine</a>. The crawler code uses <a href="http://www.crummy.com/software/BeautifulSoup/">BeautifulSoup</a> to read HTML, <a href="http://nikitathespider.com/python/rerp/">Nikita the Spider</a> to read robots.txt files, and the <a href="http://duckduckgo.com/api.html">DuckDuckGo API</a> to search Python documentation. Pages are styled with <a href="http://twitter.github.com/bootstrap/index.html">Twitter Bootstrap</a> and enhanced by <a href="http://glyphicons.com/">Glyphicons</a>.</p>
  45. </div>
  46. </li>
  47. <li class="dropdown" data-no-collapse="true">
  48. <a href="#" class="dropdown-toggle" data-toggle="dropdown">
  49. Help
  50. <b class="caret"></b>
  51. </a>
  52. <div class="dropdown-menu infobox" data-no-collapse="true">
  53. <p><strong>DaveDave<span class="orange">Find</span></strong> searches the full-text of the <a href="http://udacity.com/">Udacity website</a>, <a href="http://www.udacity-forums.com/cs101/">CS101 forums</a>, course documents, and lecture transcripts. It supports multi-word lookup (but sometimes delivers better results for single words).</p>
  54. <p>If your search query is found in a video transcript, it will try to link inside the video to the moment the query occurs. If your search query is a common Python-related term, it will try to look up information in the Python documentation. Try searching for the name of a built-in function or standard library module, like <code>str</code> or <code>urllib</code>.</P>
  55. <p>The search box also accepts commands inspired by <a href="http://duckduckgo.com/bang.html">bang syntax</a>. Try typing <code>--forum</code> before your search query to search the CS101 discussion forum, <code>--python</code> to search Python documentation, or <code>--daverank</code> to show the DaveRank‌™ for each result underneath its URL.</p>
  56. </div>
  57. </li>
  58. </ul>
  59. <div class="pull-right">
  60. <a href="https://twitter.com/share" class="twitter-share-button" data-text="DaveDaveFind: the search engine Udacity promised!" data-related="ecmendenhall">Tweet</a>
  61. <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
  62. <g:plusone size="medium"></g:plusone>
  63. <script type="text/javascript">
  64. (function() {
  65. var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
  66. po.src = 'https://apis.google.com/js/plusone.js';
  67. var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
  68. })();
  69. </script>
  70. </div>
  71. </div>
  72. </div>
  73. </body>
  74. </html>