-
Notifications
You must be signed in to change notification settings - Fork 2
/
order.html
executable file
·401 lines (362 loc) · 15.9 KB
/
order.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
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
<!doctype html>
<!--
Copyright 2015 Google Inc. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License
-->
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="description" content="Learn how to use the Firebase platform on the Web">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Mixomator9000</title>
<!-- Disable tap highlight on IE -->
<meta name="msapplication-tap-highlight" content="no">
<link rel="icon" href="images/favicon.ico">
<link rel="apple-touch-icon" href="images/iphone-icon.png"/>
<!-- Web Application Manifest -->
<link rel="manifest" href="manifest.json">
<!-- Add to homescreen for Chrome on Android -->
<meta name="mobile-web-app-capable" content="yes">
<meta name="application-name" content="Mixomator9000">
<meta name="theme-color" content="#4285F4">
<!-- Add to homescreen for Safari on iOS -->
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta name="apple-mobile-web-app-title" content="Mixomator9000">
<meta name="apple-mobile-web-app-status-bar-style" content="#4285F4">
<!-- Tile icon for Win8 -->
<!-- <meta name="msapplication-TileColor" content="#3372DF">
<meta name="msapplication-navbutton-color" content="#303F9F"> -->
<!-- Material Design Components -->
<link rel="stylesheet"
href="https://unpkg.com/material-components-web@0.39.3/dist/material-components-web.min.css">
<script src="https://unpkg.com/material-components-web@0.39.3/dist/material-components-web.js"></script>
<!-- App Styling -->
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:regular,bold,italic,thin,light,bolditalic,black,medium&lang=en">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link rel="stylesheet" href="/styles/main.css">
</head>
<body>
<div>
<div class="header"></div>
<main></main>
<div class="dialogs"></div>
<div hidden class="template" id="header-base">
<header id="site-header" class="mdc-toolbar mdc-toolbar--fixed">
<div id="title" class="mdc-toolbar__row mdc-layout-grid">
<section class="mdc-toolbar__section mdc-toolbar__section--align-start">
<!--<span class="material-icons mdc-toolbar__icon--menu">drink</span>-->
<span class="mdc-toolbar__title">Mixomator9000</span>
</section>
</div>
<div id="section-header" data-fir-if="hasSectionHeader"></div>
</header>
</div>
<div hidden class="template" id="main-adjusted">
<div id="message-cards-container" class="mdc-layout-grid mdc-toolbar-fixed-adjust">
<div id="cards" class="mdc-layout-grid__inner"></div>
</div>
</div>
<div hidden class="template" id="main-pump-adjusted">
<div id="message-cards-container" class="mdc-layout-grid mdc-toolbar-fixed-adjust">
<div id="cards" class="mdc-layout-grid__inner"></div>
</div>
</div>
<div hidden class="template" id="main">
<div id="message-cards-container" class="mdc-layout-grid">
<div id="cards" class="mdc-layout-grid__inner"></div>
</div>
</div>
<div hidden class="template" id="no-drinks">
<div id="guy-container" class="mdc-toolbar-fixed-adjust">
<img class="guy" src="/images/guy_fireats.png" />
<div class="text">
This app is connected to the Firebase project "<b data-fir-content="projectId"></b>".<br />
<br />
Your Cloud Firestore has no documents in <b>/drinks/</b>.
</div>
<br />
<a class="mdc-button" id="add_mock_data">
Add mock data
</a>
</div>
</div>
<div hidden class="template" id="no-ratings">
<div id="guy-container" class="mdc-toolbar-fixed-adjust">
<img class="guy" src="/images/guy_fireats.png" />
<div class="text">
This drink has no ratings.<br />
</div>
<br />
<a class="mdc-button" data-fir-click="add_mock_data">
Add mock ratings
</a>
</div>
</div>
<div hidden class="template" id="no-results">
<div id="guy-container" class="mdc-toolbar-fixed-adjust">
<img class="guy" src="/images/guy_fireats.png" />
<div class="text">
There are no results for your filters!
</div>
</div>
</div>
<div hidden class="template" id="filter-display">
<div id="filter" class="mdc-toolbar mdc-layout-grid">
<div id="show-filters" >
<div id="active-filters">
<i class="material-icons">filter_list</i>
You're seeing <b data-fir-content="filter_description"></b>
</div>
</div>
</div>
</div>
<div hidden class="template" id="drink-header">
<header class="mdc-layout__header mdc-layout__header--transparent">
<div class="mdc-layout-grid" style="width: 100%;">
<div class="mdc-layout-grid__inner">
<div class="mdc-layout-grid__cell mdc-layout-grid__cell--span-12">
<a href="/" data-navigo class="material-icons" id="close">close</a>
</div>
<div class="mdc-layout-grid__cell mdc-layout-grid__cell--span-12 info">
<div class="max_width_600">
<h2 data-fir-content="name"></h2>
<div class="details">
Type: <span class="info" data-fir-content="type"></span>
<br/>
Ingredients: <span class="info" data-fir-content="ing"></span>
</div>
</div>
</div>
</div>
</div>
</header>
</div>
<div hidden class="template" id="add-drinks">
<div id="guy-container" class="mdc-toolbar-fixed-adjust">
<a class="mdc-button" id="add_drink">
+ Add drink
</a>
</div>
</div>
<div hidden class="template" id="rating"></div>
<span hidden class="template" id="price"></span>
<div hidden class="template mdc-layout-grid__cell--span-12" id="review-card">
<div class="review max_width_600">
<div class="header">
<div class="author">
<span class="light" data-fir-content="userName"></span>
</div>
<div class="rating"></div>
</div>
<div data-fir-content="text"></div>
</div>
</div>
<div hidden class="template mdc-layout-grid__cell mdc-layout-grid__cell--span-4" id="drink-card">
<div class="location-card mdc-card mdc-shadow--2dp" data-fir-click="go_to_drink" data-fir-style="backgroundImage:photo">
<div class="mdc-card__title"></div>
<div class="mdc-card__supporting-text">
<h2 data-fir-content="name">...</h2>
<div class="details">
<span class="info" data-fir-content="type"></span>
</div>
</div>
</div>
</div>
<div hidden class="template mdc-layout-grid__cell mdc-layout-grid__cell--span-3" id="pump-card">
<div class="location-card mdc-card mdc-shadow--2dp" data-fir-click="go_to_pump">
<div class="mdc-card__supporting-text">
<h2 data-fir-content="name">...</h2>
<div class="details">
Pin: <span class="info" data-fir-content="pin"></span>
<br/>
Value: <span class="info" data-fir-content="value"></span>
</div>
</div>
</div>
</div>
<i hidden class="template material-icons" id="star-border-icon">star_border</i>
<i hidden class="template material-icons" id="star-icon">star</i>
<ul hidden class="template mdc-list" id="item-list">
<li class="mdc-list-item" data-mdc-auto-init="MDCRipple" data-fir-foreach="items" data-fir-content="~"></li>
</ul>
<ul hidden class="template mdc-list" id="all-filters-list">
<li id="show-page-type" class="mdc-list-item" data-mdc-auto-init="MDCRipple">
<i class="material-icons">local_bar</i>
<span data-fir-if-not="type">Any Type</span>
<b data-fir-content="type"></b>
</li>
</ul>
<div hidden class="template" id="clean">
<div id="guy-container" class="mdc-toolbar-fixed-adjust">
<img class="guy" src="/images/guy_fireats.png" />
<div class="text" >
<h2>Cleaning Procedure</h2>
1. Prepare a cleaning container with water (maybe even hot water, or with bleach) <br/><br/>
2. Take all tubes out of the containers and put them into the cleaning container<br/><br/>
3. Put a cup into the machine to collect the water with drink residues from the tubes<br/><br/>
4. Order the CLEAN procedure (maybe even several times until the water comes out clean)<br/><br/>
5. Take all the tubes out of the cleaning container<br/><br/>
6. Order the CLEAN procedure one more time, in order to move the water through the tubes and fill it with air instead so that we don't end up with storing water in the tubes
</div>
<br/><br/>
<a class="mdc-button" id="clean_button">
CLEAN
</a>
</div>
</div>
<aside id="dialog-filter-all" class="mdc-dialog">
<div class="mdc-dialog__surface">
<div class="page" id="page-all">
<header class="mdc-dialog__header">
<i class="material-icons">filter_list</i>
<h2 id="mdc-dialog-with-list-label" class="mdc-dialog__header__title">
Filter
</h2>
</header>
<section class="mdc-dialog__body mdc-dialog__body--scrollable">
<div id="all-filters-list"></div>
</section>
<footer class="mdc-dialog__footer">
<button type="button" class="mdc-button mdc-dialog__footer__button mdc-dialog__footer__button--accept">Accept</button>
</footer>
</div>
<div class="page" id="page-type">
<header class="mdc-dialog__header">
<i class="material-icons">local_bar</i>
<h2 id="mdc-dialog-with-list-label" class="mdc-dialog__header__title">
Type
</h2>
</header>
<section class="mdc-dialog__body mdc-dialog__body--scrollable">
<div id="type-list"></div>
</section>
<footer class="mdc-dialog__footer">
<button type="button" class="mdc-button mdc-dialog__footer__button back">Back</button>
</footer>
</div>
</div>
<div class="mdc-dialog__backdrop"></div>
</aside>
<aside id="dialog-add-drink" class="mdc-dialog">
<div class="mdc-dialog__surface">
<div class="page" id="page-all">
<header class="mdc-dialog__header">
<i class="material-icons">add_circle</i>
<h2 id="mdc-dialog-with-list-label" class="mdc-dialog__header__title">
Add Drink
</h2>
</header>
<section class="mdc-dialog__body">
Name:<textarea id="drinkname" rows="1"></textarea>
Ingredients (format: {"orangejuice": 100, "vodka": 100}):<textarea id="drinkingredients"></textarea>
Type: <select id="drinktype">
<option value="alcoholic">alcoholic</option>
<option value="nonalcoholic">nonalcoholic</option>
</select><br/>
Photo: <input type="file" class="file-select" accept="image/*"/>
</section>
<footer class="mdc-dialog__footer">
<button type="button" class="mdc-button mdc-dialog__footer__button mdc-dialog__footer__button--cancel">Cancel</button>
<button type="button" class="mdc-button mdc-dialog__footer__button mdc-dialog__footer__button--accept">Save</button>
</footer>
</div>
</div>
<div class="mdc-dialog__backdrop"></div>
</aside>
<aside id="dialog-edit-drink" class="mdc-dialog">
<div class="mdc-dialog__surface">
<div class="page" id="page-all">
<header class="mdc-dialog__header">
<i class="material-icons">edit</i>
<h2 id="mdc-dialog-with-list-label" class="mdc-dialog__header__title">
Edit Drink
</h2>
</header>
<section class="mdc-dialog__body">
<textarea hidden id="drinkid" rows="1"></textarea>
Name:<textarea id="drinkname" rows="1"></textarea>
Ingredients (format: {"orangejuice": 100, "vodka": 100}):<textarea id="drinkingredients"></textarea>
Type: <select id="drinktype">
<option value="alcoholic">alcoholic</option>
<option value="nonalcoholic">nonalcoholic</option>
</select><br/>
Photo: <input type="file" class="file-update" accept="image/*"/>
</section>
<footer class="mdc-dialog__footer">
<button type="button" class="mdc-button mdc-dialog__footer__button mdc-dialog__footer__button--cancel">Cancel</button>
<button type="button" class="mdc-button mdc-dialog__footer__button mdc-dialog__footer__button--accept">Save</button>
</footer>
</div>
</div>
<div class="mdc-dialog__backdrop"></div>
</aside>
<aside id="dialog-drink-details" class="mdc-dialog">
<div class="mdc-dialog__surface">
<div class="page" id="page-all">
<header class="mdc-dialog__header">
<i class="material-icons">local_bar</i>
<h2 id="mdc-dialog-with-list-label" class="mdc-dialog__header__title">
Drink
</h2>
</header>
<section class="mdc-dialog__body">
<textarea hidden id="drinkid" rows="1"></textarea>
Name:<textarea id="drinkname" readonly rows="1"></textarea>
Type:<textarea id="drinktype" readonly rows="1"></textarea>
Ingredients:<textarea readonly id="drinkingredients"></textarea>
</section>
<footer class="mdc-dialog__footer">
<button type="button" class="mdc-button mdc-dialog__footer__button mdc-dialog__footer__button--cancel">Cancel</button>
<button type="button" class="mdc-button mdc-dialog__footer__button mdc-dialog__footer__button--accept">Order</button>
</footer>
</div>
</div>
<div class="mdc-dialog__backdrop"></div>
</aside>
<aside id="dialog-edit-pump" class="mdc-dialog">
<div class="mdc-dialog__surface">
<div class="page" id="page-all">
<header class="mdc-dialog__header">
<i class="material-icons">edit</i>
<h2 id="mdc-dialog-with-list-label" class="mdc-dialog__header__title">
Edit Pump
</h2>
</header>
<section class="mdc-dialog__body">
<textarea hidden readonly id="pumpid"></textarea>
Name: <textarea readonly id="pumpname" rows="1"></textarea>
Pin: <textarea readonly id="pumppin" rows="1"></textarea>
Value: <textarea id="pumpvalue" rows="1"></textarea>
</section>
<footer class="mdc-dialog__footer">
<button type="button" class="mdc-button mdc-dialog__footer__button mdc-dialog__footer__button--cancel">Cancel</button>
<button type="button" class="mdc-button mdc-dialog__footer__button mdc-dialog__footer__button--accept">Save</button>
</footer>
</div>
</div>
<div class="mdc-dialog__backdrop"></div>
</aside>
</div>
<script src="/__/firebase/5.5.3/firebase-app.js"></script>
<script src="/__/firebase/5.5.3/firebase-auth.js"></script>
<script src="/__/firebase/5.5.3/firebase-firestore.js"></script>
<script src="/__/firebase/5.5.5/firebase-storage.js"></script>
<script src="/__/firebase/init.js"></script>
<script src="//unpkg.com/navigo@6"></script>
<script src="/scripts/Mixomator9000.js"></script>
<script src="/scripts/Mixomator9000.AIO.js"></script>
<script src="/scripts/Mixomator9000.View.js"></script>
<script src="/scripts/Mixomator9000.Mock.js"></script>
<script src="/scripts/Mixomator9000.Data.js"></script>
</body>
</html>