-
Notifications
You must be signed in to change notification settings - Fork 2
/
index_phonegap.html
286 lines (219 loc) · 12.4 KB
/
index_phonegap.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
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>appML demo</title>
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
<link rel="stylesheet" href="css/hicTech/MobileAppStyle.css">
<style type="text/css" media="all">@import "themes/jqt/theme.css";</style>
<script type="text/javascript" charset="utf-8">
function appMLReady(){
// overlay demo
$('#overlay_alert').bind('click', function(e, data){
appML.appManagerShowDialog({message:"<div style='padding:3px 10px 3px 10px'>This is a custom scrollable alert box!<br/><font style='font-size:17px'>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</font></div>",title:"Alert"});
});
$('#overlay_confirm').bind('click', function(e, data){
appML.appManagerShowDialog({
message:"<div style='text-align:center'>This is a custom confirm box with callbacks and scroll area</div>",
type : "confirm",
denyCallback : function(){alert("denyCallback")},
confirmCallback : function(){alert("confirmCallback")},
title : "Confirm"
});
});
}
</script>
<script type="text/javascript" charset="utf-8" src="js/jquery/jquery-1.4.4-hicVersion-min.js"></script>
<script type="text/javascript" charset="utf-8" src="js/plugins/livequery/jquery.livequery-1.0.3.js"></script>
<script type="text/javascript" charset="utf-8" src="js/plugins/add2home/add2home.js"></script>
<script type="text/javascript" charset="utf-8" src="js/plugins/canvasLoader/canvasLoader.js"></script>
<script type="text/javascript" charset="utf-8" src="js/hicTech/appManager.js"></script>
<script type="text/javascript" charset="utf-8" src="js/phonegap.0.9.5.1.js"></script>
</head>
<body data-appml-onload="appMLReady()">
<appml>
<loading></loading>
<content>
<navigation height="44px"></navigation>
<panel id="features" title="appML" data-appml-icon="00-appML.png">
<page id="list" title="homeTitle">
<ul>
<li class="box_title">appML features</li>
<li class="arrow"><a href="#id_list1">Back button titling</a></li>
<li class="arrow"><a href="#" id="overlay_alert">Alert</a></li>
<li class="arrow"><a href="#" id="overlay_confirm">Confirm</a></li>
<li class="arrow"><a href="#form">Form<br/></a></li>
<li class="arrow"><a href="#effects">Fixed effects on iPad<br/></a></li>
<li class="arrow"><a href="#buttons">Customized buttons<br/></a></li>
<li class="forward"><a href="#">Forward element<br/></a></li>
</ul>
</page>
<page id="id_list1" title="First">
<h2>First paragraph</h2>
<ul >
<li class="arrow"><a href="#id_list2">goto 2nd</a></li>
</ul>
</page>
<page id="id_list2" title="Second">
<h2>Second paragraph</h2>
<ul >
<li class="arrow"><a href="#id_list3">go to 3rd</a></li>
</ul>
</page>
<page id="id_list3" title="Third">
<h2>Third paragraph</h2>
</page>
<page id="buttons" title="Buttons">
<h2>Buttons</h2>
<ul class="individual">
<li><a href="" target="_blank">Button</a></li>
<li><a href="" target="_blank">Button</a></li>
</ul>
<p><br /><a href="#" class="grayButton">Button</a></p>
<p><br /><a href="#" class="whiteButton">Button</a></p>
<p><br /><a href="#" class="blueButton">Button</a></p>
<p><br /><a href="#" class="greenButton">Button</a></p>
<p><br /><a href="#" class="redButton">Button</a></p>
<p><br /><a href="#" class="purpleButton">Button</a></p>
<p><br /><a href="#" class="orangeButton">Button</a></p>
<p><br /><a href="#" class="azureButton">Button</a></p>
</page>
<page id="form" title="Form">
<ul class="form">
<li class="box_title">Form</li>
<li>
<div>
<div>Email:</div>
<div><input value="" type="email" name="input_test" placeholder="[email protected]"/></div>
</div>
</li>
<li>
<div>
<div>Text:</div>
<div><textarea></textarea></div>
</div>
</li>
<li><input type="checkbox" name="some_name" value="Hello" id="some_name" title="first" data-appml-label="Check box"/></li>
<li><input type="radio" title="Radio" data-appml-label="Radio"/></li>
<li>
<div>
<div>Animals:</div>
<div>
<select data-appml-title="Animals">
<option value="dog">Dog</option>
<option value="cat">Cat</option>
<option value="fish" selected>Fish</option>
<option value="lion">Lion</option>
<option value="leopard">Leopard</option>
<option value="bird">Bird</option>
<option value="snake">Snake</option>
</select>
</div>
</div>
</li>
</ul>
<a style="color:rgba(0,0,0,.9);" href="#" class="whiteButton">Send</a>
</page>
<page id="effects" title="Effects">
<ul >
<li class="arrow"><a href="#animdemo">Slide</a></li>
<li class="arrow"><a class="slideup" href="#animdemo">Slide Up</a></li>
<li class="arrow"><a class="dissolve" href="#animdemo">Dissolve</a></li>
<li class="arrow"><a class="fade" href="#animdemo">Fade</a></li>
<li class="arrow"><a class="flip" href="#animdemo">Flip</a></li>
<li class="arrow"><a class="pop" href="#animdemo">Pop</a></li>
<li class="arrow"><a class="swap" href="#animdemo">Swap (not fixed)</a></li>
<li class="arrow"><a class="cube" href="#animdemo">Cube (not fixed)</a></li>
</ul>
</page>
<page id="animdemo">
<div style="font-size: 1.5em; text-align: center; margin: 160px 0 160px; font-family: Marker felt;">
Pretty smooth, eh?
</div>
</page>
</panel>
<panel id="carousel" title="Carousel" data-appml-icon="42-photos.png">
<page id="carousel_page" title="Carousel">
<div style="padding:0px 0px 0px 0px">
<div class="info" style="text-align:justify">
<div style="width:100%">
<div style="font-size:15px"><b>This is a carousel</b></div><br>
Lorem ipsum dolor sit amet, consectetur adipisici elit, sed eiusmod tempor incidunt ut labore et
dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut
aliquid ex ea commodi consequat. Quis aute iure reprehenderit in voluptate velit esse cillum dolore
eu fugiat nulla pariatur. Excepteur sint obcaecat cupiditat non proident, sunt in culpa qui officia
deserunt mollit anim id est laborum. <br><br><br>
</div>
<div style="margin:0px auto; width:260px;">
<carousel width="260" height="160">
<ul>
<li><strong>1.</strong> <em>A robot may not injure a human being or, through inaction, allow a human being to come to harm.</em></li>
<li><strong>2.</strong> <em>A robot must obey any orders given to it by human beings, except where such orders would conflict with the First Law.</em></li>
<li><strong>3.</strong> <em>A robot must protect its own existence as long as such protection does not conflict with the First or Second Law.</em></li>
<li><strong>Zeroth Law:</strong> <em>A robot may not harm humanity, or, by inaction, allow humanity to come to harm.</em></li>
<li><strong>Lyuben Dilov's Forth law:</strong> <em>A robot must establish its identity as a robot in all cases.</em></li>
<li><strong>Harry Harrison's Forth law:</strong> <em>A robot must reproduce</em></li>
<li><strong>Nikola Kesarovski's Fifth law:</strong> <em>A robot must know it is a robot.</em></li>
</ul>
</carousel>
</div>
<div style=" clear:both">
<div style="width:100%">
<div style="font-size:15px"><b>This is a vertical carousel</b></div><br>
Lorem ipsum dolor sit amet, consectetur adipisici elit, sed eiusmod tempor incidunt ut labore et dolore magna aliqua.
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquid ex ea commodi consequat.
Quis aute iure reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint
obcaecat cupiditat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. <br><br><br>
</div>
</div>
<div style="margin:0px auto; width:260px;">
<carousel width="260" height="160" direction="vertical">
<ul>
<li><strong>1.</strong> <em>A robot may not injure a human being or, through inaction, allow a human being to come to harm.</em></li>
<li><strong>2.</strong> <em>A robot must obey any orders given to it by human beings, except where such orders would conflict with the First Law.</em></li>
<li><strong>3.</strong> <em>A robot must protect its own existence as long as such protection does not conflict with the First or Second Law.</em></li>
<li><strong>Zeroth Law:</strong> <em>A robot may not harm humanity, or, by inaction, allow humanity to come to harm.</em></li>
<li><strong>Lyuben Dilov's Forth law:</strong> <em>A robot must establish its identity as a robot in all cases.</em></li>
<li><strong>Harry Harrison's Forth law:</strong> <em>A robot must reproduce</em></li>
<li><strong>Nikola Kesarovski's Fifth law:</strong> <em>A robot must know it is a robot.</em></li>
</ul>
</carousel>
</div>
<div style=" clear:both">
<div style="width:100%">
<div style="font-size:15px"><b>Carousel with nested iScroll</b></div><br>
Lorem ipsum dolor sit amet, consectetur adipisici elit, sed eiusmod tempor incidunt ut labore et dolore magna aliqua.
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquid ex ea commodi consequat.
Quis aute iure reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint
obcaecat cupiditat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. <br><br><br>
</div>
</div>
<div style="margin:0px auto; width:260px;">
<carousel width="260" height="160">
<ul>
<li><em>Lorem ipsum dolor sit amet, consectetur adipisici elit, sed eiusmod tempor incidunt ut labore et dolore magna aliqua.</em></li>
<li style="padding:0px;margin:0px;border:0px;">
<scrollable id="second" height="160">
<div style="padding:0px 15px 0px 0px;margin:0px;border:0px;">
<div style="font-size:15px"><b>Try to scroll down this content</b></div><br/>
<div style="font-size:15px;color:#000;padding:0px;margin:0px;border:0px;width:260px;">
Lorem ipsum dolor sit amet, consectetur adipisici elit, sed eiusmod tempor incidunt ut labore et dolore magna aliqua.
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquid ex ea commodi consequat.
Quis aute iure reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint
obcaecat cupiditat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</div>
</div>
</scrollable>
</li>
</ul>
</carousel>
</div>
</div>
</div>
</page>
<toolbar></toolbar>
</panel>
</content>
</appml>
</body>
</html>