-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
52 lines (47 loc) · 2.17 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
<!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="styles.css">
<title>Simple Calculator</title>
</head>
<body>
<div class="main">
<div class="inner-main">
<div class="result">
<input type="text" id="result" placeholder="result" value="0" readonly>
<button onclick="ClearResult()">C</button>
</div>
<div class="keypad">
<div class="row">
<button value="1" onclick="PressKey(this.value)">1</button>
<button value="2" onclick="PressKey(this.value)">2</button>
<button value="3" onclick="PressKey(this.value)">3</button>
<button value="/" onclick="PressKey(this.value)">÷</button>
</div>
<div class="row">
<button value="4" onclick="PressKey(this.value)">4</button>
<button value="5" onclick="PressKey(this.value)">5</button>
<button value="6" onclick="PressKey(this.value)">6</button>
<button value="*" onclick="PressKey(this.value)">×</button>
</div>
<div class="row">
<button value="7" onclick="PressKey(this.value)">7</button>
<button value="8" onclick="PressKey(this.value)">8</button>
<button value="9" onclick="PressKey(this.value)">9</button>
<button value="-" onclick="PressKey(this.value)">-</button>
</div>
<div class="row">
<button class="first-child" onclick="ShowReslut()">=</button>
<button value="0" onclick="PressKey(this.value)">0</button>
<button value="." onclick="PressKey(this.value)">.</button>
<button value="+" onclick="PressKey(this.value)" class="last-child">+</button>
</div>
</div>
</div>
</div>
<script src="script.js"></script>
</body>
</html>