Browse Source

more examples of buttons & listviews

master
T. Meissner 12 years ago
parent
commit
70f63ac86e
3 changed files with 99 additions and 0 deletions
  1. +37
    -0
      ch03_13.html
  2. +31
    -0
      ch03_14.html
  3. +31
    -0
      ch03_16.html

+ 37
- 0
ch03_13.html View File

@ -0,0 +1,37 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>My first jQuery Mobile code</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="home">
<div data-role="header" data-position="fixed">
<h1>Buttons</h1>
</div>
<div data-role="content">
<a href="#" data-role="button" data-icon="plus" data-iconpos="right">Button 1</a>
<a href="#" data-role="button" data-icon="check" data-iconpos="left">Button 2</a>
<a href="#" data-role="button">Button 3</a>
<div data-role="controlgroup" data-type="horizontal">
<a href="#" data-role="button" data-icon="refresh" data-iconpos="bottom">Button 1</a>
<a href="#" data-role="button" data-icon="gear" data-iconpos="top">Button 2</a>
</div>
<div data-role="controlgroup" data-type="horizontal">
<a href="#" data-role="button" data-icon="refresh" data-iconpos="notext">Button 1</a>
<a href="#" data-role="button" data-icon="gear" data-iconpos="notext">Button 2</a>
</div>
<a href="#" data-role="button" data-icon="refresh" data-iconpos="left" data-iconshadow="false">Button 1</a>
<a href="#" data-role="button" data-icon="gear" data-iconpos="right" data-iconshadow="false">Button 2</a>
</div>
<div data-role="footer" data-position="fixed">
<h1>www.goodcleanfun.de</h1>
</div>
</div>
</body>
</html>

+ 31
- 0
ch03_14.html View File

@ -0,0 +1,31 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>My first jQuery Mobile code</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="home">
<div data-role="header">
<h1>unordered list</h1>
</div>
<div data-role="content">
<ul data-role="listview">
<li>Offline access</li>
<li>Geolocation API</li>
<li>Canvas</li>
<li>Offline storage</li>
<li>New semantic tags</li>
</ul>
</div>
<div data-role="footer">
<h1>www.goodcleanfun.de</h1>
</div>
</div>
</body>
</html>

+ 31
- 0
ch03_16.html View File

@ -0,0 +1,31 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>My first jQuery Mobile code</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="home">
<div data-role="header">
<h1>ordered inset list</h1>
</div>
<div data-role="content">
<ol data-role="listview" data-inset="true">
<li>Offline access</li>
<li>Geolocation API</li>
<li>Canvas</li>
<li>Offline storage</li>
<li>New semantic tags</li>
</ol>
</div>
<div data-role="footer">
<h1>www.goodcleanfun.de</h1>
</div>
</div>
</body>
</html>

Loading…
Cancel
Save