-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
62 lines (58 loc) · 2.79 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=table, initial-scale=1.0">
<link rel="stylesheet" href="css/main.css">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link
href="https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@700&family=Josefin+Sans:wght@700&family=Oswald:wght@500&family=Source+Code+Pro&display=swap"
rel="stylesheet">
<title>Document</title>
</head>
<body>
<div class="container">
<div class="tablecss">
<p>ELECTRONIC CALCULATOR</p>
<table>
<tr>
<td class="size" colspan="4"><input type="text"></td>
</tr>
<tr>
<td><input type="button" value="C" onclick="erase()"></td>
<td><input type="button" value="<" onclick="remove1()"></td>
<td><input type="button" value="/" onclick="add('/')"></td>
<td><input type="button" value="x" onclick="add('*')"></td>
</tr>
<tr>
<td><input type="button" value="7" onclick="add('7')"></td>
<td><input type="button" value="8" onclick="add('8')"></td>
<td><input type="button" value="9" onclick="add('9')"></td>
<td><input type="button" value="-" onclick="add('-')"></td>
</tr>
<tr>
<td><input type="button" value="4" onclick="add('4')"></td>
<td><input type="button" value="5" onclick="add('5')"></td>
<td><input type="button" value="6" onclick="add('6')"></td>
<td><input type="button" value="+" onclick="add('+')"></td>
</tr>
<tr>
<td><input type="button" value="1" onclick="add('1')"></td>
<td><input type="button" value="2" onclick="add('2')"></td>
<td><input type="button" value="3" onclick="add('3')"></td>
<td rowspan="2"><input type="button" value="=" onclick="calc()"></td>
</tr>
<tr>
<td colspan="2"><input type="button" value="0" onclick="add('0')"></td>
<td><input type="button" value="." onclick="add('.')"></td>
</tr>
</table>
</div>
</div>
<script src="js/calculate.js"></script>
</body>
</html>