-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
57 lines (56 loc) · 1.65 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Calculator</title>
<link rel="stylesheet" href="assets/style.css" />
</head>
<body>
<div class="flex-container-column card">
<div class="display">
<h1 id="displayNumber">0</h1>
</div>
<div class="flex-container-row">
<div class="button">7</div>
<div class="button">8</div>
<div class="button">9</div>
<div class="button negative">+/-</div>
</div>
<div class="flex-container-row">
<div class="button">4</div>
<div class="button">5</div>
<div class="button">6</div>
<div class="button operator">-</div>
</div>
<div class="flex-container-row">
<div class="button">1</div>
<div class="button">2</div>
<div class="button">3</div>
<div class="button operator">+</div>
</div>
<div class="flex-container-row">
<div class="button clear">C</div>
<div class="button">0</div>
<div class="button equals double">=</div>
</div>
</div>
<div class="history card">
<h2>Riwayat Perhitungan</h2>
<table>
<thead>
<tr>
<th>Angka Pertama</th>
<th>Operator</th>
<th>Angka Kedua</th>
<th>Hasil</th>
</tr>
</thead>
<tbody id="historyList"></tbody>
</table>
</div>
<script src="assets/storage.js"></script>
<script src="assets/calculator.js"></script>
</body>
</html>