-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
49 lines (39 loc) · 1.55 KB
/
index.html
File metadata and controls
49 lines (39 loc) · 1.55 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="icon" href="img/icon.png" />
<!-- Install Bootstrap -->
<link
href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.1/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-4bw+/aepP/YC94hEpVNVgiZdgIC5+VKNBQNGCHeKRQN+PtmoHDEXuppvnDJzQIu9"
crossorigin="anonymous"
/>
<script
src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.1/dist/js/bootstrap.bundle.min.js"
integrity="sha384-HwwvtgBNo3bZJJLYd8oVXjrBZt8cqVSpeBNS5n7C8IVInixGAoxmnlMuBnhbgrkm"
crossorigin="anonymous"
></script>
<title>Average Calculator</title>
</head>
<body class="m-3">
<h1 class="display-3">Average Calculator</h1>
<p class="text-secondary fs-4 pb-2">Get an average of a list of numbers!</p>
<span class="text-secondary">Seperate the numbers using a new line.</span>
<div class="input-group mb-3 mt-2">
<span class="input-group-text">Enter your list of numbers:</span>
<textarea class="numbers form-control"></textarea>
</div>
<button type="button" class="btn btn-primary mb-3 calculate">Calculate</button>
<br />
<span class="text-danger error"></span>
<hr class="p-2" />
<div class="input-group">
<span class="input-group-text" id="basic-addon1">Average number:</span>
<input type="text" class="result form-control" readonly disabled />
</div>
<script src="index.js"></script>
</body>
</html>