54 lines
2.5 KiB
HTML
54 lines
2.5 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>JS-Calc</title>
|
|
<link href="favicon.ico" rel="icon">
|
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
|
|
<link href="styles.css" rel="stylesheet">
|
|
</head>
|
|
|
|
<body class="d-flex bg-secondary-subtle justify-content-center">
|
|
<div class="p-0 container border rounded bg-white">
|
|
<div id="titlebox" class="w-100">
|
|
<h1 class="text-center mb-0 py-4 bg-dark-subtle shadow-sm">JS-Calc</h1>
|
|
</div>
|
|
<br>
|
|
<div class="row mb-4 justify-content-center">
|
|
<div class="col-md-8 d-flex flex-column gap-2">
|
|
<div class="form-group form-floating shadow-sm">
|
|
<input class="form-control" id='num1' type="text">
|
|
<label for="num1">Number 1</label>
|
|
</div>
|
|
<div class="form-group form-floating shadow-sm">
|
|
<select class="form-select" id="operator">
|
|
<option selected value="add">Add (+)</option>
|
|
<option value="minus">Minus (-)</option>
|
|
<option value="mult">Mult (x)</option>
|
|
<option value="div">Div (÷)</option>
|
|
</select>
|
|
<label for="operator">Operator</label>
|
|
</div>
|
|
<div class="form-group form-floating shadow-sm">
|
|
<input class="form-control" id='num2' type="text">
|
|
<label for="num2">Number 2</label>
|
|
</div>
|
|
<div class="form-group form-floating shadow-sm align-self-center">
|
|
<button class="btn btn-primary" id="calculate">Calculate</button>
|
|
</div>
|
|
<div class="form-group form-floating shadow-sm">
|
|
<input disabled class="form-control" id="result">
|
|
<label for="result">Result</label>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous" defer></script>
|
|
<script src="index.js" defer></script>
|
|
</body>
|
|
<footer class="bg-dark-subtle fixed-bottom">
|
|
<div class="d-flex flex-row justify-content-center pt-3">
|
|
<p>Made by George Wilkinson @ 2025. Powered by Bootstrap and JS.</p>
|
|
</div>
|
|
</footer>
|
|
</html> |