-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
60 lines (59 loc) · 2.11 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>JS calculator by Harsh</title>
<link rel="stylesheet" href="style.css">
<meta name="google-site-verification" content="H3pDaKDL72BMxaZJA6givqYf9Jrivn6k9Yr_DytEgUc" />
</head>
<body>
<div id="circle"></div>
<div class="calculator">
<div class="numholder">
<table>
<input type="text" readonly id="inp"class="inp">
<tr>
<td>
<button onclick="put(7)"class="num">7</button>
</td>
<td>
<button class="num"onclick="put(8)">8</button>
</td>
<td>
<button class="num"onclick="put(9)">9</button>
</td>
<td><button class="oper"onclick="putoperplus()">+</button></td>
</tr>
<tr>
<td><button class="num"onclick="put(4)">4</button></td>
<td><button class="num"onclick="put(5)">5</button></td>
<td><button class="num"onclick="put(6)">6</button></td>
<td><button class="oper"onclick="putoperminus()">-</button></td>
</tr>
<tr>
<td><button class="num"onclick="put(1)">1</button></td>
<td><button class="num"onclick="put(2)">2</button></td>
<td><button class="num"onclick="put(3)">3</button></td>
<td><button class="oper"onclick="putoperinto()">x</button></td>
</tr>
<tr>
<td><button class="num"onclick="putoperdiv()">/</button></td>
<td><button class="num"onclick="putoperplus()">+</button></td>
<td><button class="num"id="red"onclick="putdot()">C</button></td>
<td><button class="oper"id="green"onclick="calculate()">=</button></td>
</tr>
</table>
</div>
</div>
<script src="script.js"></script>
<script type="text/javascript" src="vanilla-tilt.js"></script>
<script type="text/javascript"> VanillaTilt.init(document.querySelector(".calculator"), {
max: 25,
speed: 400,
glare: true,
"max-glare": 1
});
</script>
</body>
</html>