-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
177 lines (150 loc) · 5.54 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Oswald" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.5.2/animate.min.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Currency Converter</title>
<link rel="stylesheet" href="./assets/css/materialize.min.css">
<link rel="stylesheet" href="./assets/css/style.css">
<link rel="shortcut icon" href="./favicon.ico" type="image/x-icon">
</head>
<body>
<header class="navbar-fixed">
<nav>
<div class="nav-wrapper">
<a href="#!" class="brand-logo center">X-CHANGE</a>
</div>
</nav>
</header>
<div class="main-wrapper container">
<div id="warning" class="warning--hidden">
<div class="warning__icon">
<i class="material-icons small">warning</i>
</div>
<p class="warning__text">
<span class="warning__text--bold">Offline mode.</span> Recent conversions only.
</p>
</div>
<div class="row">
<main class="main col s12 l8">
<h4 class="main__heading">Convert</h4>
<form action="#" id="form">
<div class="inputs row">
<div class="inputs__amount input-field col s12 m2">
<input placeholder="0.00" id="amount" type="number" step="0.01" class="validate" required>
<label for="amount">Amount</label>
</div>
<div class="inputs__from input-field col s12 m5">
<select class="icons" id="from" disabled>
<option selected>Loading...</option>
</select>
<label>From</label>
</div>
<div class="inputs__to input-field col s12 m5">
<select class="icons" id="to" disabled>
<option selected>Loading...</option>
</select>
<label>To</label>
</div>
</div>
<div class="inputs__clear">
<label>
<input type="checkbox" id="clear" />
<span>Clear fields after converting</span>
</label>
</div>
<div class="convert">
<button class="waves-effect waves-light btn" type="submit" id="submit-button" disabled>
<i class="material-icons right">autorenew</i>CONVERT</button>
</div>
</form>
</main>
<aside class="aside col s12 l4">
<h4 class="aside__heading">Recent Conversions</h4>
<div class="aside__content" id="aside-content">
<p class="aside__placeholder" id="aside-placeholder">Recent conversions will show up here</p>
</div>
</aside>
</div>
</div>
<!-- Modal -->
<div id="conversion-modal" class="modal">
<div class="modal-content">
<h6 class="modal__heading">CONVERSION</h6>
<div class="modal__content">
<div class="modal__preloader" id="preloader">
<div class="preloader-wrapper active">
<div class="spinner-layer spinner-blue">
<div class="circle-clipper left">
<div class="circle"></div>
</div>
<div class="gap-patch">
<div class="circle"></div>
</div>
<div class="circle-clipper right">
<div class="circle"></div>
</div>
</div>
<div class="spinner-layer spinner-red">
<div class="circle-clipper left">
<div class="circle"></div>
</div>
<div class="gap-patch">
<div class="circle"></div>
</div>
<div class="circle-clipper right">
<div class="circle"></div>
</div>
</div>
<div class="spinner-layer spinner-yellow">
<div class="circle-clipper left">
<div class="circle"></div>
</div>
<div class="gap-patch">
<div class="circle"></div>
</div>
<div class="circle-clipper right">
<div class="circle"></div>
</div>
</div>
<div class="spinner-layer spinner-green">
<div class="circle-clipper left">
<div class="circle"></div>
</div>
<div class="gap-patch">
<div class="circle"></div>
</div>
<div class="circle-clipper right">
<div class="circle"></div>
</div>
</div>
</div>
</div>
<div class="modal__data" id="data">
<div class="values">
<span id="converted-from"></span>
<i class="material-icons small values__icon">arrow_right_alt</i>
<span id="converted-to"></span>
</div>
<p class="conversion__rate">
Exchange Rate
<br> 1 :
<span id="rate"></span>
</p>
</div>
</div>
</div>
<div class="modal-footer">
<button class="modal-close waves-effect btn-flat">Close</button>
</div>
</div>
<!-- Compiled and minified JavaScript -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0-rc.2/js/materialize.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/lib/idb.min.js"></script>
<script src="./main.js"></script>
</body>
</html>