Yubnub on the iPhone/iPod touch

2 views
Skip to first unread message

garamond

unread,
Jul 18, 2008, 9:24:45 AM7/18/08
to YubNub
Here's a quick fix for using Yubnub on the Mobile Safari platform.
Make the following HTML code accessible online or store it on the
device, e.g. with http://iwebsaver.com

<!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>Mobile Yubnub</title>
<meta name = "viewport" content = "width = 200">
<meta name="apple-touch-fullscreen" content="YES" />
<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 +
oldVal;
focus();
}
</script>
</head>

<body>
<div style="text-align:center;margin-top:80px">
<form action="http://yubnub.org/parser/parse" method="get"
name="input_box">
<input type="text" name="command" size="25" value="" />
<input type="submit" value="submit">
<input type="reset" value="reset">
<hr />
<!-- Add custom shortcuts below -->
<input type="button" onclick="prepend('# ')" value="#">
<input type="button" onclick="prepend('wpen ')" value="wpen">
<input type="button" onclick="prepend('wpde ')" value="wpde">
</form>
</div>
</body>
</html>

Jonathan Aquino

unread,
Jul 21, 2008, 10:41:50 PM7/21/08
to Yub...@googlegroups.com, garamond
Thanks Andreas. I'll put this on my todo list - maybe will redirect to this
page if the user agent indicates that the device is an iPhone.

Jon

Jonathan Aquino

unread,
May 27, 2009, 2:22:06 AM5/27/09
to garamond, Yub...@googlegroups.com
Thanks Andreas - done.
http://yubnub.org/iphone.html

Jon


> -----Original Message-----
> From: Yub...@googlegroups.com
> [mailto:Yub...@googlegroups.com] On Behalf Of garamond
> Sent: Friday, July 18, 2008 6:25 AM
> To: YubNub
> Subject: Yubnub on the iPhone/iPod touch
>
>

ell

unread,
May 27, 2009, 8:54:49 PM5/27/09
to YubNub
On May 27, 2:22 am, "Jonathan Aquino" <jonathan.aqu...@gmail.com>
wrote:
> Thanks Andreas - done.http://yubnub.org/iphone.html


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.value;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.focus
();" 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>
Reply all
Reply to author
Forward
0 new messages