forked from GoogleChromeLabs/sample-currency-converter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
333 lines (312 loc) · 14 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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0">
<title>Material Money</title>
<!-- Disable tap highlight on IE -->
<meta name="msapplication-tap-highlight" content="no">
<!-- 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="Material Money">
<link rel="icon" sizes="192x192" href="images/touch/chrome-touch-icon-192x192.png">
<!-- 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">
<meta name="apple-mobile-web-app-title" content="Material Money">
<link rel="apple-touch-icon" href="images/touch/apple-touch-icon.png">
<!-- Tile icon for Win8 (144x144 + tile color) -->
<meta name="msapplication-TileImage" content="images/touch/ms-touch-icon-144x144-precomposed.png">
<meta name="msapplication-TileColor" content="#263238">
<!-- Color the status bar on mobile devices -->
<meta name="theme-color" content="#263238">
<!-- Critical styles -->
<!-- {% include critical css %} -->
</head>
<body class="mm-app">
<header class="mdc-toolbar mdc-elevation--z4 mm-toolbar">
<div class="mdc-toolbar__row">
<section class="mdc-toolbar__section mdc-toolbar__section--align-start mm-toolbar__back">
<a class="material-icons mdc-toolbar__menu-icon mm-toolbar__back-button" aria-label="Back" alt="Back">
<img alt="Back" src="images/ic_arrow_back.svg">
</a>
</section>
<section class="mm-toolbar__appname mdc-toolbar__section mdc-toolbar__section--align-start">
<span class="mdc-toolbar__title">Material Money</span>
</section>
<section class="mm-toolbar__title-block mdc-toolbar__section mdc-toolbar__section--align-start">
<span class="mdc-toolbar__title mm-toolbar__title"></span>
</section>
<section class="mdc-toolbar__section mdc-toolbar__section--align-end">
<div class="mm-menu-anchor mdc-menu-anchor mdc-toolbar__icon">
<a class="material-icons mm-toolbar__more" aria-label="Menu" alt="Menu">
<img alt="More" src="images/ic_more_vert.svg">
</a>
<div class="mdc-menu mdc-toolbar__menu mm-menu" tabindex="-1">
<ul class="mdc-menu__items mdc-list" role="menu" aria-hidden="true">
<li class="mdc-list-item mm-menu__settings" role="menuitem" tabindex="0">
Settings
</li>
<li class="mdc-list-item mm-menu__rates" role="menuitem" tabindex="0">
Information on rates
</li>
<li class="mdc-list-item mm-menu__about" role="menuitem" tabindex="0">
About this app
</li>
</ul>
</div>
</div>
</section>
</div>
</header>
<div class="mm-convert mm-screen mm-screen--hidden">
<div class="mm-convert__topbar mdc-elevation--z4">
<span class="mm-convert__last-updated">
<span data-mm-bind="rates.message">Loading rates, please wait...</span>
<em data-mm-bind="rates.relative"></em>
</span>
<button class="mdc-button mdc-button--compact mdc-button--theme-dark mm-convert__update">
<span>
<img alt="Refresh" class="mm-icon" src="images/ic_refresh.svg">Update now
</span>
</button>
</div>
<div class="mm-convert__card mdc-elevation--z4">
<div class="mm-convert__valid-bg"></div>
<div class="mm-convert__invalid-bg"></div>
<div id="convert-travel" class="mm-convert__block">
<div class="mm-convert__label">
<span class="mm-currency" data-mm-bind="travel.name"> </span> (
<span class="mm-currency" data-mm-bind="travel.code"> </span>)
<span class="mm-convert__label-spacer"></span>
<img alt="Travel" class="mm-icon" src="images/ic_language.svg"><span><b>Travel</b> currency</span>
</div>
<div class="mm-convert__input">
<button class="mdc-button mdc-button--raised mdc-button--primary mm-convert__currency" data-mm-bind="travel.symbol"></button>
<div class="mm-convert__vc">
<input type="number" min="0" step="any" class="mm-convert__value" placeholder="" aria-label="Travel currency amount"></input>
<div class="mm-convert__back mdc-elevation--z2"></div>
</div>
</div>
<div class="mm-convert__error" aria-hidden="true">
<img alt="Warning" class="mm-icon" src="images/ic_warning.svg">
<span class="mm-convert__error-message">Please enter a valid number.</span>
</div>
</div>
<div id="convert-home" class="mm-convert__block mm-convert__block--alt">
<div class="mm-convert__label">
<span class="mm-currency" data-mm-bind="home.name"> </span> (
<span class="mm-currency" data-mm-bind="home.code"> </span>)
<span class="mm-convert__label-spacer"></span>
<img alt="Home" class="mm-icon" src="images/ic_home.svg"><span><b>Home</b> currency</span>
</div>
<div class="mm-convert__input">
<button class="mdc-button mdc-button--raised mdc-button--primary mm-convert__currency" data-mm-bind="home.symbol"></button>
<div class="mm-convert__vc">
<input type="number" min="0" step="any" class="mm-convert__value" placeholder="" aria-label="Home currency amount"></input>
<div class="mm-convert__back mdc-elevation--z2"></div>
</div>
</div>
<div class="mm-convert__error" aria-hidden="true">
<img alt="Warning" class="mm-icon" src="images/ic_warning.svg">
<span class="mm-convert__error-message">Please enter a valid number.</span>
</div>
</div>
</div>
<div class="mm-convert__common">
<table class="mm-convert__common-table">
<thead>
<tr>
<td>Home</td>
<td>Travel</td>
</tr>
</thead>
<tbody>
<tr>
<td>
<span data-mm-bind="home.symbol"></span>
<span data-mm-bind="common.first.home"></span>
</td>
<td>
<span data-mm-bind="travel.symbol"></span>
<span data-mm-bind="common.first.travel"></span>
</td>
</tr>
<tr>
<td>
<span data-mm-bind="home.symbol"></span>
<span data-mm-bind="common.second.home"></span>
</td>
<td>
<span data-mm-bind="travel.symbol"></span>
<span data-mm-bind="common.second.travel"></span>
</td>
</tr>
<tr>
<td>
<span data-mm-bind="home.symbol"></span>
<span data-mm-bind="common.third.home"></span>
</td>
<td>
<span data-mm-bind="travel.symbol"></span>
<span data-mm-bind="common.third.travel"></span>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="mm-select mm-screen mm-screen--disabled">
<ul class="mm-select__list mdc-list mdc-list--non-interactive mdc-list--avatar-list mdc-list--theme-dark mdc-theme--primary-bg">
</ul>
</div>
<div class="mm-settings mm-screen mm-screen--disabled">
<div class="mdc-list-group">
<h3 class="mdc-list-group__subheader mm-settings__group">Location</h3>
<div class="mdc-list-item mm-settings__entry">
<div class="mm-settings__entry-text">
<label for="mm-settings-geo" class="mdc-switch-label mm-settings__entry-label">Suggest travel currencies</label>
<div class="mm-settings__entry-details">
In order to automatically suggest travel currencies, we need access to your location data.
</div>
</div>
<div class="mdc-switch">
<input type="checkbox" id="mm-settings-geo" class="mdc-switch__native-control" />
<div class="mdc-switch__background">
<div class="mdc-switch__knob"></div>
</div>
</div>
</div>
<hr class="mm-settings__divider mdc-list-divider">
</div>
<div class="mdc-list-group">
<h3 class="mdc-list-group__subheader mm-settings__group">Notifications</h3>
<div class="mdc-list-item mm-settings__entry">
<div class="mm-settings__entry-text">
<label for="mm-settings-notify" class="mdc-switch-label mm-settings__entry-label">
Notify when rates are updated
</label>
</div>
<div class="mdc-switch">
<input type="checkbox" id="mm-settings-notify" class="mdc-switch__native-control" />
<div class="mdc-switch__background">
<div class="mdc-switch__knob"></div>
</div>
</div>
</div>
<hr class="mm-settings__divider mdc-list-divider">
</div>
<div class="mdc-list-group">
<h3 class="mdc-list-group__subheader mm-settings__group">Common values (denominations)</h3>
<div class="mdc-list-item mm-settings__entry">
<span class="mm-settings__common-symbol" data-mm-bind="home.symbol"></span>
<div class="mm-settings__common-value-container">
<div class="mdc-text-field mm-js-common-value mm-settings__common-value">
<input required type="number" min="0" step="any" class="mdc-text-field__input" id="mm-settings-first" value="1">
<label for="mm-settings-first" class="mdc-floating-label">First</label>
</div>
</div>
</div>
<div class="mdc-list-item mm-settings__entry">
<span class="mm-settings__common-symbol" data-mm-bind="home.symbol"></span>
<div class="mm-settings__common-value-container">
<div class="mdc-text-field mm-js-common-value mm-settings__common-value">
<input required type="number" min="0" step="any" class="mdc-text-field__input" id="mm-settings-second" value="20">
<label for="mm-settings-second" class="mdc-floating-label">Second</label>
</div>
</div>
</div>
<div class="mdc-list-item mm-settings__entry">
<span class="mm-settings__common-symbol" data-mm-bind="home.symbol"></span>
<div class="mm-settings__common-value-container">
<div class="mdc-text-field mm-js-common-value mm-settings__common-value">
<input required type="number" min="0" step="any" class="mdc-text-field__input" id="mm-settings-third" value="50">
<label for="mm-settings-third" class="mdc-floating-label">Third</label>
</div>
</div>
</div>
</div>
</div>
<div class="mm-animation">
<div class="mm-animation__ruler"></div>
<div class="mm-animation__clip">
<div class="mm-animation__item"></div>
</div>
<div class="mm-animation__hero"></div>
</div>
<div class="mm-loading">
Please wait while the application loads.
</div>
<aside id="mm-rates-dialog"
class="mdc-dialog"
role="alertdialog"
aria-hidden="true"
aria-labelledby="mm-rates-dialog-label"
aria-describedby="mm-rates-dialog-description">
<div class="mdc-dialog__surface">
<header class="mdc-dialog__header">
<h2 id="mm-rates-dialog-label" class="mdc-dialog__header__title">
How rates are updated
</h2>
</header>
<section id="mm-rates-dialog-description" class="mdc-dialog__body">
The rates used are provided by the
<a target="_blank" rel="noopener" href="https://www.ecb.europa.eu/stats/policy_and_exchange_rates/euro_reference_exchange_rates/html/index.en.html">
European Central Bank</a>.
They are usually updated at 14:15 CET on working days only, so the latest rates may be a few days old.
<br><br>
<b>Current rates published <span data-mm-bind="rates.relative"></span> (<span data-mm-bind="rates.date"></span>).</b>
</section>
<footer class="mdc-dialog__footer">
<button type="button" class="mdc-button mdc-dialog__footer__button mdc-dialog__footer__button--accept">Close</button>
</footer>
</div>
<div class="mdc-dialog__backdrop"></div>
</aside>
<aside id="mm-about-dialog"
class="mdc-dialog"
role="alertdialog"
aria-hidden="true"
aria-labelledby="mm-about-dialog-label"
aria-describedby="mm-about-dialog-description">
<div class="mdc-dialog__surface">
<header class="mdc-dialog__header">
<h2 id="mm-about-dialog-label" class="mdc-dialog__header__title">
About this app
</h2>
</header>
<section id="mm-about-dialog-description" class="mdc-dialog__body">
This app is an open-source project. You can find all of the code
<a target="_blank" rel="noopener" href="https://github.com/GoogleChrome/sample-currency-converter">on GitHub</a>.
<p></p>
Copyright 2016 Google Inc.<br>
License: <a target="_blank" rel="noopener" href="http://www.apache.org/licenses/LICENSE-2.0">Apache 2</a>.
</section>
<footer class="mdc-dialog__footer">
<button type="button" class="mdc-button mdc-dialog__footer__button mdc-dialog__footer__button--accept">Close</button>
</footer>
</div>
<div class="mdc-dialog__backdrop"></div>
</aside>
<div class="mdc-snackbar mm-snackbar"
aria-live="assertive"
aria-atomic="true"
aria-hidden="true">
<div class="mdc-snackbar__text"></div>
<div class="mdc-snackbar__action-wrapper">
<button type="button" class="mdc-button mdc-snackbar__action-button"></button>
</div>
</div>
<!-- {% include main js %} -->
<!-- Register Service Worker -->
<script>
if ('serviceWorker' in navigator) {
navigator.serviceWorker.register('/sw.js').catch(function(err) {
console.log('ServiceWorker registration failed: ', err);
});
}
</script>
</body>