-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
110 lines (94 loc) · 4.92 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<!-- Copyright 2022 | All rights reserved by SR TAMIM -->
<!DOCTYPE html>
<html lang="en">
<!-- calculator-v5.6.9 -->
<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">
<!-- webpage title -->
<title>Smart Calculator</title>
<!-- stylesheet of the calculator -->
<link rel="stylesheet" href="style/style.css">
<!-- icon of the webpage -->
<link rel="shortcut icon" href="img/favicon.png" type="image/x-icon">
<!-- Primary Meta Tags -->
<title>Smart Calculator</title>
<meta name="title" content="Smart Calculator">
<meta name="description" content="A standard calculator made by SR TAMIM">
<!-- Open Graph / Facebook -->
<meta property="og:type" content="website">
<meta property="og:url" content="https://sr-tamim.github.io/smart-calculator/">
<meta property="og:title" content="Smart Calculator">
<meta property="og:description" content="A standard calculator made by SR TAMIM">
<meta property="og:image" content="https://sr-tamim.github.io/smart-calculator/img/meta-image.png">
<!-- Twitter -->
<meta property="twitter:card" content="summary_large_image">
<meta property="twitter:url" content="https://sr-tamim.github.io/smart-calculator/">
<meta property="twitter:title" content="Smart Calculator">
<meta property="twitter:description" content="A standard calculator made by SR TAMIM">
<meta property="twitter:image" content="https://sr-tamim.github.io/smart-calculator/img/meta-image.png">
<!-- google search verification -->
<meta name="google-site-verification" content="E-R_i4w34dxXKDERq4XFzwb8r6cvwYP2sdQRySV2QuI" />
<script src="./script/theme.js"></script>
</head>
<body>
<div class="container">
<section class="heading-section">
<h1>Smart Calculator</h1>
<!-- light and dark mode toggler -->
<div>
<b>Theme:</b>
<select id="themeSelect">
<option value="system">System</option>
<option value="light">Light</option>
<option value="dark">Dark</option>
</select>
</div>
</section>
<!-- calculator body -->
<div class="calculator">
<!-- calculator display -->
<div class="input-area">
<input type="text" id="topDisplay" readonly>
<input type="text" id="display" readonly>
</div>
<!-- calculator buttons -->
<div class="button-area">
<span id="percentBut" class="input-button">%</span>
<span id="squareBut" class="input-button">x<sup>2</sup></span>
<span id="del" class="input-button" title="Press(Delete)">DEL</span>
<span id="ac" class="input-button" title="Press(Backspace)">AC</span>
<span id="posNegToggle" class="input-button"><sup>+</sup>/<sub>−</sub></span>
<span id="sqrtBut" class="input-button">√x</span>
<span id="oneDivided" class="input-button"><sup>1</sup>/<sub>x</sub></span>
<span class="operationBut input-button" data-operation="/">÷</span>
<span class="numberButton input-button">7</span>
<span class="numberButton input-button">8</span>
<span class="numberButton input-button">9</span>
<span class="operationBut input-button" data-operation="*">×</span>
<span class="numberButton input-button">4</span>
<span class="numberButton input-button">5</span>
<span class="numberButton input-button">6</span>
<span class="operationBut input-button" data-operation="-">−</span>
<span class="numberButton input-button">1</span>
<span class="numberButton input-button">2</span>
<span class="numberButton input-button">3</span>
<span class="operationBut input-button" data-operation="+">+</span>
<span class="numberButton input-button">0</span>
<span id="dot" class="input-button">.</span>
<span id="ansBut" class="input-button" title="Press(Arrow UP)">ANS</span>
<span id="equalBut" class="input-button">=</span>
</div>
</div>
<!-- signature of the maker of this calculator -->
<footer>Calculator made by <a href="https://sr-tamim.vercel.app/" target="_blank">SR TAMIM</a></footer>
</div>
<!-- math js library -->
<script src="script/math.js"></script>
<!-- main javascript file of this calculator -->
<script src="script/script.js"></script>
<!-- javascript file for service worker -->
<script src="script/app.js"></script>
</body>
</html>