File size: 1,696 Bytes
be7c3bf 7ae1eb2 be7c3bf 7ae1eb2 73cc482 7ae1eb2 83ea6fc 7ae1eb2 83ea6fc 7ae1eb2 43e0d7d 7ae1eb2 062df00 be7c3bf aade644 |
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 |
<!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="stylesheet" href="style.css">
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css" rel="stylesheet">
</head>
<body>
<div class="container">
<header>
<h1>Currency Converter</h1>
</header>
<form id="currencyForm">
<label for="amount">Amount</label>
<input type="number" id="amount" placeholder="Enter amount" required>
<label for="fromCurrency">From</label>
<select id="fromCurrency" required>
<option value="USD" selected>USD - US Dollar</option>
<option value="IDR">IDR - Indonesian Rupiah</option>
<option value="EUR">EUR - Euro</option>
<option value="GBP">GBP - British Pound</option>
<option value="JPY">JPY - Japanese Yen</option>
</select>
<button type="button" id="swapButton"><i class="fas fa-exchange-alt"></i> Swap</button>
<label for="toCurrency">To</label>
<select id="toCurrency" required>
<option value="IDR" selected>IDR - Indonesian Rupiah</option>
<option value="USD">USD - US Dollar</option>
<option value="EUR">EUR - Euro</option>
<option value="GBP">GBP - British Pound</option>
<option value="JPY">JPY - Japanese Yen</option>
</select>
</form>
<button id="convertButton">Convert</button>
<div id="result"></div>
<footer>
<p>© 2025 Teggar Eka Mustaqim Sitanggang. All Rights Reserved.</p>
</footer>
</div>
<script src="script.js"></script>
</body>
</html>
|