38 lines
753 B
HTML
38 lines
753 B
HTML
<!DOCTYPE html>
|
|
<html lang='fr'>
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="author" content="Arnau Busom i Vidal">
|
|
<title>Currency Converter</title>
|
|
</head>
|
|
|
|
<body>
|
|
<select id='curr'>
|
|
<option value='EUR'>EUR</option>
|
|
<option value='USD'>USD</option>
|
|
<option value='SEK'>SEK</option>
|
|
<option value='JPY'>JPY</option>
|
|
<option value='GBP'>GBP</option>
|
|
</select>
|
|
|
|
<input type='number' id='val' step='0.01'>
|
|
|
|
<select id='curr2'>
|
|
<option value='USD'>USD</option>
|
|
<option value='EUR'>EUR</option>
|
|
<option value='SEK'>SEK</option>
|
|
<option value='JPY'>JPY</option>
|
|
<option value='GBP'>GBP</option>
|
|
</select>
|
|
|
|
<button onClick='convert()'>Convert</button>
|
|
|
|
<p>
|
|
Converted: <span id='res'></span>
|
|
</p>
|
|
|
|
|
|
<script src='script.js'></script>
|
|
</body>
|
|
</html>
|