Browse Source

new example of urls with special mobile behaviours like email, tel or sms

master
T. Meissner 12 years ago
parent
commit
d3b54db7a9
1 changed files with 33 additions and 0 deletions
  1. +33
    -0
      ch01_08.html

+ 33
- 0
ch01_08.html View File

@ -0,0 +1,33 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Up and Running with jQuery Mobile</title>
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.css">
<script src="http://code.jquery.com/jquery-1.8.2.min.js"></script>
<script type="text/javascript" src="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<div data-role="page" id="main">
<div data-role="header">
<h1>Special links</h1>
</div>
<div data-role="content">
<p>
<a href="tel:+1800229933" data-role="button">Call the White House</a>
<a href="sms:+1800229933" data-role="button">SMS the White House</a>
<a href="sms:+1800229933?body=Hello!" data-role="button">SMS with body text</a>
<a href="mailto:info@mobilexweb.com?subject=Sent%20from%20the%20web" data-role="button">
Mail me</a>
<a href="skype:maximiliano.firtman?call" data-role="button">Skype me</a>
<a href="facetime:+1800229933" data-role="button">Call using Facetime</a>
</p>
</div>
<div data-role="footer">
<h4>www.mobilexweb.com</h4>
</div>
</div>
</body>
</html>

Loading…
Cancel
Save