-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
46 lines (41 loc) · 2.25 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<!DOCTYPE html>
<html>
<head>
<title>Basic Caluclator</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-eOJMYsd53ii+scO/bJGFsiCZc+5NDVN2yr8+0RDqr0Ql0h+rP48ckxlpbzKgwra6" crossorigin="anonymous">
</head>
<body>
<div class="container">
<input id="firstNumber" class="form-control form-control-lg" type="text" placeholder="First number" aria-label=".form-control-lg example">
<input id="secondNumber" class="form-control form-control-lg" type="text" placeholder="Second number" aria-label=".form-control-lg example">
<div class="form-check">
<input value="+" class="form-check-input" type="radio" name="operator" id="operator1">
<label class="form-check-label" for="operator1">
Add
</label>
</div>
<div class="form-check">
<input value="-" class="form-check-input" type="radio" name="operator" id="operator2">
<label class="form-check-label" for="operator2">
Subtract
</label>
</div>
<div class="form-check">
<input value="*" class="form-check-input" type="radio" name="operator" id="operator3">
<label class="form-check-label" for="operator3">
Multiply
</label>
</div>
<div class="form-check">
<input value="/" class="form-check-input" type="radio" name="operator" id="operator4" checked>
<label class="form-check-label" for="operator4">
Divide
</label>
</div>
<input id="output" class="form-control form-control-lg" type="text" placeholder="Result" aria-label=".form-control-lg example" disabled>
<button id="calculateButton" type="submit" class="btn btn-primary mb-3">Calculate</button>
</div>
<script src="app.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta3/dist/js/bootstrap.bundle.min.js" integrity="sha384-JEW9xMcG8R+pH31jmWH6WWP0WintQrMb4s7ZOdauHnUtxwoG2vI5DkLtS3qm9Ekf" crossorigin="anonymous"></script>
</body>
</html>