-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
108 lines (95 loc) · 3.78 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Currency Converter</title>
<link rel="icon" type="image/x-icon" href="images\favicon.jpeg">
</head>
<body class="bg-gray-100 min-h-screen flex items-center justify-center">
<div class="converter" id="converter">
<h2 class="text-2xl font-bold mb-4">Currency Converter</h2>
<label for="amount" class="block text-sm font-medium text-gray-700 mb-2">Amount</label>
<input type="number" id="amount" placeholder="Enter amount" class="input-style mb-4">
<div class="flex mb-4 select-container">
<label for="fromCurrency" class="block text-sm font-medium text-gray-700">From</label>
<select id="fromCurrency" class="select-style">
<option value="INR">INR</option>
<option value="USD">USD</option>
<option value="EUR">EUR</option>
<option value="JPY">JPY</option>
<option value="BGN">BGN</option>
<option value="CZK">CZK</option>
<option value="DKK">DKK</option>
<option value="GBP">GBP</option>
<option value="HUF">HUF</option>
<option value="PLN">PLN</option>
<option value="RON">RON</option>
<option value="SEK">SEK</option>
<option value="ISK">ISK</option>
<option value="NOK">NOK</option>
<option value="CHF">CHF</option>
<option value="HRK">HRK</option>
<option value="RUB">RUB</option>
<option value="TRY">TRY</option>
<option value="AUD">AUD</option>
<option value="BRL">BRL</option>
<option value="CAD">CAD</option>
<option value="CNY">CNY</option>
<option value="HKD">HKD</option>
<option value="IDR">IDR</option>
<option value="ILS">ILS</option>
<option value="KRW">KRW</option>
<option value="MXN">MXN</option>
<option value="MYR">MYR</option>
<option value="NZD">NZD</option>
<option value="PHP">PHP</option>
<option value="SGD">SGD</option>
<option value="THB">THB</option>
<option value="ZAR">ZAR</option>
</select>
</div>
<div class="flex mb-4 select-container">
<label for="toCurrency" class="block text-sm font-medium text-gray-700">To</label>
<select id="toCurrency" class="select-style">
<option value="INR">INR</option>
<option value="USD">USD</option>
<option value="EUR">EUR</option>
<option value="JPY">JPY</option>
<option value="BGN">BGN</option>
<option value="CZK">CZK</option>
<option value="DKK">DKK</option>
<option value="GBP">GBP</option>
<option value="HUF">HUF</option>
<option value="PLN">PLN</option>
<option value="RON">RON</option>
<option value="SEK">SEK</option>
<option value="ISK">ISK</option>
<option value="NOK">NOK</option>
<option value="CHF">CHF</option>
<option value="HRK">HRK</option>
<option value="RUB">RUB</option>
<option value="TRY">TRY</option>
<option value="AUD">AUD</option>
<option value="BRL">BRL</option>
<option value="CAD">CAD</option>
<option value="CNY">CNY</option>
<option value="HKD">HKD</option>
<option value="IDR">IDR</option>
<option value="ILS">ILS</option>
<option value="KRW">KRW</option>
<option value="MXN">MXN</option>
<option value="MYR">MYR</option>
<option value="NZD">NZD</option>
<option value="PHP">PHP</option>
<option value="SGD">SGD</option>
<option value="THB">THB</option>
<option value="ZAR">ZAR</option>
</select>
</div>
<button onclick="getCurrencyInfo()" class="button-style">Convert</button>
<div class = "result" id = "result"><p><span></span></p></div>
</div>
<script src="scripts.js"></script>
</body>
</html>