-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
186 lines (178 loc) · 12.1 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
<!DOCTYPE html>
<html lang="fr">
<head>
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-46279807-3"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-46279807-3');
</script>
<meta charset="UTF-8">
<title class="trn">Beerometer</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="See how many beers you drink and how much it costs to you">
<meta property="og:title" content="Beerometer" />
<meta property="og:type" content="product" />
<meta property="og:url" content="https://beerometer-4d8d6.firebaseapp.com/" />
<meta property="og:description" content="See how many beers you drink and how much it costs to you">
<link rel="stylesheet" href="bulma.min.css">
<link rel="stylesheet" href="app.css">
</head>
<body>
<section class="section">
<div id="app" class="container">
<div class="is-pulled-right">
<a href="#" class="language-switcher tag is-medium is-dark has-text-grey-light is-radiusless" data-lang="fr">fr</a><!--
--><a href="#" class="language-switcher tag is-medium is-dark has-text-grey-light is-radiusless" data-lang="en">en</a>
</div>
<h1 class="title has-text-centered is-size-1">
<span class="trn">Beerometer</span>
<a id="js-facebook-login" class="button is-large is-info is-pulled-left trn" style="display: none">login</a>
<a id="js-facebook-logout" class="button is-large is-danger is-pulled-left trn" style="display: none">logout</a>
</h1>
<div class="columns">
<div class="column is-4">
<h2 class="title"><label for="js-select-qty" class="trn">quantity</label></h2>
<div class="field">
<div class="control">
<div class="select is-primary is-large is-fullwidth">
<select id="js-select-qty" class="is-fullwidth">
<option value="12.5">12,5cl</option>
<option value="25">25cl</option>
<option value="33">33cl</option>
<option value="50" selected>50cl</option>
<option value="75">75cl</option>
<option value="100">1L</option>
<option value="150">1,5L</option>
<option value="200">2L</option>
</select>
</div>
</div>
</div>
</div>
<div class="column is-8">
<h2 class="title"><label for="price-range" class="trn">price</label></h2>
<div class="columns">
<div class="column is-10 is-flex">
<input id="price-range" type="range" min="0" max="20" step="0.5" value="5">
</div>
<div class="column is-2">
<div class="button is-outlined tile is-primary is-parent is-flex is-size-4">
<span id="price-value">5</span>€
</div>
</div>
</div>
</div>
</div>
<div class="columns">
<div class="column">
<button id="js-button-validate" class="button is-large is-success is-fullwidth trn">submit</button>
</div>
</div>
</div>
</section>
<section class="section">
<div class="container">
<div class="columns">
<div class="column is-6">
<h2 class="title trn">history</h2>
<table class="table is-striped is-fullwidth">
<thead>
<tr>
<th><span class="trn">quantity</span> (cl)</th>
<th><span class="trn">price</span> (€)</th>
<th class="trn">date</th>
<th class="trn">actions</th>
</tr>
</thead>
<tbody id="history-table">
<tr id="js-loading-history">
<td colspan="4" class="has-text-centered">
<svg class="lds-coin" width="100%" height="100%" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid">
<style type="text/css">
#lds-mask-imgid-2e0b2d9d53488 { width: 100px!important;height:100px!important}
</style>
<defs>
<filter id="lds-mask-filterid-f9e3a79e06132" x="0" y="0" width="100" height="100" filterUnits="userSpaceOnUse">
<feColorMatrix type="matrix" values="0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 -1 -1 -1 1 0"></feColorMatrix>
</filter>
<mask id="lds-mask-maskid-9e1619cd8491d" x="0" y="0" width="100" height="100" maskUnits="userSpaceOnUse">
<image id="lds-mask-imgid-2e0b2d9d53488" xlink:href="data:image/svg+xml;base64, PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDAgMTAwIj48cGF0aCBmaWxsPSIjMDAwIiBkPSJNNDkuOTk5LDEyLjQ3OWMtMjAuNjg5LDAtMzcuNTIsMTYuODMxLTM3LjUyLDM3LjUyYzAsMjAuNjg5LDE2LjgzMSwzNy41MjIsMzcuNTIsMzcuNTIyIHMzNy41MjItMTYuODMzLDM3LjUyMi0zNy41MjJDODcuNTIxLDI5LjMxLDcwLjY4OCwxMi40NzksNDkuOTk5LDEyLjQ3OXogTTUyLjg4OCw2OS42MzJ2My40MDFjMCwxLjczNi0xLjQwNywzLjE0NC0zLjE0NCwzLjE0NCBoLTAuMDAyYy0xLjczNiwwLTMuMTQ0LTEuNDA3LTMuMTQ0LTMuMTQ0di0yLjk1MmMtMi43NjMtMC4xMjMtNS40NzQtMC42NDUtNy43MDUtMS4zNzdjLTEuODUyLTAuNjA3LTIuOS0yLjU1Ny0yLjQxNi00LjQ0NSBsMC4wNzctMC4zMDFjMC41MzUtMi4wODUsMi43MzctMy4yMDYsNC43NzQtMi41MTJjMi4wNzMsMC43MDYsNC40MzcsMS4xOTIsNi45MzksMS4xOTJjMy42NTcsMCw2LjE1OS0xLjQxLDYuMTU5LTMuOTc3IGMwLTIuNDM3LTIuMDUyLTMuOTc3LTYuODAxLTUuNTgyYy02Ljg2NS0yLjMxLTExLjU0OS01LjUxOC0xMS41NDktMTEuNzQxYzAtNS42NDcsMy45NzktMTAuMDczLDEwLjg0NC0xMS40MjF2LTIuOTUgYzAtMS43MzYsMS40MDctMy4xNDQsMy4xNDQtMy4xNDRzMy4xNDQsMS40MDcsMy4xNDQsMy4xNDR2Mi41MDFjMi4yOTYsMC4xMDMsNC4xODksMC40MDgsNS43NzgsMC44MjUgYzEuOTkzLDAuNTI0LDMuMjA4LDIuNTI3LDIuNjk2LDQuNTIzYy0wLjUxNiwyLjAxMi0yLjU5MiwzLjI0NS00LjU4MiwyLjY1MmMtMS41MTctMC40NTItMy4zOTctMC44MTUtNS42ODgtMC44MTUgYy00LjE3MSwwLTUuNTE4LDEuNzk2LTUuNTE4LDMuNTk0YzAsMi4xMTcsMi4yNDUsMy40NjQsNy42OTksNS41MTZjNy42MzUsMi42OTYsMTAuNzE2LDYuMjI1LDEwLjcxNiwxMS45OTggQzY0LjMwOCw2My40NzMsNjAuMjY1LDY4LjM0OSw1Mi44ODgsNjkuNjMyeiIvPjwvc3ZnPgo=" x="0" y="0" width="100" height="100" style="width:100px;height:100px!important" filter="url(#lds-mask-filterid-f9e3a79e06132)"></image>
</mask>
</defs>
<g mask="url(#lds-mask-maskid-9e1619cd8491d)">
<g>
<rect x="0" y="0" width="17.666666666666668" height="100" fill="#f8b26a">
<animate attributeName="fill" values="#e15b64;#f47e60;#f8b26a;#abbd81;#e15b64" keyTimes="0;0.25;0.5;0.75;1" dur="1s" repeatCount="indefinite" begin="-1s"></animate>
</rect><rect x="16.666666666666668" y="0" width="17.666666666666668" height="100" fill="#abbd81">
<animate attributeName="fill" values="#e15b64;#f47e60;#f8b26a;#abbd81;#e15b64" keyTimes="0;0.25;0.5;0.75;1" dur="1s" repeatCount="indefinite" begin="-0.8333333333333334s"></animate>
</rect><rect x="33.333333333333336" y="0" width="17.666666666666668" height="100" fill="#e15b64">
<animate attributeName="fill" values="#e15b64;#f47e60;#f8b26a;#abbd81;#e15b64" keyTimes="0;0.25;0.5;0.75;1" dur="1s" repeatCount="indefinite" begin="-0.6666666666666666s"></animate>
</rect><rect x="50" y="0" width="17.666666666666668" height="100" fill="#f47e60">
<animate attributeName="fill" values="#e15b64;#f47e60;#f8b26a;#abbd81;#e15b64" keyTimes="0;0.25;0.5;0.75;1" dur="1s" repeatCount="indefinite" begin="-0.5s"></animate>
</rect><rect x="66.66666666666667" y="0" width="17.666666666666668" height="100" fill="#f8b26a">
<animate attributeName="fill" values="#e15b64;#f47e60;#f8b26a;#abbd81;#e15b64" keyTimes="0;0.25;0.5;0.75;1" dur="1s" repeatCount="indefinite" begin="-0.3333333333333333s"></animate>
</rect><rect x="83.33333333333334" y="0" width="17.666666666666668" height="100" fill="#abbd81">
<animate attributeName="fill" values="#e15b64;#f47e60;#f8b26a;#abbd81;#e15b64" keyTimes="0;0.25;0.5;0.75;1" dur="1s" repeatCount="indefinite" begin="-0.16666666666666666s"></animate>
</rect><anximatetransform attributeName="transform" type="translate" filter="url(#lds-mask-filterid-f9e3a79e06132)" values="0 0;100 0" keyTimes="0;1" dur="1s" repeatCount="indefinite"></anximatetransform>
</g>
</g>
</svg>
</td>
</tr>
</tbody>
</table>
</div>
<div class="column is-6">
<h2 class="title trn">total</h2>
<div class="field is-grouped-multiline">
<div class="control">
<div class="tags has-addons">
<span class="tag is-large is-dark is-size-3 tag-label is-radiusless is-marginless trn">glasses</span>
<span class="tag is-large is-success is-size-3 tag-value is-radiusless is-marginless">
<span id="js-total-count">0</span>
</span>
</div>
</div>
<div class="control">
<div class="tags has-addons">
<span class="tag is-large is-dark is-size-3 tag-label is-radiusless is-marginless trn">quantity</span>
<span class="tag is-large is-success is-size-3 tag-value is-radiusless is-marginless">
<span id="js-total-qty">0</span>cl
</span>
</div>
</div>
<div class="control">
<div class="tags has-addons">
<span class="tag is-large is-dark is-size-3 tag-label is-radiusless is-marginless trn">price</span>
<span class="tag is-large is-danger is-size-3 tag-value is-radiusless is-marginless">
<span id="js-total-price">0</span>€
</span>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<script src="jquery-3.2.1.min.js"></script>
<script src="jquery.translate.js"></script>
<script src="https://www.gstatic.com/firebasejs/4.5.0/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/5.0.4/firebase-firestore.js"></script>
<script src="https://www.gstatic.com/firebasejs/4.5.0/firebase-auth.js"></script>
<script>
// Initialize Firebase
var app = firebase.initializeApp({
apiKey: "AIzaSyC1aA3bPn2OyTSiXJL0gJPjNzi0J_glOMo",
authDomain: "beerometer-4d8d6.firebaseapp.com",
projectId: "beerometer-4d8d6",
storageBucket: "",
messagingSenderId: "474385233655"
});
var db = app.firestore();
db.settings({timestampsInSnapshots: true});
</script>
<script src="app.js"></script>
</body>
</html>