forked from taitems/iOS-Inspired-jQuery-Mobile-Theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
367 lines (265 loc) · 10.8 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>iOS Inspired jQuery Mobile Theme</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<link href="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.css" rel="stylesheet" />
<link href="ios_inspired/styles.css" rel="stylesheet" />
<script src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
<script>
// all dialog buttons should close their parent dialog
$(".ui-dialog button").live("click", function() {
$("[data-role='dialog']").dialog("close");
});
$(document).on("mobileinit", function(){
$.mobile.defaultPageTransition = "slide";
});
</script>
<script src="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.js"></script>
<style>
#footerTabs {
background: #FFF -webkit-radial-gradient(circle, #FFF, #dee2e4);
}
.ui-listview sup {
font-size: 0.6em;
color: #cc0000;
}
</style>
</head>
<body>
<div data-role="page">
<div data-role="header" data-position="fixed">
<h1>Page Header</h1>
</div><!-- /header -->
<div data-role="content">
<p>Welcome to the iOS-Inspired jQuery Mobile theme by <a href="http://twitter.com/taitems" target="_blank">@taitems</a>. Feel free to have a look around and report and bugs to the <a href="https://github.com/taitems/iOS-Inspired-jQuery-Mobile-Theme/issues" target="_blank">GitHub issues page</a>.</p>
<ul data-role="listview" data-inset="true">
<li><a href="#headers">Header Bars</a></li>
<li><a href="#headerButtons">Header Buttons</a></li>
<li><a href="#footerTabs">Footer Tabs</a></li>
<li><a href="#formElements">Form Elements</a></li>
<li><a href="#listViews">List Views</a></li>
<li><a href="#dialogs">Dialogs</a></li>
<li><a href="#popups">Popups <sup>New!</sup></a></li>
</ul>
<br />
<br />
</div><!-- /ui-body wrapper -->
</div><!-- /page -->
<div data-role="page" id="formElements">
<div data-role="header" data-position="fixed">
<h1>Form Elements</h1>
<a href="#" data-rel="back" data-theme="a">Back</a>
</div><!-- /header -->
<div data-role="content">
<div data-role="fieldcontain">
<label>Some Fields and Inputs:</label>
<br /><br />
<input type="range" />
<br /><br />
<input type="search" />
<br /><br />
<input type="email" />
<br />
</div>
<div data-role="fieldcontain">
<label for="slider">Select slider:</label>
<select name="slider" id="slider" data-role="slider">
<option value="off">OFF</option>
<option value="on">ON</option>
</select>
</div>
<div data-role="fieldcontain">
<fieldset data-role="controlgroup" data-type="horizontal">
<legend>Choose a pet:</legend>
<input type="radio" name="radio-choice-1" id="radio-choice-1" value="choice-1" checked="checked" />
<label for="radio-choice-1">Cat</label>
<input type="radio" name="radio-choice-1" id="radio-choice-2" value="choice-2" />
<label for="radio-choice-2">Dog</label>
<input type="radio" name="radio-choice-1" id="radio-choice-3" value="choice-3" />
<label for="radio-choice-3">Hamster</label>
</fieldset>
</div>
<a disabled="disabled" data-role="button" class="ui-btn-plain">Inactive <a></a>
<a data-role="button" class="ui-btn-plain">Active <a></a>
<button disabled="disabled" class="ui-btn-plain">Inactive <button></button>
<button class="ui-btn-plain">Active <button></button>
<p><small>Does the above look funny? Consider it a bug in jQuery mobile where the classes from the underling <button> are not being attached to the new DOM</small></p>
</div>
</div>
<div data-role="page" id="listViews">
<div data-role="header" data-position="fixed">
<h1>List Example</h1>
<a href="#" data-rel="back" data-theme="a">Back</a>
</div><!-- /header -->
<div data-role="content">
<ul data-role="listview">
<li data-role="list-divider">Divider</li>
<li><a href="#">Anatomy of a page</a></li>
<li><a href="#">Page transitions</a></li>
<li><a href="#">Dialogs</a></li>
<li><a href="#">Navigation: Ajax, hashes & history</a></li>
<li><a href="#">Link format examples</a></li>
<li><a href="#">Theming pages</a></li>
<li><a href="#">Anatomy of a page</a></li>
<li><a href="#">Page transitions</a></li>
<li><a href="#">Dialogs</a></li>
<li><a href="#">Navigation: Ajax, hashes & history</a></li>
<li><a href="#">Link format examples</a></li>
<li><a href="#">Theming pages</a></li>
<li><a href="#">Anatomy of a page</a></li>
<li><a href="#">Page transitions</a></li>
<li><a href="#">Dialogs</a></li>
<li><a href="#">Navigation: Ajax, hashes & history</a></li>
<li><a href="#">Link format examples</a></li>
<li><a href="#">Theming pages</a></li>
<li><a href="#">Anatomy of a page</a></li>
<li><a href="#">Page transitions</a></li>
<li><a href="#">Dialogs</a></li>
<li><a href="#">Navigation: Ajax, hashes & history</a></li>
<li><a href="#">Link format examples</a></li>
<li><a href="#">Theming pages</a></li>
</ul>
</div>
</div>
<div data-role="page" id="headers">
<div data-role="header" data-position="fixed">
<h1>Headers</h1>
<a href="#" data-rel="back" data-theme="a">Back</a>
</a>
</div><!-- /header -->
<div data-role="content">
<p>
The default bar is the blue, but you can also use the black by specifying <em>data-theme="b"</em>.
</p>
<div data-role="header" data-position="inline">
<a href="#" data-rel="back" data-theme="a">Back</a>
<h1>Blue Bar</h1>
<a href="#" data-theme="a">Button</a>
</div>
<br />
<div data-role="header" data-theme="b" data-position="inline">
<a href="#" data-rel="back" data-theme="b">Back</a>
<h1>Black Bar</h1>
<a href="#" data-theme="b">Button</a>
</div>
</div>
</div>
<div data-role="page" id="headerButtons">
<div data-role="header" data-position="fixed">
<h1>Header Buttons</h1>
<a href="#" data-rel="back" data-theme="a">Back</a>
</div><!-- /header -->
<div data-role="content">
<p>
The various styled buttons you can place in a header:
</p>
<div data-role="header" data-position="inline">
<h1>Page Title</h1>
<a href="#" data-theme="a">Edit</a>
</div>
<br />
<div data-role="header" data-position="inline">
<h1>Page Title</h1>
<a href="#" data-theme="b">Black</a>
</div>
<br />
<div data-role="header" data-position="inline">
<h1>Page Title</h1>
<a href="#" data-theme="c">Delete</a>
</div>
<br />
<div data-role="header" data-position="inline">
<h1>Page Title</h1>
<a href="#" data-theme="d">Done</a>
</div>
<br />
<div data-role="header" data-position="inline">
<h1>Page Title</h1>
<a href="#" data-rel="back" data-icon="arrow-l" data-theme="a">Back</a>
</div>
<br />
<div data-role="header" data-theme="b" data-position="inline">
<h1>Page Title</h1>
<a href="#" data-rel="back" data-icon="arrow-l" data-theme="b">Back</a>
</div>
</div>
</div>
<div data-role="page" id="allDialogExample">
<div data-role="content">
<button data-theme="e">Button Style E</button>
<button data-theme="d">Button Style D</button>
<button data-theme="c">Button Style C</button>
<button data-theme="b">Button Style B</button>
<button data-theme="a">Button Style A</button>
</div>
</div>
<div data-role="page" id="deleteDialogExample">
<div data-role="content">
<button data-theme="e">Delete Draft</button>
<button data-theme="a">Save Draft</button>
<button data-theme="b">Cancel</button>
</div>
</div>
<div data-role="page" id="postDialogExample">
<div data-role="content">
<button data-theme="a">Post to Twitter</button>
<button data-theme="a">Post to Facebook</button>
<button data-theme="a">Post to YouTube</button>
<button data-theme="b">Cancel</button>
</div>
</div>
<div data-role="page" id="dialogs">
<div data-role="header" data-position="fixed">
<h1>Dialogs</h1>
<a href="#" data-rel="back" data-theme="a">Back</a>
</div><!-- /header -->
<div data-role="content">
<a href="#allDialogExample" class="ui-btn-plain" data-role="button" data-rel="dialog" data-transition="slideup">All the options</a>
<a href="#deleteDialogExample" class="ui-btn-plain" data-role="button" data-rel="dialog" data-transition="slideup">Delete Example</a>
<a href="#postDialogExample" class="ui-btn-plain" data-role="button" data-rel="dialog" data-transition="slideup">Post Something</a>
</div>
</div>
<div data-role="page" id="footerTabs" data-theme="b">
<div data-role="header" data-position="fixed">
<h1>Footer Tabs</h1>
<a href="#" data-rel="back">Back</a>
</div><!-- /header -->
<div data-role="content">
Icons by Joseph Wain / <a href="http://www.glyphish.com" target="_blank">glyphish.com</a>. Licensed under the <a href="http://creativecommons.org/licenses/by/3.0/us/" target="_blank">Creative Commons Attribution 3.0 United States License</a>.
</div>
<div data-role="footer" data-position="fixed">
<div data-role="navbar">
<ul>
<li><a href="#" id="tabA" data-icon="custom">One</a></li>
<li><a href="#" id="tabB" data-icon="custom" class="ui-btn-active">Two</a></li>
<li><a href="#" id="tabC" data-icon="custom">Three</a></li>
</ul>
</div><!-- /navbar -->
</div><!-- /footer -->
</div>
<div data-role="page" id="popups" data-theme="b">
<div data-role="header" data-position="fixed">
<h1>Popups</h1>
<a href="#" data-rel="back">Back</a>
</div><!-- /header -->
<div data-role="content">
<a href="#popupBasic" data-rel="popup" data-role="button" class="ui-btn-plain">Open Popup</a>
<a href="#popupOverlay" data-rel="popup" data-role="button" class="ui-btn-plain">Open Popup with Overlay</a>
<a href="#popupiOS" data-rel="popup" data-role="button" class="ui-btn-plain">iOS Style Popup</a>
<div data-role="popup" data-transition="fade" id="popupBasic">
<p>This is a completely basic popup, no options set.<p>
</div>
<div data-role="popup" data-transition="fade" data-overlay-theme="a" id="popupOverlay">
<p>This is a completely basic popup, but with an overlay<p>
</div>
<div data-role="popup" data-transition="fade" data-theme="a" data-position-to="window" id="popupiOS">
<img src="ios_inspired/images/tick.png">
<p>Saved<p>
</div>
</div>
</div>
</body>
</html>