Skip to content

Instantly share code, notes, and snippets.

@CEOehis
Created August 30, 2020 17:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CEOehis/73420de95b70951c4c6c6d8164609a76 to your computer and use it in GitHub Desktop.
Save CEOehis/73420de95b70951c4c6c6d8164609a76 to your computer and use it in GitHub Desktop.
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="styles.css">
</head>
<body>
<header>Stylight Currency Converter</header>
<section>
<span>
<form id="converter" action="./">
<p>Source currency:</p>
<input type="number" id="source" type="text" value="1">
<select name="source" id="source-select">
<option value="EUR" selected>EUR</option>
<option value="USD">USD</option>
<option value="JPY">JPY</option>
</select>
<p>Target currency:</p>
<input type="number" id="target" type="text">
<select name="target" id="target-select">
<option value="EUR">EUR</option>
<option value="USD" selected>USD</option>
<option value="JPY">JPY</option>
</select>
</form>
<p>Result:</p>
<p id="result"></p>
</span>
</section>
<!-- Use the `axios` library for making Ajax requests. -->
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
<!-- Put your own JavaScript into this file. -->
<script src="scripts.js"></script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment