On May 27, 2:22 am, "Jonathan Aquino" <jonathan.aqu
...@gmail.com>
wrote:
Thanks Jon. I'd been looking for an official yubnub for iphone site
and given up. I found Andreas' code a week ago and set it up on my own
server and (I think) improved it a bit. The quick search buttons now
key into iphone optimized searches (ipg instead of g for google, wkm
instead of wp for wikipedia, etc). There's also a drop down menu for
extras. Feel free to use or not use it.
Ell
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>mobileYub</title>
<meta name = "viewport" content = "width = 200">
<script type="text/javascript">
function focus(){document.input_box.command.focus();}
function prepend(arg){
oldVal = document.input_box.command.value;
document.input_box.command.value = arg;
focus();
}
</script>
</head>
<body OnLoad="document.input_box.command.focus();">
<div style="text-align:right;margin-right:5px;margin-top:7px">
<form action="http://yubnub.org/parser/parse" method="get"
name="input_box">
<select name="searchType" value="ipg "
onchange="document.input_box.command.value=this
[this.selectedIndex].value;document.input_box.searchType.value=this
[this.selectedIndex].value;">
<option value="ipg ">Google</option>
<option value="gmap ">Google Maps</option>
<option value="gdef ">Google Definitions</option>
<option value="gmail ">Gmail</option>
<option value="walf ">Wolfram Alpha</option>
<option value="mespn ">ESPN</option>
<option value="iyt ">YouTube</option>
<option value="mflkr ">Flickr</option>
<option value="ebay ">eBay</option>
<option value="imdb ">IMDb</option>
<option value="rotten ">Rotten Tomatoes</option>
<option value="cld -wr -wt ">CraigsList</option>
<option value="> ">> SiteQuery</option>
<option value="2g ">Google SplitPane</option>
<option value="ask ">Ask</option>
<option value="c ">Cuil</option>
</select>
<input type="button"
onclick="document.input_box.command.value=document.input_box.searchType.val ue;document.input_box.command.focus
();" value="pick">
<div style="margin-top:3px">
<input type="text" name="command" size = "26" value="ipg "/
> <br>
<input type="button"
onclick="document.input_box.command.value='';document.input_box.command.foc us
();" value="clear">
<input type="submit" value="submit">
<hr />
</div>
<div style="margin-top:10px">
<!-- Add custom shortcuts below -->
<input type="button" onclick="prepend('ipg ')" value="g">
<input type="button" onclick="prepend('iig ')"
value="image">
<input type="button" onclick="prepend('wkm ')"
value="wkpda">
</div>
<div style="margin-top:1.5px">
<input type="button" onclick="prepend('ypm -wt -wr ')"
value="yelp">
<input type="button" onclick="prepend('azm ')"
value="amazon">
</div>
<div id="topper" >mobileYub</div>
</form>
</div>
</body>
<style type="text/css" media="screen">
body {
}
body.h {
color: #484D4F;
}
#topper {
font-family: sans-serif;
margin-top:40px;
margin-right:5px;
font-size: 14pt;
}
</style>
</html>