-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
153 lines (146 loc) · 4.58 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Simple Calculator</title>
<link rel="stylesheet" href="assets/css/calculator.style.css" />
<!-- apple touch icon -->
<link
rel="apple-touch-icon"
sizes="180x180"
href="assets/img/apple-touch-icon-180x180.png"
/>
<link
rel="apple-touch-icon"
sizes="152x152"
href="assets/img/apple-touch-icon-152x152.png"
/>
<link
rel="apple-touch-icon"
sizes="144x144"
href="assets/img/apple-touch-icon-144x144.png"
/>
<link
rel="apple-touch-icon"
sizes="120x120"
href="assets/img/apple-touch-icon-120x120.png"
/>
<link
rel="apple-touch-icon"
sizes="114x114"
href="assets/img/apple-touch-icon-114x114.png"
/>
<link
rel="apple-touch-icon"
sizes="76x76"
href="assets/img/apple-touch-icon-76x76.png"
/>
<link
rel="apple-touch-icon"
sizes="72x72"
href="assets/img/apple-touch-icon-72x72.png"
/>
<link
rel="apple-touch-icon"
sizes="57x57"
href="assets/img/apple-touch-icon-57x57.png"
/>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/css/all.min.css"
integrity="sha512-KfkfwYDsLkIlwQp6LFnl8zNdLGxu9YAA1QvwINks4PhcElQSvqcyVLLD9aMhXd13uQjoXtEKNosOWaZqXgel0g=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
/>
<!-- favicon -->
<link rel="icon" href="assets/img/favicon.ico" />
</head>
<body>
<header>
<button class="close" onclick="window.location.href='index.html'">
✖
</button>
<p class="title_web">Simple Calculator</p>
<p>Try it!</p>
</header>
<main>
<section id="calculator">
<div class="container">
<h1 style="display: none">Simple Calculator</h1>
<div class="display-result">
<p class="operation">
<span id="firstNumber"></span>
<span id="operation"></span>
<span id="secondNumber"></span>
<span id="equal"></span>
</p>
<p id="displayNumber">0</p>
</div>
<hr />
<div class="field">
<div class="button">7</div>
<div class="button">8</div>
<div class="button">9</div>
<div class="button del">
<i class="fa-solid fa-delete-left"></i>
<div class="screen_delete delete_btn" id="deleteBtn"></div>
</div>
</div>
<div class="field">
<div class="button">4</div>
<div class="button">5</div>
<div class="button">6</div>
<div class="button operator" id="minBtn">-</div>
</div>
<div class="field">
<div class="button">1</div>
<div class="button">2</div>
<div class="button">3</div>
<div class="button operator" id="plusBtn">+</div>
</div>
<div class="field">
<div class="button clear" id="clearBtn">CE</div>
<div class="button">0</div>
<div class="button negative" id="plusMinusBtn">+/-</div>
<div class="button equals" id="equalBtn">=</div>
</div>
</div>
</section>
<section id="history">
<div class="container">
<div class="history_content">
<h2>Riwayat Perhitungan</h2>
<div class="table_responsives">
<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>
<button id="removeBtn">Remove Storage</button>
</div>
</div>
</section>
</main>
<footer>
<p>Belajar Dasar Pemrograman Web © 2019</p>
<p>Simple Calculator | Dicoding Academy</p>
</footer>
<!-- script -->
<script
src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/js/all.min.js"
integrity="sha512-6PM0qYu5KExuNcKt5bURAoT6KCThUmHRewN3zUFNaoI6Di7XJPTMoT6K0nsagZKk2OB4L7E3q1uQKHNHd4stIQ=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
></script>
<script src="assets/js/calculator.scripts.js"></script>
<script src="assets/js/storage.scripts.js"></script>
</body>
</html>