PageRenderTime 35ms CodeModel.GetById 23ms app.highlight 4ms RepoModel.GetById 2ms 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
 7    <link rel="stylesheet" href="/styles/bootstrap.css" type="text/css">
 8    <link rel="stylesheet" href="/styles/home.css" type="text/css">
 9
10    <meta itemprop="name" content="DaveDaveFind">
11    <meta itemprop="image" content="http://davedavefind.appspot.com/">
12    <meta name="viewport" content="width=device-width, initial-scale=1.0">
13
14    <title>DaveDaveFind</title>
15    <script type="text/javascript">
16
17    var _gaq = _gaq || [];
18    _gaq.push(['_setAccount', 'UA-30777226-1']);
19    _gaq.push(['_trackPageview']);
20
21    (function() {
22        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
23        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
24        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
25    })();
26    
27    </script>
28</head>
29<body>
30    <div class="container">
31	    <div class="row">
32		    <div class="span6 offset4" id="searchdiv">
33		        <h1>DaveDave<strong class="orange">Find</strong></h1>
34		        <form action="/search" method="GET" id="searchbox" class="well form-search">
35  				    <input id="searchinput" type="text" name="search_query">
36  				    <button type="submit" class="btn btn-warning"><i class="icon-search icon-white"></i> </button>
37			    </form>
38		    </div>
39	    </div>
40    <div class="navbar navbar-fixed-bottom">
41        <div class="navbar-inner">
42                <ul class="nav pull-left" data-no-collapse="true">
43                    <li class="dropdown" data-no-collapse="true">
44                        <a href="#" class="dropdown-toggle"data-toggle="dropdown">
45                        About
46                        <b class="caret"></b>
47                        </a>
48                        <div class="dropdown-menu infobox" data-no-collapse="true">
49                            <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>
50      <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>
51                        </div>
52                    </li>
53                    <li class="dropdown" data-no-collapse="true">
54                        <a href="#" class="dropdown-toggle" data-toggle="dropdown">
55                        Help
56                        <b class="caret"></b>
57                        </a>
58                        <div class="dropdown-menu infobox" data-no-collapse="true">
59                            <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>
60      <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>
61      <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> 
62                        </div>
63                    </li>
64                </ul>
65                <div class="pull-right">
66                    <a href="https://twitter.com/share" class="twitter-share-button" data-text="DaveDaveFind: the search engine Udacity promised!" data-related="ecmendenhall">Tweet</a>
67                    <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>
68                    <g:plusone size="medium"></g:plusone>
69                    <script type="text/javascript">
70                    (function() {
71                        var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
72                        po.src = 'https://apis.google.com/js/plusone.js';
73                        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
74                    })();
75                    </script>
76                </div>
77            </div>
78    </div>
79</body>
80</html>