GarGerry commited on
Commit
383d604
·
verified ·
1 Parent(s): 0d09bef

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +45 -31
index.html CHANGED
@@ -1,34 +1,48 @@
1
- <header>
2
- <div class="logo">
3
- <img src="logo.png" alt="Logo" />
4
- </div>
5
- <h1>Currency Converter</h1>
6
- <p>Check Live Foreign Currency Exchange Rate</p>
7
- </header>
 
 
 
 
 
 
 
 
 
 
8
 
9
- <div class="converter">
10
- <input type="number" id="amount" placeholder="Amount" />
11
- <div class="currency-select">
12
- <select id="from-currency">
13
- <option value="USD">USD</option>
14
- <option value="EUR">EUR</option>
15
- <option value="GBP">GBP</option>
16
- </select>
17
- <button id="swap-btn" onclick="swapCurrencies()">↔️</button>
18
- <select id="to-currency">
19
- <option value="EUR">EUR</option>
20
- <option value="USD">USD</option>
21
- <option value="GBP">GBP</option>
22
- </select>
23
- </div>
24
 
25
- <button id="convert-btn" onclick="convertCurrency()">Convert</button>
26
- <p id="result"></p>
27
- </div>
 
 
 
 
 
 
 
28
 
29
- <footer>
30
- <p><strong>About:</strong> Currency Converter App</p>
31
- <p><strong>Follow us:</strong> <a href="#">Facebook</a> | <a href="#">Twitter</a></p>
32
- <p>&copy; 2025 Currency Converter App. All rights reserved.</p>
33
- </footer>
34
- <link rel="stylesheet" href="style.css">
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
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
+ </head>
9
+ <body>
10
+ <div class="container">
11
+ <header>
12
+ <div class="logo">
13
+ <img src="logo.png" alt="Logo"> <!-- Pastikan logo.png ada di direktori yang sama -->
14
+ </div>
15
+ <h1>Currency Converter</h1>
16
+ <p>Check Live Foreign Currency Exchange Rate</p>
17
+ </header>
18
 
19
+ <div class="converter">
20
+ <input type="number" id="amount" placeholder="Amount">
21
+ <div class="currency-select">
22
+ <select id="from-currency">
23
+ <option value="USD">USD</option>
24
+ <option value="EUR">EUR</option>
25
+ <option value="GBP">GBP</option>
26
+ </select>
27
+ <button id="swap-btn" onclick="swapCurrencies()">↔️</button>
28
+ <select id="to-currency">
29
+ <option value="EUR">EUR</option>
30
+ <option value="USD">USD</option>
31
+ <option value="GBP">GBP</option>
32
+ </select>
33
+ </div>
34
 
35
+ <button id="convert-btn" onclick="convertCurrency()">Convert</button>
36
+ <p id="result"></p>
37
+ </div>
38
+
39
+ <footer>
40
+ <p><strong>About:</strong> Currency Converter App</p>
41
+ <p><strong>Follow us:</strong> <a href="#">Facebook</a> | <a href="#">Twitter</a></p>
42
+ <p>&copy; 2025 Currency Converter App. All rights reserved.</p>
43
+ </footer>
44
+ </div>
45
 
46
+ <script src="script.js"></script>
47
+ </body>
48
+ </html>