Skip to content

Commit e7fd3f5

Browse files
Currency Converter
1 parent b2dd118 commit e7fd3f5

File tree

5 files changed

+27
-7
lines changed

5 files changed

+27
-7
lines changed
File renamed without changes.

Currency Converter/yashwanthvarma18/index.html renamed to CurrencyConverter/CurrencyConvertor/yashwanthvarma18/index.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,12 @@ <h1>Currency Converter</h1>
1616
<div id="currency-list" class="flex-container">
1717
<div class="currency-dropdown">
1818
<select id="from-currency">
19-
<!-- Dynamically populated with JavaScript -->
2019
</select>
2120
</div>
2221
<input type="number" id="amount" placeholder="Amount">
2322
<div class="currency-dropdown">
2423
<select id="to-currency">
25-
<!-- Dynamically populated with JavaScript -->
24+
2625
</select>
2726
</div>
2827
<button id="convert">Convert</button>

Currency Converter/yashwanthvarma18/script.js renamed to CurrencyConverter/CurrencyConvertor/yashwanthvarma18/script.js

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
const currencies = {
33
AED: "Arabic dirham",
44
AFN: "Afghani",
5-
ALL: "Lek",
5+
ALL: "Albanian Lek",
66
USD: "US Dollar",
77
EUR: "Euro",
88
GBP: "British Pound",
@@ -19,8 +19,27 @@ const currencies = {
1919
BRL: "Brazilian Real",
2020
MXN: "Mexican Peso",
2121
SGD: "Singapore Dollar",
22-
AED: "United Arab Emirates Dirham",
2322
KRW: "South Korean Won",
23+
THB: "Thai Baht",
24+
HKD: "Hong Kong Dollar",
25+
TRY: "Turkish Lira",
26+
ILS: "Israeli New Shekel",
27+
QAR: "Qatari Rial",
28+
SAR: "Saudi Riyal",
29+
PLN: "Polish Złoty",
30+
NOK: "Norwegian Krone",
31+
MYR: "Malaysian Ringgit",
32+
SYP: "Syrian Pound",
33+
NPR: "Nepalese Rupee",
34+
FJD: "Fiji Dollar",
35+
CLP: "Chilean Peso",
36+
PEN: "Peruvian Nuevo Sol",
37+
ARS: "Argentine Peso",
38+
VND: "Vietnamese Đồng",
39+
IRR: "Iranian Rial",
40+
EGP: "Egyptian Pound",
41+
AED: "United Arab Emirates Dirham",
42+
ZMW: "Zambian Kwacha",
2443
};
2544

2645
// Define an object with conversion rates (to USD)
@@ -44,7 +63,7 @@ const conversionRates = {
4463
BRL: 5.28,
4564
MXN: 20.07,
4665
SGD: 1.34,
47-
KRW: 1,177.74,
66+
KRW: 1177.74,
4867
THB: 32.52,
4968
HKD: 7.77,
5069
TRY: 13.71,

Currency Converter/yashwanthvarma18/style.css renamed to CurrencyConverter/CurrencyConvertor/yashwanthvarma18/style.css

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ body {
1919

2020

2121
.centered-container {
22-
background-color: white;
22+
background-color: rgba(255, 255, 255, 0.9); /* Set the alpha (fourth) value to control transparency */
2323
padding: 20px;
2424
border-radius: 10px;
2525
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
@@ -28,12 +28,13 @@ body {
2828
transform: scale(1);
2929
}
3030

31+
3132
.centered-container.enter {
3233
transform: scale(1.05);
3334
}
3435

3536
h1 {
36-
color: #333;
37+
color: #000000;
3738
}
3839

3940
.flex-container {
@@ -46,6 +47,7 @@ h1 {
4647

4748
.currency-dropdown {
4849
max-height: 200px;
50+
background-color: #007BFF;
4951
overflow-y: auto;
5052
transition: max-height 0.3s ease-in-out;
5153
}

0 commit comments

Comments
 (0)