-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
54 lines (54 loc) · 2.65 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
<!Doctype html>
<html lang = "en-in/us">
<head>
<link rel = "icon" href = "./images/calculator.svg" type = "image/x-icon">
<meta charset="UTF-8">
<meta name="description" content="#">
<meta name="keywords" content="#">
<meta name="author" content="Deep">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel = "stylesheet" href = "style.css" type = "text/css">
<script src = "script.js" type = "text/javascript"></script>
<script src = "Tilt.js" type = "text/javascript"></script>
<title>Calculator</title>
</head>
<body>
<div class="calc-body" data-tilt data-tilt-reverse="true">
<div class= "output">
<section class= "screen" data-state="begin"></section>
</div>
<div class="binary b1 op">
<span id="clear" style="--bg: #ee204d;">AC</span>
<span id= "pi" style="--bg: #00308F;">∏</span>
<span id= "percentage" style="--bg: #00308F;">%</span>
<span class= "binarykey" style="--bg: #00308F;">/</span>
</div>
<div class="binary b2 op result">
<span class= "binarykey" style="--bg: #00308F;">*</span>
<span class= "binarykey" style="--bg: #00308F;">+</span>
<span class= "binarykey" style="--bg: #00308F;">-</span>
<span id="result" style="--bg: #76BA1B;">=</span>
</div>
<div class= "keypad">
<span class= "numkey" style="--bg: rgba(255, 255, 255, 0.05);">7</span>
<span class= "numkey" style="--bg: rgba(255, 255, 255, 0.05);">8</span>
<span class= "numkey" style="--bg: rgba(255, 255, 255, 0.05);">9</span>
<span class= "numkey" style="--bg: rgba(255, 255, 255, 0.05);">4</span>
<span class= "numkey" style="--bg: rgba(255, 255, 255, 0.05);">5</span>
<span class= "numkey" style="--bg: rgba(255, 255, 255, 0.05);">6</span>
<span class= "numkey" style="--bg: rgba(255, 255, 255, 0.05);">1</span>
<span class= "numkey" style="--bg: rgba(255, 255, 255, 0.05);">2</span>
<span class= "numkey" style="--bg: rgba(255, 255, 255, 0.05);">3</span>
<span class= "numkey" style="--bg: rgba(255, 255, 255, 0.05);">.</span>
<span class= "numkey" style="--bg: rgba(255, 255, 255, 0.05);">0</span>
<span id="del" style="--bg: #D49B54;"><img src="./images/backspace.svg" style="width: 45%; height: 45%; filter: invert(1)"></span>
</div>
</div>
<script type="text/javascript">
VanillaTilt.init(document.querySelector(".calc-body"), {
max: 7.5,
speed: 500,
});
</script>
</body>
</html>