Conversor_moneda/index.html

82 lines
2.0 KiB
HTML
Raw Normal View History

2020-05-30 12:11:35 +01:00
<!DOCTYPE html>
<html lang='fr'>
<head>
<meta charset="UTF-8">
<meta name="author" content="Arnau Busom i Vidal">
2020-06-18 21:46:50 +01:00
<title>Currency Converter</title>
2020-05-30 12:11:35 +01:00
</head>
<body>
2020-06-21 23:58:58 +01:00
<h3>Conversion</h3>
From: <select id='curr'>
2020-05-30 12:11:35 +01:00
<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>
2020-06-18 22:16:47 +01:00
<option value='INR'>INR</option>
<option value='ISK'>ISK</option>
<option value='DKK'>DKK</option>
<option value='RON'>RON</option>
<option value='NOK'>NOK</option>
2020-05-30 12:11:35 +01:00
</select>
<input type='number' id='val' step='0.01'>
2020-06-21 23:58:58 +01:00
To: <select id='curr2'>
2020-05-30 12:11:35 +01:00
<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>
2020-06-18 22:16:47 +01:00
<option value='INR'>INR</option>
<option value='ISK'>ISK</option>
<option value='DKK'>DKK</option>
<option value='RON'>RON</option>
<option value='NOK'>NOK</option>
2020-05-30 12:11:35 +01:00
</select>
<button onClick='convert()'>Convert</button>
2020-05-30 12:11:35 +01:00
<p>
2020-06-18 22:23:35 +01:00
Conversion: <span id='res'></span>
2020-05-30 12:11:35 +01:00
</p>
2020-06-21 23:58:58 +01:00
<h3>Reversed conversion</h3>
From: <select id='rev'>
<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>
<option value='INR'>INR</option>
<option value='ISK'>ISK</option>
<option value='DKK'>DKK</option>
<option value='RON'>RON</option>
<option value='NOK'>NOK</option>
</select>
2020-05-30 12:11:35 +01:00
2020-06-21 23:58:58 +01:00
<input type='number' id='val2' step='0.01'>
To: <select id='rev2'>
<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>
<option value='INR'>INR</option>
<option value='ISK'>ISK</option>
<option value='DKK'>DKK</option>
<option value='RON'>RON</option>
<option value='NOK'>NOK</option>
</select>
<button onClick='convert2()'>Convert</button>
<p>
Conversion: <span id='res2'></span>
</p>
2020-05-30 12:11:35 +01:00
<script src='script.js'></script>
</body>
</html>