Team:UCL London/Search
From 2010.igem.org
(Difference between revisions)
(New page: {{:Team:UCL_London/templates/v2/headerFullWidth}} {{:Team:UCL_London/templates/v2/footerFullWidth}}) |
|||
(6 intermediate revisions not shown) | |||
Line 1: | Line 1: | ||
{{:Team:UCL_London/templates/v2/headerFullWidth}} | {{:Team:UCL_London/templates/v2/headerFullWidth}} | ||
+ | <html> | ||
+ | <link rel="stylesheet" href="http://www.google.com/cse/style/look/greensky.css" type="text/css" /> | ||
+ | <script src="http://www.google.com/jsapi" type="text/javascript"></script> | ||
+ | <script type="text/javascript"> | ||
+ | google.load('search', '1'); | ||
+ | |||
+ | function onLoad() { | ||
+ | // Create a custom search control that uses a CSE restricted to | ||
+ | // code.google.com | ||
+ | var customSearchControl = new google.search.CustomSearchControl( | ||
+ | '015037489037541248416:puabtvcdnqy'); | ||
+ | |||
+ | var drawOptions = new google.search.DrawOptions(); | ||
+ | drawOptions.setAutoComplete(true); | ||
+ | |||
+ | // Draw the control in content div | ||
+ | customSearchControl.draw('results', drawOptions); | ||
+ | |||
+ | // Run a query | ||
+ | customSearchControl.execute(getQuery()); | ||
+ | } | ||
+ | |||
+ | google.setOnLoadCallback(onLoad); | ||
+ | </script> | ||
+ | |||
+ | |||
+ | <div id="results">Loading...</div> | ||
+ | |||
+ | |||
+ | |||
+ | </html> | ||
{{:Team:UCL_London/templates/v2/footerFullWidth}} | {{:Team:UCL_London/templates/v2/footerFullWidth}} |
Latest revision as of 14:52, 29 August 2010
Loading...