Created
December 13, 2011 23:25
-
-
Save wata/1474446 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Perl Search</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> | |
<meta name="format-detection" content="telephone=no" /> | |
<link rel="apple-touch-icon" href="apple-touch-icon.png" /> | |
<style> | |
html, body { margin:0; background-color:#DAE0E5; word-break:break-all; } | |
h1 { text-align:center; text-shadow:0 1px 1px white; } | |
</style> | |
</head> | |
<body> | |
<h1>Perl Search</h1> | |
<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 : 'ja', style : google.loader.themes.SHINY}); | |
google.setOnLoadCallback(function() { | |
var customSearchControl = new google.search.CustomSearchControl( | |
'005484293586313258657:5fxw7c2nyp0'); | |
customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET); | |
var options = new google.search.DrawOptions(); | |
options.setAutoComplete(true); | |
customSearchControl.draw('cse', options); | |
}, true); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment