Spaces:
Running
Running
Update index.html
Browse files- index.html +53 -68
index.html
CHANGED
|
@@ -1,79 +1,64 @@
|
|
| 1 |
<!DOCTYPE html>
|
| 2 |
<html lang="en">
|
| 3 |
<head>
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
</head>
|
| 9 |
<body>
|
| 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 |
-
<select id="to-currency">
|
| 42 |
-
<option value="EUR">EUR</option>
|
| 43 |
-
<option value="USD">USD</option>
|
| 44 |
-
<option value="IDR">IDR</option>
|
| 45 |
-
</select>
|
| 46 |
-
</div>
|
| 47 |
-
<button id="swap-btn" onclick="swapCurrencies()">🔄</button>
|
| 48 |
-
<button id="convert-btn" onclick="convertCurrency()">Convert</button>
|
| 49 |
-
</div>
|
| 50 |
-
<div id="result"></div>
|
| 51 |
-
</section>
|
| 52 |
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
</div>
|
| 70 |
-
</section>
|
| 71 |
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
<script src="script.js"></script>
|
| 78 |
</body>
|
| 79 |
</html>
|
|
|
|
| 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 |
+
<!-- Navbar -->
|
| 11 |
+
<nav class="navbar">
|
| 12 |
+
<div class="container">
|
| 13 |
+
<span class="brand-logo">BrandLogo</span>
|
| 14 |
+
<span class="welcome-message">Welcome to the Currency Converter</span>
|
| 15 |
+
</div>
|
| 16 |
+
</nav>
|
| 17 |
|
| 18 |
+
<!-- Headline and Explanation -->
|
| 19 |
+
<header class="headline">
|
| 20 |
+
<h1>Currency Converter</h1>
|
| 21 |
+
<p>Easily convert currencies in a matter of seconds.</p>
|
| 22 |
+
</header>
|
| 23 |
|
| 24 |
+
<!-- Converter Section -->
|
| 25 |
+
<section class="converter-section">
|
| 26 |
+
<div class="converter-box">
|
| 27 |
+
<input type="number" id="amount" placeholder="Enter amount">
|
| 28 |
+
<select id="from-currency">
|
| 29 |
+
<option value="USD">USD</option>
|
| 30 |
+
<option value="EUR">EUR</option>
|
| 31 |
+
</select>
|
| 32 |
+
<select id="to-currency">
|
| 33 |
+
<option value="EUR">EUR</option>
|
| 34 |
+
<option value="USD">USD</option>
|
| 35 |
+
</select>
|
| 36 |
+
<button id="swap-btn">Swap</button>
|
| 37 |
+
<button id="convert-btn">Convert</button>
|
| 38 |
+
<div id="result">Result will be displayed here</div>
|
| 39 |
+
</div>
|
| 40 |
+
</section>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 41 |
|
| 42 |
+
<!-- How to Use -->
|
| 43 |
+
<section class="how-to-use">
|
| 44 |
+
<h2>How to Use the Converter</h2>
|
| 45 |
+
<div class="step-box">
|
| 46 |
+
<h3>1</h3>
|
| 47 |
+
<p>Enter the amount you want to convert.</p>
|
| 48 |
+
</div>
|
| 49 |
+
<div class="step-box">
|
| 50 |
+
<h3>2</h3>
|
| 51 |
+
<p>Select the currencies to convert from and to.</p>
|
| 52 |
+
</div>
|
| 53 |
+
<div class="step-box">
|
| 54 |
+
<h3>3</h3>
|
| 55 |
+
<p>See the result instantly.</p>
|
| 56 |
+
</div>
|
| 57 |
+
</section>
|
|
|
|
|
|
|
| 58 |
|
| 59 |
+
<!-- Footer -->
|
| 60 |
+
<footer class="footer">
|
| 61 |
+
<p>About | Social Media | © 2025 Your Website</p>
|
| 62 |
+
</footer>
|
|
|
|
|
|
|
| 63 |
</body>
|
| 64 |
</html>
|