-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
86 lines (86 loc) · 2.42 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link
href="https://fonts.googleapis.com/css2?family=Hind:wght@300;400;500;600;700&display=swap"
rel="stylesheet"
/>
<link rel="stylesheet" href="./src/styles.css" />
<title>Calculator</title>
</head>
<body>
<div id="calculator-body">
<table>
<tr>
<td colspan="4">
<input id="screen" type="text" disabled />
</td>
</tr>
<tr>
<td>
<button onclick="enterText(this)" id="symadd">+</button>
</td>
<td>
<button onclick="enterText(this)" id="symsub">-</button>
</td>
<td>
<button onclick="enterText(this)" id="symmul">×</button>
</td>
<td>
<button onclick="enterText(this)" id="symdiv">÷</button>
</td>
</tr>
<tr>
<td>
<button onclick="enterText(this)" id="num7">7</button>
</td>
<td>
<button onclick="enterText(this)" id="num8">8</button>
</td>
<td>
<button onclick="enterText(this)" id="num9">9</button>
</td>
<td rowspan="4">
<button onclick="enterText(this)" id="symeq">=</button>
</td>
</tr>
<tr>
<td>
<button onclick="enterText(this)" id="num4">4</button>
</td>
<td>
<button onclick="enterText(this)" id="num5">5</button>
</td>
<td>
<button onclick="enterText(this)" id="num6">6</button>
</td>
</tr>
<tr>
<td>
<button onclick="enterText(this)" id="num1">1</button>
</td>
<td>
<button onclick="enterText(this)" id="num2">2</button>
</td>
<td>
<button onclick="enterText(this)" id="num3">3</button>
</td>
</tr>
<tr>
<td>
<button onclick="enterText(this)" id="num0">0</button>
</td>
<td>
<button onclick="enterText(this)" id="symdot">.</button>
</td>
<td>
<button onclick="enterText(this)" id="symclr">C</button>
</td>
</tr>
</table>
</div>
<script src="./src/script.js"></script>
</body>
</html>