Send this to a friend
1
2 <input type="text" autocorrect="off" autocapitalize="off">
3
4
5 <meta name="format-detection" content="telephone=no" />
6
7
8 <meta name="apple-mobile-web-app-capable" content="yes" />
9
10
11 <input type="tel" /> <input pattern="[0-9]*">
12
13
14 <input type="url"> <input type="email">
15
16
17 <a href="http://maps.google.com/maps?q=Moon">Open in Google Maps</a>
18 <a href="tel:01234567890">Open the phone</a>
19 <a href="twitter:Tweet Tweet Tweet">Open the Twitter for iPhone app</a>
<input type="text" autocorrect="off" autocapitalize="off">
<meta name="format-detection" content="telephone=no" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<input type="tel" /> <input pattern="[0-9]*">
<input type="url"> <input type="email">
<a href="http://maps.google.com/maps?q=Moon">Open in Google Maps</a>
<a href="tel:01234567890">Open the phone</a>
<a href="twitter:Tweet Tweet Tweet">Open the Twitter for iPhone app</a>
Send this to a friend
this code lets you hide the address bar in safari mobile. your webapp will look like a native one.
1 <body onload="window.scrollTo(0, 1)">
<body onload="window.scrollTo(0, 1)">
Send this to a friend
preview: http://cl.ly/4AK4
1 <style>
2 div#popup {
3 background-color: rgba(0,0,0,.5);
4 border-radius: 10px;
5 color: #ffffff;
6 font-weight: bold;
7 font-family: Arial;
8 height: 160px;
9 line-height: 50px;
10 margin: 0 auto;
11 text-align: center;
12 text-shadow: 0px 1px 0px #000000;
13 -webkit-border-radius: 10px;
14 border-radius: 10px;
15 width: 160px;
16 }
17 </style>
18
19 <li id="toggle">
20 <a href="#">button </a>
21 </li>
22
23 <div id="popup" style="display: none">Popup...</div>
24
25
26 <script>
27 $("#toggle").click(function () {
28 $("#popup").fadeIn("fast");
29 $("#popup").delay(3500).fadeOut();
30 });
31 </script>
32
<style>
div#popup {
background-color: rgba(0,0,0,.5);
border-radius: 10px;
color: #ffffff;
font-weight: bold;
font-family: Arial;
height: 160px;
line-height: 50px;
margin: 0 auto;
text-align: center;
text-shadow: 0px 1px 0px #000000;
-webkit-border-radius: 10px;
border-radius: 10px;
width: 160px;
}
</style>
<li id="toggle">
<a href="#">button </a>
</li>
<div id="popup" style="display: none">Popup...</div>
<script>
$("#toggle").click(function () {
$("#popup").fadeIn("fast");
$("#popup").delay(3500).fadeOut();
});
</script>