Team:UCL London/Search
From 2010.igem.org
(Difference between revisions)
Line 26: | Line 26: | ||
function onLoad() { | function onLoad() { | ||
- | + | ||
- | + | var customSearchControl = new google.search.CustomSearchControl('015037489037541248416:puabtvcdnqy'); | |
- | var customSearchControl = new google.search.CustomSearchControl( | + | |
- | + | ||
- | + | ||
var drawOptions = new google.search.DrawOptions(); | var drawOptions = new google.search.DrawOptions(); | ||
drawOptions.setAutoComplete(true); | drawOptions.setAutoComplete(true); | ||
- | |||
- | |||
customSearchControl.draw('results', drawOptions); | customSearchControl.draw('results', drawOptions); | ||
- | |||
customSearchControl.execute(getQuery()); | customSearchControl.execute(getQuery()); | ||
} | } | ||
Line 43: | Line 37: | ||
google.setOnLoadCallback(onLoad); | google.setOnLoadCallback(onLoad); | ||
</script> | </script> | ||
- | |||
- | |||
<div id="results">Loading...</div> | <div id="results">Loading...</div> | ||
- | |||
</html> | </html> | ||
{{:Team:UCL_London/templates/v2/footerFullWidth}} | {{:Team:UCL_London/templates/v2/footerFullWidth}} |
Revision as of 14:45, 29 August 2010
Loading...