Update index.html
Browse files- index.html +17 -18
index.html
CHANGED
@@ -5,7 +5,6 @@
|
|
5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
<title>Currency Converter</title>
|
7 |
<link rel="stylesheet" href="style.css">
|
8 |
-
<!-- FontAwesome CDN untuk ikon -->
|
9 |
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css" rel="stylesheet">
|
10 |
</head>
|
11 |
<body>
|
@@ -18,18 +17,22 @@
|
|
18 |
<input type="number" id="amount" placeholder="Enter amount" required>
|
19 |
|
20 |
<div class="currency-selectors">
|
21 |
-
<
|
22 |
-
<
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
|
|
|
|
|
|
|
|
33 |
<select id="toCurrency" required>
|
34 |
<option value="USD">USD - US Dollar</option>
|
35 |
<option value="EUR">EUR - Euro</option>
|
@@ -46,11 +49,7 @@
|
|
46 |
<button type="submit">Convert</button>
|
47 |
</form>
|
48 |
|
49 |
-
<div id="result">
|
50 |
-
<i id="fromCurrencyIcon" class="fas"></i>
|
51 |
-
<span id="conversionResult"></span>
|
52 |
-
<i id="toCurrencyIcon" class="fas"></i>
|
53 |
-
</div>
|
54 |
|
55 |
<footer>
|
56 |
<p>© 2025 Teggar Eka Mustaqim Sitanggang. All Rights Reserved.</p>
|
|
|
5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
<title>Currency Converter</title>
|
7 |
<link rel="stylesheet" href="style.css">
|
|
|
8 |
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css" rel="stylesheet">
|
9 |
</head>
|
10 |
<body>
|
|
|
17 |
<input type="number" id="amount" placeholder="Enter amount" required>
|
18 |
|
19 |
<div class="currency-selectors">
|
20 |
+
<div class="selector-group">
|
21 |
+
<select id="fromCurrency" required>
|
22 |
+
<option value="USD">USD - US Dollar</option>
|
23 |
+
<option value="EUR">EUR - Euro</option>
|
24 |
+
<option value="GBP">GBP - British Pound</option>
|
25 |
+
<option value="IDR">IDR - Indonesian Rupiah</option>
|
26 |
+
<option value="JPY">JPY - Japanese Yen</option>
|
27 |
+
<option value="BRL">BRL - Brazilian Real</option>
|
28 |
+
<option value="KRW">KRW - South Korean Won</option>
|
29 |
+
<option value="AUD">AUD - Australian Dollar</option>
|
30 |
+
<option value="CAD">CAD - Canadian Dollar</option>
|
31 |
+
</select>
|
32 |
+
<button type="button" id="swapButton" aria-label="Swap Currencies">
|
33 |
+
<i class="fas fa-exchange-alt"></i>
|
34 |
+
</button>
|
35 |
+
</div>
|
36 |
<select id="toCurrency" required>
|
37 |
<option value="USD">USD - US Dollar</option>
|
38 |
<option value="EUR">EUR - Euro</option>
|
|
|
49 |
<button type="submit">Convert</button>
|
50 |
</form>
|
51 |
|
52 |
+
<div id="result"></div>
|
|
|
|
|
|
|
|
|
53 |
|
54 |
<footer>
|
55 |
<p>© 2025 Teggar Eka Mustaqim Sitanggang. All Rights Reserved.</p>
|