forked from hiroprotagonist/jquery.mobile.actionsheet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
72 lines (68 loc) · 2.61 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<!DOCTYPE html>
<html>
<head>
<title>Test 1 2 3</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.0b2/jquery.mobile-1.0b2.min.css" />
<link rel="stylesheet" href="jquery.mobile.actionsheet.css" />
<script type="text/javascript" src="http://code.jquery.com/jquery-1.6.2.min.js"></script>
<script type="text/javascript" src="http://code.jquery.com/mobile/1.0b2/jquery.mobile-1.0b2.min.js"></script>
<script type="text/javascript" src="jquery.mobile.actionsheet.js"></script>
<style type='text/css' rel='stylesheet'>
#login { background:transparent; }
#login input { display:inline; width:86%; padding:5px; margin:7px; }
</style>
</head>
<body>
<div data-role="page">
<div data-role="header">
<h1>A.S. Test-Site</h1>
<a data-icon="plus" class="ui-btn-right" data-role="actionsheet">Open</a>
<div>
<a data-role="button" href="#">Action 1</a>
<a data-role="button" href="#">Action 2</a>
<a data-role="button" href="#">Action 3</a>
<br/>
<a data-role="button" data-rel="close" href="#">Cancel</a>
</div>
</div><!-- /header -->
<div data-role="content">
<!-- It is possible to associate toggle and sheet via html id -->
<a data-role='actionsheet' data-sheet='sheet0' id='a0'>Open Sheet 0</a>
<p>There are two action sheets on this page. One as part of the header and one as part of the content</p>
<p>The one in the header uses an optional close button. See the markup for details</p>
<p>Primary animation is done using CSS3 use a webkit browser to view this site.</p>
<a data-icon="plus" class="ui-btn-right" data-role="actionsheet">Open</a>
<div>
<a data-role="button" href="#">Update 1</a>
<a data-role="button" href="#">Update 2</a>
<a data-role="button" href="#">Update 3</a>
</div>
<div id='sheet0'>
<h1>This is sheet 0</h1>
</div>
<form id='login'>
<input name='user' type='text' placeholder='Username' autocomplete='off'/>
<input name='pass' type='password' placeholder='Passphrase' autocomplete='off'/>
<br/>
<a data-role='button' data-rel='close'>Login</a>
</form>
<div id='external_link'>
<a data-role='button' href='http://www.google.com' rel='external'>Goto goggle.com</a>
</div>
</div><!-- /content -->
<div data-role='footer' data-position='fixed'>
<div data-role='navbar'>
<ul>
<li>
<a data-role='actionsheet' data-sheet='login' data-icon='star'>Form Example</a>
</li>
<li>
<a data-role='actionsheet' data-sheet='external_link' data-icon='grid'>External Link</a>
</li>
</ul>
</div>
</div>
</div><!-- /page -->
</body>
</html>