-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
68 lines (58 loc) · 1.61 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="./css/index.css">
<script src="./script/index.js" defer></script>
</head>
<body>
<table>
<tr>
<th>Month</th>
<th>Base Amount</th>
<th>Frequency</th>
<th>Total</th>
</tr>
<tr>
<td>January</td>
<td id="januaryAmount">$100</td>
<td id="januaryFrequency">4</td>
<td id="januaryTotal"></td>
</tr>
<tr>
<td >February</td>
<td id="februaryAmount">$80</td>
<td id="februaryFrequency">2</td>
<td id="februaryTotal"></td>
</tr>
<tr>
<td >March</td>
<td id="marchAmount">$440</td>
<td id="marchFrequency">1</td>
<td id="marchTotal"></td>
</tr>
<tr>
<td >April</td>
<td id="aprilAmount">$800</td>
<td id="aprilFrequency">5</td>
<td id="aprilTotal"></td>
</tr>
<tr>
<td >May</td>
<td id="mayAmount">$12</td>
<td id="mayFrequency">12</td>
<td id="mayTotal"></td>
</tr>
<tr>
<td >June</td>
<td id="juneAmount">$60</td>
<td id="juneFrequency">5</td>
<td id="juneTotal"></td>
</tr>
</table>
<button id="triggerSumButton"> Calculate Sum</button>
<span id="result"> </span>
</body>
</html>