Created
August 30, 2020 17:36
-
-
Save CEOehis/73420de95b70951c4c6c6d8164609a76 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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