-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
72 lines (65 loc) · 2.1 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
70
71
72
<!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>Web Kalkulator</title>
<link rel="stylesheet" href="assets/css/style.css" />
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
</head>
<body>
<div class="container-section">
<div class="flex-container-column card">
<div class="display">
<h1 id="displayNumber">0</h1>
</div>
<div class="flex-container-row">
<div class="button"></div>
<div class="button operator">%</div>
<div class="button negative">-/+</div>
<div class="button operator">/</div>
</div>
<div class="flex-container-row">
<div class="button">7</div>
<div class="button">8</div>
<div class="button">9</div>
<div class="button operator">*</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">CE</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>
</div>
<script src="assets/js/storage.js"></script>
<script src="assets/js/kalkulator.js"></script>
</body>
</html>