-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
49 lines (48 loc) · 1.7 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
<!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">
<link rel="stylesheet" href="/Calculator/index.css">
<title>Document</title>
</head>
<body>
<div class="wrap">
<div class="showResult">
<input type="text" id="input" readonly>
<input type="text" id="output" readonly>
</div>
<div class="wrap_1">
<div style="background-color: darkgrey; color: black;" onclick="allclear()">AC</div>
<div style="background-color: darkgrey; color: black;">+/-</div>
<div style="background-color: darkgrey; color: black;" onclick="divide()">%</div>
<div style="background-color: orange;" onclick="checkSign('/')">/</div>
</div>
<div class="wrap_2">
<div onclick="send(7)">7</div>
<div onclick="send(8)">8</div>
<div onclick="send(9)">9</div>
<div style = "background-color: orange;" onclick="checkSign('*')">X</div>
</div>
<div class="wrap_3">
<div onclick="send(4)">4</div>
<div onclick="send(5)">5</div>
<div onclick="send(6)">6</div>
<div style="background-color: orange;" onclick="checkSign('-')">-</div>
</div>
<div class="wrap_4">
<div onclick="send(1)">1</div>
<div onclick="send(2)">2</div>
<div onclick="send(3)">3</div>
<div style="background-color: orange;" onclick="checkSign('+')">+</div>
</div>
<div class="wrap_5">
<div id="specialBt" onclick="send(0)">0</div>
<div>.</div>
<div style="background-color: orange;" onclick="calculate()">=</div>
</div>
</div>
<script src="/Calculator/index.js"></script>
</body>
</html>