bagder: curl-www sitesearch.t,1.1,1.2

[email protected] Wed, 15 Dec 2010 22:08:49 +0000
Newsgroups gmane.comp.web.curl.www.cvs
Message-ID <[email protected]>
Update of /cvsroot/curl/curl-www
In directory giant.haxx.se:/var/tmp/cvs-serv15383

Modified Files:
	sitesearch.t 
Log Message:
new google search


Index: sitesearch.t
===================================================================
RCS file: /cvsroot/curl/curl-www/sitesearch.t,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- sitesearch.t	7 Apr 2005 07:56:26 -0000	1.1
+++ sitesearch.t	15 Dec 2010 22:08:47 -0000	1.2
@@ -1,30 +1,10 @@
-<!-- SiteSearch Google -->
-<form method="get" action="http://www.google.com/custom" target="_top">
-<table border="0" bgcolor="#ffffff">
-<tr><td nowrap="nowrap" valign="top" align="left" height="32">
-<a href="http://www.google.com/">
-<img src="http://www.google.com/logos/Logo_25wht.gif"
-border="0" alt="Google"></img></a>
-</td>
-<td nowrap="nowrap">
-<input type="hidden" name="domains" value="curl.haxx.se"></input>
-<input type="text" name="q" size="31" maxlength="255" value=""></input>
-<input type="submit" name="sa" value="Search"></input>
-</td></tr>
-<tr>
-<td>&nbsp;</td>
-<td nowrap="nowrap">
-<font size="-1" color="#000000">
-<input type="radio" name="sitesearch" value=""></input> Web
-<input type="radio" name="sitesearch" value="curl.haxx.se" checked="checked"></input>curl.haxx.se
-</font>&nbsp;&nbsp;
-<input type="hidden" name="client" value="pub-9313125053076989"></input>
-<input type="hidden" name="forid" value="1"></input>
-<input type="hidden" name="ie" value="ISO-8859-1"></input>
-<input type="hidden" name="oe" value="ISO-8859-1"></input>
-<input type="hidden" name="cof" value="GALT:#0066CC;GL:1;DIV:#999999;VLC:336633;AH:center;BGC:FFFFFF;LBGC:FF9900;ALC:0066CC;LC:0066CC;T:000000;GFNT:666666;GIMP:666666;FORID:1;"></input>
-<input type="hidden" name="hl" value="en"></input>
-
-</td></tr></table>
-</form>
-<!-- SiteSearch Google -->
+<div id="cse" style="width: 100%;">Loading</div>
+<script src="http://www.google.com/jsapi" type="text/javascript"></script>
+<script type="text/javascript">
+  google.load('search', '1', {language : 'en', style : google.loader.themes.MINIMALIST});
+  google.setOnLoadCallback(function() {
+    var customSearchControl = new google.search.CustomSearchControl('011822591736674932359:hjyomzjfopc');
+    customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET);
+    customSearchControl.draw('cse');
+  }, true);
+</script>