This repository has been archived by the owner on Mar 26, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
193 lines (174 loc) · 8.62 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
<!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">
<title>Currency Converter</title>
<link rel="stylesheet" href=
"https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
<script src=
"https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js">
</script>
<script src=
"https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js">
</script>
<script src=
"https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js">
</script>
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href=
"https://fonts.googleapis.com/css2?family=Amiri&family=Lobster&family=Pacifico&display=swap"
rel="stylesheet">
<!-- linking style.css file-->
<link rel="stylesheet" href="style.css">
</head>
<body>
<!-- Currency Converter -->
<h1 class="heading text-center display-2"> Currency Converter </h1>
<hr>
<div class="container">
<div class="main">
<div class="form-group">
<label for="oamount">
Amount to Convert :
</label>
<input type="text"
class="form-control searchBox"
placeholder="0.00" id="oamount">
</div>
<div class="row">
<div class="col-sm-6">
<div class="input-group mb-3">
<div class="input-group-prepend">
<span class="input-group-text">From</span>
</div>
<select class="form-control from" id="sel1">
<option value="">Select One …</option>
<option value="USD">USD (American Dollar)</option>
<option value="AED">AED (United Arab Emirates Dirham)</option>
<option value="AUD">AUD (Australian Dollar)</option>
<option value="BRL">BRL (Brazilian Real)</option>
<option value="CAD">CAD (Canadian Dollar)</option>
<option value="CHF">CHF (Swiss Franc)</option>
<option value="CNY">CNY (Chinese Yuan)</option>
<option value="EUR">EUR (Euro)</option>
<option value="GBP">GBP (English Pound)</option>
<option value="IDR">IDR (Indian Rupee)</option>
<option value="JPY">JPY (Japanese Yen)</option>
<option value="KRW">KRW (Korean Won)</option>
<option value="RUB">RUB (Russian Ruble)</option>
<option value="UAH">UAH (Ukraine Hryvnia)</option>
</select>
</div>
</div>
<div class="col-sm-6">
<div class="input-group mb-3">
<div class="input-group-prepend">
<span class="input-group-text">To</span>
</div>
<select class="form-control to" id="sel2">
<option value="">Select One …</option>
<option value="USD">USD (American Dollar)</option>
<option value="AED">AED (United Arab Emirates Dirham)</option>
<option value="AUD">AUD (Australian Dollar)</option>
<option value="BRL">BRL (Brazilian Real)</option>
<option value="CAD">CAD (Canadian Dollar)</option>
<option value="CHF">CHF (Swiss Franc)</option>
<option value="CNY">CNY (Chinese Yuan)</option>
<option value="EUR">EUR (Euro)</option>
<option value="GBP">GBP (English Pound)</option>
<option value="IDR">IDR (Indian Rupee)</option>
<option value="JPY">JPY (Japanese Yen)</option>
<option value="KRW">KRW (Korean Won)</option>
<option value="RUB">RUB (Russian Ruble)</option>
<option value="UAH">UAH (Ukraine Hryvnia)</option>
</select>
</div>
</div>
</div>
<div class="text-center">
<!-- convert button -->
<button class="btn btn-success convert m-2"
type="submit">
Convert
</button>
<!-- reset button -->
<button class="btn btn-info m-2"
onclick="clearVal()">
Reset
</button>
</div>
</div>
<div id="finalAmount" class="text-center">
<!-- Display the converted amount -->
<h2>Converted Amount :
<span class="finalValue"
style="color:orange;">
</span>
</h2>
</div>
</div>
<!-- linking script.js file -->
<script src="script.js"></script>
<br>
<div id="footer">
<center>©2022. All rights reserved. | <b>Designed by Leonel Palma</b></center>
</div>
</body>
</html>
<!--
<option value="USD">USD</option>
<option value="AED">AED</option>
<option value="ARS">ARS</option>
<option value="AUD">AUD</option>
<option value="BGN">BGN</option>
<option value="BRL">BRL</option>
<option value="BSD">BSD</option>
<option value="CAD">CAD</option>
<option value="CHF">CHF</option>
<option value="CLP">CLP</option>
<option value="CNY">CNY</option>
<option value="COP">COP</option>
<option value="CZK">CZK</option>
<option value="DKK">DKK</option>
<option value="DOP">DOP</option>
<option value="EGP">EGP</option>
<option value="EUR">EUR</option>
<option value="FJD">FJD</option>
<option value="GBP">GBP</option>
<option value="GTQ">GTQ</option>
<option value="HKD">HKD</option>
<option value="HRK">HRK</option>
<option value="HUF">HUF</option>
<option value="IDR">IDR</option>
<option value="ILS">ILS</option>
<option value="INR">INR</option>
<option value="ISK">ISK</option>
<option value="JPY">JPY</option>
<option value="KRW">KRW</option>
<option value="KZT">KZT</option>
<option value="MVR">MVR</option>
<option value="MXN">MXN</option>
<option value="MYR">MYR</option>
<option value="NOK">NOK</option>
<option value="NZD">NZD</option>
<option value="PAB">PAB</option>
<option value="PEN">PEN</option>
<option value="PHP">PHP</option>
<option value="PKR">PKR</option>
<option value="PLN">PLN</option>
<option value="PYG">PYG</option>
<option value="RON">RON</option>
<option value="RUB">RUB</option>
<option value="SAR">SAR</option>
<option value="SEK">SEK</option>
<option value="SGD">SGD</option>
<option value="THB">THB</option>
<option value="TRY">TRY</option>
<option value="TWD">TWD</option>
<option value="UAH">UAH</option>
<option value="UYU">UYU</option>
<option value="ZAR">ZAR</option>
-->