1234567891011121314151617181920212223242526272829303132333435363738 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <link rel="shortcut icon" href="https://favicon-generator.org/favicon-generator/htdocs/favicons/2015-01-28/7279ebe8ba6a76623019cc424f6c3ff6.ico" type="image/x-icon">
- <title>JavaScript DOM</title>
- <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous" />
-
- </head>
- <body>
- <div class="container h-100">
- <div class="row h-100 w-50 mx-auto border border-dark rounded p-3 mt-5 justify-content-center">
- <h1 class="text-center">Online currency converter</h1>
- <hr>
- <div class="w-50">
- <label for="firstSelect" class="form-label">Select the currency to convert with</label>
- <input class="form-control" list="firstSelect" placeholder="Search a currency" id="firstCurrency">
- <datalist id="firstSelect">
- </datalist>
- <div class="input-group mt-3">
- <input class="form-control" type="number" value="1" required min="0" placeholder="Enter the number of convertible currency" id="firstInput" autofocus>
- </div>
- <div class="mt-3">
- <label for="firstSelect" class="form-label">Select the currency to convert to</label>
- <input class="form-control" list="firstSelect" placeholder="Search a currency" id="secondCurrency">
- <datalist id="firstSelect">
- </datalist>
- <div class="input-group mt-3">
- <input class="form-control" type="number" id="secondInput" disabled>
- </div>
- </div>
- </div>
- </div>
- <script src="index.js"></script>
- </body>
- </html>
|