-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathindex.html
319 lines (313 loc) · 17 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
<!--
_______ ___ __ ___ _______. __ __
| \ / \ | |/ / / || | | |
| .--. | / ^ \ | ' / | (----`| |__| |
| | | | / /_\ \ | < \ \ | __ |
| '--' | / _____ \ | . \ .----) | | | | |
|_______/ /__/ \__\ |__|\__\ |_______/ |__| |__|
This project was made by Daksh Shah. You can read more about him at https://daksh.me
-->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<title>Currency Central</title>
<link rel="stylesheet" href="css/bootstrap.min.css">
<link href="https://fonts.googleapis.com/css?family=Raleway:100,300|Source+Code+Pro" rel="stylesheet">
<link rel="stylesheet" href="css/main.css">
</head>
<body>
<!-- start main container -->
<div class="container-fluid">
<!-- Permanent header -->
<div class="row header text-center">
<div class="col">
<h3>CURRENCY CENTRAL</h3>
</div>
</div>
<!-- Introduction screen -->
<section id="intro">
<div class="row">
<div class="col text-center">
<img class="hero-icon" src="img/currencies.svg">
</div>
</div>
<div class="row">
<div class="col text-center">
<p>This is Currency Central. The one stop solution for all your currency needs.</p>
</div>
</div>
<div class="row">
<div class="col text-center">
<button class="btn btn-primary convert-btn effect effect-5">Convert Currencies</button>
<button class="btn btn-primary show-favorites effect effect-5">Favorite Currencies</button>
</div>
</div>
</section>
<!-- Conversion screen -->
<section id="conversion" hidden>
<div class="row text-center">
<div class="col">
<form id="js-convert-form">
<div class="form-group">
<input type="number" name="from-entry" id="from-entry" placeholder="e.g. 250" required>
</div>
<div class="form-group">
<label for="convert-from-currency"><strong>From —</strong></label>
<a href="#" class="btn btn-primary btn-from-currency" data-toggle="modal" data-target=".from-currency-modal"><span class="flag-icon flag-icon-au"></span>AUD</a>
</div>
<div class="form-group">
<label for="convert-to-currency"><strong>To —</strong></label>
<a href="#" class="btn btn-primary btn-to-currency" data-toggle="modal" data-target=".to-currency-modal"><span class="flag-icon flag-icon-au"></span>AUD</a>
</div>
</form>
</div>
</div>
<div class="modal fade from-currency-modal" tabindex="-1" role="dialog" aria-labelledby="fromCurrencyModal" aria-hidden="true">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-body">
<div class="row">
<div class="col-6 col-sm-6 col-md-4 col-lg-3 col-xl-2">
<span class="currency-label"><span class="flag-icon flag-icon-au"></span>AUD</span>
</div>
<div class="col-6 col-sm-6 col-md-4 col-lg-3 col-xl-2">
<span class="currency-label"><span class="flag-icon flag-icon-bg"></span>BGN</span>
</div>
<div class="col-6 col-sm-6 col-md-4 col-lg-3 col-xl-2">
<span class="currency-label"><span class="flag-icon flag-icon-br"></span>BRL</span>
</div>
<div class="col-6 col-sm-6 col-md-4 col-lg-3 col-xl-2">
<span class="currency-label"><span class="flag-icon flag-icon-ca"></span>CAD</span>
</div>
<div class="col-6 col-sm-6 col-md-4 col-lg-3 col-xl-2">
<span class="currency-label"><span class="flag-icon flag-icon-ch"></span>CHF</span>
</div>
<div class="col-6 col-sm-6 col-md-4 col-lg-3 col-xl-2">
<span class="currency-label"><span class="flag-icon flag-icon-cn"></span>CNY</span>
</div>
<div class="col-6 col-sm-6 col-md-4 col-lg-3 col-xl-2">
<span class="currency-label"><span class="flag-icon flag-icon-cz"></span>CZK</span>
</div>
<div class="col-6 col-sm-6 col-md-4 col-lg-3 col-xl-2">
<span class="currency-label"><span class="flag-icon flag-icon-dk"></span>DKK</span>
</div>
<div class="col-6 col-sm-6 col-md-4 col-lg-3 col-xl-2">
<span class="currency-label"><span class="flag-icon flag-icon-gb"></span>GBP</span>
</div>
<div class="col-6 col-sm-6 col-md-4 col-lg-3 col-xl-2">
<span class="currency-label"><span class="flag-icon flag-icon-hk"></span>HKD</span>
</div>
<div class="col-6 col-sm-6 col-md-4 col-lg-3 col-xl-2">
<span class="currency-label"><span class="flag-icon flag-icon-hr"></span>HRK</span>
</div>
<div class="col-6 col-sm-6 col-md-4 col-lg-3 col-xl-2">
<span class="currency-label"><span class="flag-icon flag-icon-hu"></span>HUF</span>
</div>
<div class="col-6 col-sm-6 col-md-4 col-lg-3 col-xl-2">
<span class="currency-label"><span class="flag-icon flag-icon-id"></span>IDR</span>
</div>
<div class="col-6 col-sm-6 col-md-4 col-lg-3 col-xl-2">
<span class="currency-label"><span class="flag-icon flag-icon-il"></span>ILS</span>
</div>
<div class="col-6 col-sm-6 col-md-4 col-lg-3 col-xl-2">
<span class="currency-label"><span class="flag-icon flag-icon-in"></span>INR</span>
</div>
<div class="col-6 col-sm-6 col-md-4 col-lg-3 col-xl-2">
<span class="currency-label"><span class="flag-icon flag-icon-jp"></span>JPY</span>
</div>
<div class="col-6 col-sm-6 col-md-4 col-lg-3 col-xl-2">
<span class="currency-label"><span class="flag-icon flag-icon-kr"></span>KRW</span>
</div>
<div class="col-6 col-sm-6 col-md-4 col-lg-3 col-xl-2">
<span class="currency-label"><span class="flag-icon flag-icon-mx"></span>MXN</span>
</div>
<div class="col-6 col-sm-6 col-md-4 col-lg-3 col-xl-2">
<span class="currency-label"><span class="flag-icon flag-icon-my"></span>MYR</span>
</div>
<div class="col-6 col-sm-6 col-md-4 col-lg-3 col-xl-2">
<span class="currency-label"><span class="flag-icon flag-icon-no"></span>NOK</span>
</div>
<div class="col-6 col-sm-6 col-md-4 col-lg-3 col-xl-2">
<span class="currency-label"><span class="flag-icon flag-icon-nz"></span>NZD</span>
</div>
<div class="col-6 col-sm-6 col-md-4 col-lg-3 col-xl-2">
<span class="currency-label"><span class="flag-icon flag-icon-ph"></span>PHP</span>
</div>
<div class="col-6 col-sm-6 col-md-4 col-lg-3 col-xl-2">
<span class="currency-label"><span class="flag-icon flag-icon-pl"></span>PLN</span>
</div>
<div class="col-6 col-sm-6 col-md-4 col-lg-3 col-xl-2">
<span class="currency-label"><span class="flag-icon flag-icon-ro"></span>RON</span>
</div>
<div class="col-6 col-sm-6 col-md-4 col-lg-3 col-xl-2">
<span class="currency-label"><span class="flag-icon flag-icon-ru"></span>RUB</span>
</div>
<div class="col-6 col-sm-6 col-md-4 col-lg-3 col-xl-2">
<span class="currency-label"><span class="flag-icon flag-icon-se"></span>SEK</span>
</div>
<div class="col-6 col-sm-6 col-md-4 col-lg-3 col-xl-2">
<span class="currency-label"><span class="flag-icon flag-icon-sg"></span>SGD</span>
</div>
<div class="col-6 col-sm-6 col-md-4 col-lg-3 col-xl-2">
<span class="currency-label"><span class="flag-icon flag-icon-th"></span>THB</span>
</div>
<div class="col-6 col-sm-6 col-md-4 col-lg-3 col-xl-2">
<span class="currency-label"><span class="flag-icon flag-icon-tr"></span>TRY</span>
</div>
<div class="col-6 col-sm-6 col-md-4 col-lg-3 col-xl-2">
<span class="currency-label"><span class="flag-icon flag-icon-us"></span>USD</span>
</div>
<div class="col-6 col-sm-6 col-md-4 col-lg-3 col-xl-2">
<span class="currency-label"><span class="flag-icon flag-icon-za"></span>ZAR</span>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="modal fade to-currency-modal" tabindex="-1" role="dialog" aria-labelledby="toCurrencyModal" aria-hidden="true">
<div class="modal-dialog modal-lg">
<div class="modal-content text-center">
<div class="modal-body">
<div class="row">
<div class="col-6 col-sm-6 col-md-4 col-lg-3 col-xl-2">
<span class="currency-label"><span class="flag-icon flag-icon-au"></span>AUD</span>
</div>
<div class="col-6 col-sm-6 col-md-4 col-lg-3 col-xl-2">
<span class="currency-label"><span class="flag-icon flag-icon-bg"></span>BGN</span>
</div>
<div class="col-6 col-sm-6 col-md-4 col-lg-3 col-xl-2">
<span class="currency-label"><span class="flag-icon flag-icon-br"></span>BRL</span>
</div>
<div class="col-6 col-sm-6 col-md-4 col-lg-3 col-xl-2">
<span class="currency-label"><span class="flag-icon flag-icon-ca"></span>CAD</span>
</div>
<div class="col-6 col-sm-6 col-md-4 col-lg-3 col-xl-2">
<span class="currency-label"><span class="flag-icon flag-icon-ch"></span>CHF</span>
</div>
<div class="col-6 col-sm-6 col-md-4 col-lg-3 col-xl-2">
<span class="currency-label"><span class="flag-icon flag-icon-cn"></span>CNY</span>
</div>
<div class="col-6 col-sm-6 col-md-4 col-lg-3 col-xl-2">
<span class="currency-label"><span class="flag-icon flag-icon-cz"></span>CZK</span>
</div>
<div class="col-6 col-sm-6 col-md-4 col-lg-3 col-xl-2">
<span class="currency-label"><span class="flag-icon flag-icon-dk"></span>DKK</span>
</div>
<div class="col-6 col-sm-6 col-md-4 col-lg-3 col-xl-2">
<span class="currency-label"><span class="flag-icon flag-icon-gb"></span>GBP</span>
</div>
<div class="col-6 col-sm-6 col-md-4 col-lg-3 col-xl-2">
<span class="currency-label"><span class="flag-icon flag-icon-hk"></span>HKD</span>
</div>
<div class="col-6 col-sm-6 col-md-4 col-lg-3 col-xl-2">
<span class="currency-label"><span class="flag-icon flag-icon-hr"></span>HRK</span>
</div>
<div class="col-6 col-sm-6 col-md-4 col-lg-3 col-xl-2">
<span class="currency-label"><span class="flag-icon flag-icon-hu"></span>HUF</span>
</div>
<div class="col-6 col-sm-6 col-md-4 col-lg-3 col-xl-2">
<span class="currency-label"><span class="flag-icon flag-icon-id"></span>IDR</span>
</div>
<div class="col-6 col-sm-6 col-md-4 col-lg-3 col-xl-2">
<span class="currency-label"><span class="flag-icon flag-icon-il"></span>ILS</span>
</div>
<div class="col-6 col-sm-6 col-md-4 col-lg-3 col-xl-2">
<span class="currency-label"><span class="flag-icon flag-icon-in"></span>INR</span>
</div>
<div class="col-6 col-sm-6 col-md-4 col-lg-3 col-xl-2">
<span class="currency-label"><span class="flag-icon flag-icon-jp"></span>JPY</span>
</div>
<div class="col-6 col-sm-6 col-md-4 col-lg-3 col-xl-2">
<span class="currency-label"><span class="flag-icon flag-icon-kr"></span>KRW</span>
</div>
<div class="col-6 col-sm-6 col-md-4 col-lg-3 col-xl-2">
<span class="currency-label"><span class="flag-icon flag-icon-mx"></span>MXN</span>
</div>
<div class="col-6 col-sm-6 col-md-4 col-lg-3 col-xl-2">
<span class="currency-label"><span class="flag-icon flag-icon-my"></span>MYR</span>
</div>
<div class="col-6 col-sm-6 col-md-4 col-lg-3 col-xl-2">
<span class="currency-label"><span class="flag-icon flag-icon-no"></span>NOK</span>
</div>
<div class="col-6 col-sm-6 col-md-4 col-lg-3 col-xl-2">
<span class="currency-label"><span class="flag-icon flag-icon-nz"></span>NZD</span>
</div>
<div class="col-6 col-sm-6 col-md-4 col-lg-3 col-xl-2">
<span class="currency-label"><span class="flag-icon flag-icon-ph"></span>PHP</span>
</div>
<div class="col-6 col-sm-6 col-md-4 col-lg-3 col-xl-2">
<span class="currency-label"><span class="flag-icon flag-icon-pl"></span>PLN</span>
</div>
<div class="col-6 col-sm-6 col-md-4 col-lg-3 col-xl-2">
<span class="currency-label"><span class="flag-icon flag-icon-ro"></span>RON</span>
</div>
<div class="col-6 col-sm-6 col-md-4 col-lg-3 col-xl-2">
<span class="currency-label"><span class="flag-icon flag-icon-ru"></span>RUB</span>
</div>
<div class="col-6 col-sm-6 col-md-4 col-lg-3 col-xl-2">
<span class="currency-label"><span class="flag-icon flag-icon-se"></span>SEK</span>
</div>
<div class="col-6 col-sm-6 col-md-4 col-lg-3 col-xl-2">
<span class="currency-label"><span class="flag-icon flag-icon-sg"></span>SGD</span>
</div>
<div class="col-6 col-sm-6 col-md-4 col-lg-3 col-xl-2">
<span class="currency-label"><span class="flag-icon flag-icon-th"></span>THB</span>
</div>
<div class="col-6 col-sm-6 col-md-4 col-lg-3 col-xl-2">
<span class="currency-label"><span class="flag-icon flag-icon-tr"></span>TRY</span>
</div>
<div class="col-6 col-sm-6 col-md-4 col-lg-3 col-xl-2">
<span class="currency-label"><span class="flag-icon flag-icon-us"></span>USD</span>
</div>
<div class="col-6 col-sm-6 col-md-4 col-lg-3 col-xl-2">
<span class="currency-label"><span class="flag-icon flag-icon-za"></span>ZAR</span>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Results screen -->
<section id="results" hidden>
<div class="row text-center">
<div class="col">
<p class="result-1"><span class="from-value"></span> <span class="from-currency"></span> equals</p>
<p class="result-2"><strong><span class="to-value"></span> <span class="to-currency"></span></strong></p>
</div>
</div>
<div class="row text-center">
<div class="col">
<p id="success-message"></p>
<button class="btn btn-primary effect effect-5" id="favorite-btn">Add to favorites</button>
<button class="btn btn-primary show-favorites effect effect-5">See favorites</button>
</div>
</div>
</section>
<!-- Favorites screen -->
<section id="favorites" hidden>
<div class="row">
<div class="col">
<p class="favorites-message text-center"></p>
<div class="fav-container">
<ul id="favorites-list"></ul>
</div>
</div>
</div>
<div class="row text-center">
<div class="col">
<button class="btn btn-primary convert-btn effect effect-5">Convert Currencies</button>
<button class="btn btn-primary effect effect-5" id="delete-favorites">Delete all favorites</button>
</div>
</div>
</section>
</div>
<!-- Include scripts -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="js/bootstrap.js"></script>
<script src="js/app.js"></script>
</body>
</html>