generated from YearUpSpring2024/bootstrap-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
69 lines (54 loc) · 1.95 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<!Doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Bootstrap demo</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
<!-- css -->
<link rel="stylesheet" href="./css/site.css">
</head>
<body>
<header>
<div class="container mt-5">
<h1 class="text-center">Calculator</h1>
</div>
</header>
<main>
<div class="container mt-5">
<div class="row justify-content-center">
<div class="col-lg-4">
<!-- first input -->
<div class="mb-3">
<label class="form-label" for="Number1Field">Number 1: </label>
<input class="form-control" type="text" id="number1Field">
</div>
<!-- second input -->
<div>
<label class="form-label" for="Number2Field">Number 1: </label>
<input class="form-control" type="text" id="number2Field">
</div>
<!-- buttons -->
<div>
<input id="addBtn" type="button" value="add" />
<input id="subtractBtn" type="button" value="Subtract" />
<input id="multiplyBtn" type="button" value="Multiply" />
<input id="divideBtn" type="button" value="Divide" />
</div>
<div>
<label class="form-label"> Results</label>
<input class="form-control" type="text" id="answerField" />
</div>
</div>
</div>
</main>
<footer>
<!-- footer goes here -->
</footer>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz"
crossorigin="anonymous"></script>
<script src="scripts/index.js"></script>
</body>
</html>