82 lines
2.0 KiB
HTML
82 lines
2.0 KiB
HTML
<!DOCTYPE html>
|
|
<html lang='en'>
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="author" content="Xaloc">
|
|
<title>Currency Converter</title>
|
|
</head>
|
|
|
|
<body>
|
|
<h3>Conversion</h3>
|
|
From: <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>
|
|
<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>
|
|
|
|
<input type='number' id='val' step='0.01'>
|
|
|
|
To: <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>
|
|
<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='convert()'>Convert</button>
|
|
|
|
<p>
|
|
Conversion: <span id='res'></span>
|
|
</p>
|
|
<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>
|
|
|
|
<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>
|
|
|
|
<script src='script.js'></script>
|
|
</body>
|
|
</html>
|