-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
375 lines (365 loc) · 14.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
368
369
370
371
372
373
374
375
<!DOCTYPE html>
<html lang="en">
<head>
<meta name = "viewport" content = "width = device-width, initial-scale = 1">
<meta charset="utf-8">
<link rel = "stylesheet" href = "https://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css">
<script src = "https://code.jquery.com/jquery-1.11.3.min.js"></script>
<script src = "https://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js"></script>
<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.0.2/css/bootstrap.min.css">
<!-- <link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.0.2/css/bootstrap-theme.min.css"> -->
<!-- <script src="http://netdna.bootstrapcdn.com/bootstrap/3.0.2/js/bootstrap.min.js"></script> -->
<!-- <script src="http://code.jquery.com/jquery-2.0.3.min.js"></script> -->
<script src="js/jquery.progressTimer.js"></script>
<script type="text/javascript">
function progress(percent, $element) {
var progressBarWidth = percent * $element.width() / 100;
$element.find('div').animate({ width: progressBarWidth }, 180000);//.html(percent + "% ");
}
function timer() {
}
$( document ).on( "pagecreate", "#order-number", function(event, data) {
progress(100, $('#progressBar'));
});
</script>
<style type="text/css">
.rating {
unicode-bidi: bidi-override;
direction: rtl;
color: #CCCC00;
font-size: 14pt;
font-weight: bold;
}
.rating > span {
display: inline-block;
position: relative;
width: 1.1em;
}
.rating > span:hover:before,
.rating > span:hover ~ span:before {
content: "\2605";
position: absolute;
}
body {
background-color: #000000;
}
#progressBar {
width: 385px;
height: 22px;
border: 1px solid #111;
background-color: #292929;
}
#progressBar div {
height: 100%;
color: #fff;
text-align: right;
line-height: 22px; /* same as #progressBar height if we want text middle aligned */
width: 0;
background-color: #F28E1C;
}
</style>
<title>Beer App</title>
</head>
<body>
<!-- Main menu page -->
<div data-role = "page" id = "menu" data-theme="b">
<div data-role = "header">
<h1>Menu</h1>
<a href = "#recommend" class = "ui-btn-right ui-btn ui-btn-inline ui-mini ui-corner-all ui-btn-icon-left ui-icon-star">Recommend</a>
</div>
<div data-role = "main" class = "ui-content">
<ul data-role = "listview" data-inset = "true">
<li>
<a href="#beer1-dialog">
<img src = "./images/beers/beer1.svg" alt="American Lager">
<h2>American Lager</h2>
<p>Transparent. Fresh and dry taste with a touch of sweetness</p>
<h1 class = "ui-li-aside">200 ₽</h1>
<p><em>4,7-6 % alc., 500 ml</em></p>
<p><progress max="100" value="80"></progress> 8 pints left</p>
</a>
</li>
<li>
<a href="#beer2-dialog">
<img src = "./images/beers/beer2.svg" alt="Doppelbock">
<h2>Doppelbock</h2>
<p>Strong</p>
<h1 class = "ui-li-aside">200 ₽</h1>
<p><em>7-12 % alc., 500 ml</em></p>
<p><progress max="100" value="100"></progress> 6 pints left</p>
</a>
</li>
<li>
<a href="#beer3-dialog">
<img src = "./images/beers/beer3.svg" alt="German Helles">
<h2>German Helles</h2>
<p>A creamy white foam, transparent, slightly sweet, with a malt flavor and aroma</p>
<h1 class = "ui-li-aside">200 ₽</h1>
<p><em>4,7-5,4 % alc., 500 ml</em></p>
<p><progress max="100" value="0"></progress> 0 pints left</p>
</a>
</li>
<li>
<a href="#beer4-dialog">
<img src = "./images/beers/beer4.svg" alt="German Schwarzbier">
<h2>German Schwarzbier</h2>
<p>Opaque, black colour with hints of chocolate or coffee flavours, bitter</p>
<h1 class = "ui-li-aside">200 ₽</h1>
<p><em>4.4–5.4 % alc., 500 ml</em></p>
<p><progress max="100" value="60"></progress> 6 pints left</p>
</a>
</li>
<li>
<a href="#beer5-dialog">
<img src = "./images/beers/beer5.svg" alt="Imperial Ipa">
<h2>Imperial Ipa</h2>
<p>Rich aroma and pleasant bitterness</p>
<h1 class = "ui-li-aside">200 ₽</h1>
<p><em>~7,5 % alc., 500 ml</em></p>
<p><progress max="100" value="0"></progress> 0 pints left</p>
</a>
</li>
<li>
<a href="#beer6-dialog">
<img src = "./images/beers/beer6.svg" alt="Vienna Lager">
<h2>Vienna Lager</h2>
<p>Rich yellow and stable foam, rich malt flavor and aroma of Viennese or Munich malt with hop notes.</p>
<h1 class = "ui-li-aside">200 ₽</h1>
<p><em>4,5-5,7 % alc., 500 ml</em></p>
<p><progress max="100" value="80"></progress> 8 pints left</p>
</a>
</li>
<li>
<a href="#beer7-dialog">
<img src = "./images/beers/beer7.svg" alt="English Brown Porter">
<h2>English Brown Porter</h2>
<p>A malt-sweet taste with hints of caramel and ripe fruits such as plums and/or raisins.</p>
<h1 class = "ui-li-aside">200 ₽</h1>
<p><em>2,8-4,2 % alc., 500 ml</em></p>
<p><progress max="100" value="80"></progress> 8 pints left</p>
</a>
</li>
<li>
<a href="#beer8-dialog">
<img src = "./images/beers/beer8.svg" alt="German Pilsner">
<h2>German Pilsner</h2>
<p>A very light, clear colour from pale to golden yellow, with varying levels of hop aroma and flavour</p>
<h1 class = "ui-li-aside">200 ₽</h1>
<p><em>4,5-5 % alc., 500 ml</em></p>
<p><progress max="100" value="80"></progress> 8 pints left</p>
</a>
</li>
</ul>
</div>
<div data-role = "footer" data-position="fixed">
<h1>Choose a drink</h1>
</div>
</div>
<!-- Pages for every signle beer -->
<div data-role = "page" id = "beer1-dialog" data-theme="b">
<div data-role = "header" data-add-back-btn="true">
<h1>American Lager</h1>
</div>
<div data-role = "main" class = "ui-content">
<img src = "./images/beers/beer1.svg" style="width: 100%" alt="American Lager">
<p>Transparent. Fresh and dry taste with a touch of sweetness</p>
<h1>200 ₽</h1>
<p><em>4,7-6 % alc., 500 ml</em></p>
<p><progress max="100" value="80"></progress> 8 pints left</p>
<p><a href = "#payment-page" class = "ui-btn ui-corner-all ui-btn-icon-left ui-icon-shop">Order</a></p>
</div>
</div>
<div data-role = "page" id = "beer2-dialog" data-theme="b">
<div data-role = "header" data-add-back-btn="true">
<h1>Doppelbock</h1>
</div>
<div data-role = "main" class = "ui-content">
<img src = "./images/beers/beer2.svg" style="width: 100%" alt="Doppelbock">
<p>Strong</p>
<h1>200 ₽</h1>
<p><em>7-12 % alc., 500 ml</em></p>
<p><progress max="100" value="100"></progress> 6 pints left</p>
<p><a href = "#payment-page" class = "ui-btn ui-corner-all ui-btn-icon-left ui-icon-shop">Order</a></p>
</div>
</div>
<div data-role = "page" id = "beer3-dialog" data-theme="b">
<div data-role = "header" data-add-back-btn="true">
<h1>German Helles</h1>
</div>
<div role = "main" class = "ui-content">
<img src = "./images/beers/beer3.svg" style="width: 100%" alt="German Helles">
<p>A creamy white foam, transparent, slightly sweet, with a malt flavor and aroma</p>
<h1>200 ₽</h1>
<p><em>4,7-5,4 % alc., 500 ml</em></p>
<p><progress max="100" value="80"></progress> 10 pints left</p>
<p><a href = "#payment-page" class = "ui-btn ui-corner-all ui-btn-icon-left ui-icon-shop">Order</a></p>
</div>
</div>
<div data-role = "page" id = "beer4-dialog" data-theme="b">
<div data-role = "header" data-add-back-btn="true">
<h1>German Schwarzbier</h1>
</div>
<div role = "main" class = "ui-content">
<img src = "./images/beers/beer4.svg" style="width: 100%" alt="German Schwarzbier">
<p>Opaque, black colour with hints of chocolate or coffee flavours, bitter</p>
<h1>200 ₽</h1>
<p><em>4.4–5.4 % alc., 500 ml</em></p>
<p><progress max="100" value="60"></progress> 6 pints left</p>
<p><a href = "#payment-page" class = "ui-btn ui-corner-all ui-btn-icon-left ui-icon-shop">Order</a></p>
</div>
</div>
<div data-role = "page" id = "beer5-dialog" data-theme="b">
<div data-role = "header" data-add-back-btn="true">
<h1>Imperial Ipa</h1>
</div>
<div role = "main" class = "ui-content">
<img src = "./images/beers/beer5.svg" style="width: 100%" alt="Imperial Ipa">
<p>Rich aroma and pleasant bitterness</p>
<h1 class = "ui-li-aside">200 ₽</h1>
<p><em>~7,5 % alc., 500 ml</em></p>
<p><progress max="100" value="0"></progress> 0 pints left</p>
<p><a href = "#payment-page" class = "ui-btn ui-corner-all ui-btn-icon-left ui-icon-shop">Order</a></p>
</div>
</div>
<div data-role = "page" id = "beer6-dialog" data-theme="b">
<div data-role = "header" data-add-back-btn="true">
<h1>Vienna Lager</h1>
</div>
<div role = "main" class = "ui-content">
<img src = "./images/beers/beer6.svg" style="width: 100%" alt="Vienna Lager">
<p>Rich yellow and stable foam, rich malt flavor and aroma of Viennese or Munich malt with hop notes.</p>
<h1>200 ₽</h1>
<p><em>4,5-5,7 % alc., 500 ml</em></p>
<p><progress max="100" value="80"></progress> 8 pints left</p>
<p><a href = "#payment-page" class = "ui-btn ui-corner-all ui-btn-icon-left ui-icon-shop">Order</a></p>
</div>
</div>
<div data-role = "page" id = "beer7-dialog" data-theme="b">
<div data-role = "header" data-add-back-btn="true">
<h1>English Brown Porter</h1>
</div>
<div role = "main" class = "ui-content">
<img src = "./images/beers/beer7.svg" style="width: 100%" alt="English Brown Porter">
<p>A malt-sweet taste with hints of caramel and ripe fruits such as plums and/or raisins.</p>
<h1 class = "ui-li-aside">200 ₽</h1>
<p><em>2,8-4,2 % alc., 500 ml</em></p>
<p><progress max="100" value="80"></progress> 8 pints left</p>
<p><a href = "#payment-page" class = "ui-btn ui-corner-all ui-btn-icon-left ui-icon-shop">Order</a></p>
</div>
</div>
<div data-role = "page" id = "beer8-dialog" data-theme="b">
<div data-role = "header" data-add-back-btn="true">
<h1>German Pilsner</h1>
</div>
<div role = "main" class = "ui-content">
<img src = "./images/beers/beer8.svg" style="width: 100%" alt="German Pilsner">
<p>A very light, clear colour from pale to golden yellow, with varying levels of hop aroma and flavour</p>
<h1 class = "ui-li-aside">200 ₽</h1>
<p><em>4,5-5 % alc., 500 ml</em></p>
<p><progress max="100" value="80"></progress> 8 pints left</p>
<p><a href = "#payment-page" class = "ui-btn ui-corner-all ui-btn-icon-left ui-icon-shop">Order</a></p>
</div>
</div>
<!-- Page with an order number and awaiting time -->
<div data-role = "page" id = "order-number" data-theme="b">
<div data-role = "header">
<h1>Order state</h1>
<a href = "#feedback" class = "ui-btn ui-btn-right ui-btn-inline ui-corner-all ui-btn-icon-left ui-icon-star">Rate our bar</a>
</div>
<div data-role = "main" class = "ui-content" style="text-align: center;">
<p>Your order number is</p>
<h1>35</h1>
<p>You've ordered</p>
<p><em><strong>American Lager</strong> 500 ml</em></p>
<p>Estimated time</p>
<h2>~3 min</h2>
<div id="progressBar"><div></div></div>
<script type="text/javascript">
$("#progressTimer").progressTimer({
timeLimit: 120,
warningThreshold: 10,
baseStyle: 'progress-bar-warning',
warningStyle: 'progress-bar-danger',
completeStyle: 'progress-bar-info',
onFinish: function() {
console.log("I'm done");
}
});
</script>
<p><a href = "#menu" class = "ui-btn ui-corner-all ui-btn-icon-left ui-icon-check">Received</a></p>
</div>
</div>
<!-- Page with payment buttons -->
<div data-role = "page" id = "payment-page" data-theme="b">
<div data-role = "header" data-add-back-btn="true">
<h1>Payment</h1>
</div>
<div data-role = "main" class = "ui-content" style="text-align: center;">
<h1>200 ₽</h1>
<p><a href = "#order-number" class = "ui-corner-all"><img src="./images/googlepay.png" alt="Google Pay"></a></p>
<p><a href = "#order-number" class = "ui-corner-all"><img src="./images/applepay.png" alt="Apple Pay"></a></p>
</div>
</div>
<!-- Page with a poll for recommendation -->
<div data-role = "page" id = "recommend" data-theme="b">
<div data-role = "header" data-add-back-btn="true">
<h1>What do you like</h1>
</div>
<div data-role = "main" class = "ui-content">
<form method = "post" action="demo.php">
Choose a color
<label for = "radio1">
<input type = "radio" name = "color" id = "radio1" checked>Light
</label>
<label for = "radio2">
<input type = "radio" name = "color" id = "radio2">Dark
</label>
Choose a flavour
<label for = "checkbox1">
<input type = "checkbox" id = "checkbox1"> Sour
</label>
<label for = "checkbox2">
<input type = "checkbox" id = "checkbox2"> Bitter
</label>
<label for = "checkbox3">
<input type = "checkbox" id = "checkbox3"> Citrus
</label>
<label for = "checkbox4">
<input type = "checkbox" id = "checkbox4"> Berry
</label>
<label for = "checkbox5">
<input type = "checkbox" id = "checkbox5"> Fruity
</label>
</form>
</div>
<div data-role = "footer">
<a href = "#beer2-dialog" class = "ui-btn-left ui-btn ui-btn-inline ui-mini ui-corner-all ui-btn-icon-left ui-icon-heart">I'm lucky</a>
<a href = "#beer1-dialog" class = "ui-btn-right ui-btn ui-btn-inline ui-mini ui-corner-all ui-btn-icon-left ui-icon-heart">Suggest</a>
</div>
</div>
<!-- Page with a poll for recommendation -->
<div data-role = "page" id = "feedback" data-theme="b" data-dialog="true" style="background: #000000;">
<div data-role = "header" data-add-back-btn="true">
<h1>Please rate our bar</h1>
</div>
<div data-role = "main" class = "ui-content" style="background: #000000;">
<form method = "post" action="#">
<label for="name">Enter your name</label>
<input type="text" name="name" id="text-basic" value="">
Rate the bar
<div class="rating">
<span>☆</span><span>☆</span><span>☆</span><span>☆</span><span>☆</span>
</div>
Rate the bartender
<div class="rating">
<span>☆</span><span>☆</span><span>☆</span><span>☆</span><span>☆</span>
</div>
<label for="textarea">Your comment<br>
<em>(e.g. suggest which beer you'd like to see in our menu)</em></label>
<textarea cols="40" rows="8" name="textarea" id="textarea"></textarea>
<input type="button" value="Send your feedback" data-icon="mail">
</form>
</div>
</div>
</body>
</html>