-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
170 lines (156 loc) · 6.45 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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="style.css">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Calculator | CodeX</title>
<link rel="icon" href="https://cdn2.iconfinder.com/data/icons/ios7-inspired-mac-icon-set/512/Calculator_512.png">
</head>
<body id="body_screen">
<div class="container">
<h1 align="center" id="calc-style">
CALCULATOR
</h1>
</div>
<div class="calculator-container" id="calculator_container_screen">
<div class="calculator">
<input type="text" title="You can directly type." id="screen" maxlength="30" readonly />
<div class="calc-buttons">
<br>
<div class="functions-one">
<button class="button numbers">
<h1>7</h1>
</button>
<button class="button numbers">
<h1>8</h1>
</button>
<button class="button numbers">
<h1>9</h1>
</button>
<div class="separate-btn"></div>
<button class="button numbers">
<h1>4</h1>
</button>
<button class="button numbers">
<h1>5</h1>
</button>
<button class="button numbers">
<h1>6</h1>
</button>
<div class="separate-btn"></div>
<button class="button numbers">
<h1>1</h1>
</button>
<button class="button numbers">
<h1>2</h1>
</button>
<button class="button numbers">
<h1>3</h1>
</button>
<div class="separate-btn"></div>
<button class="button">
<h1>C</h1>
</button>
<button class="button numbers">
<h1>0</h1>
</button>
<button class="button basic-stuff">
<h1>.</h1>
</button>
</div>
<div class="padding-functions"></div>
<div class="functions-two">
<button class="button basic-stuff">
<h1>+</h1>
</button>
<button class="button basic-stuff">
<h1>-</h1>
</button>
<button class="button basic-stuff">
<h1>x</h1>
</button>
<div class="separate-btn"></div>
<button class="button basic-stuff">
<h1><span>÷</span></h1>
</button>
<button class="button basic-stuff">
<h1>(</h1>
</button>
<button class="button basic-stuff">
<h1>)</h1>
</button>
<div class="separate-btn"></div>
<button class="button complex-stuff">
<h1><span>√</span></h1>
</button>
<button class="button complex-stuff">
<h1>x <sup>2</sup></h1>
</button>
<button class="button complex-stuff">
<h1>%</h1>
</button>
<div class="separate-btn"></div>
<button class="button complex-stuff">
<h1>x !</h1>
</button>
<button class="button complex-stuff">
<h1>x^</h1>
</button>
<button class="button complex-stuff">
<h1>e <sup>x</sup></h1>
</button>
</div>
<br>
<br>
<div class="more-functions-toggle">
<button class="more-toggle-btn">MORE FUNCTIONS</button>
<div class="other-functions">
<button class="button complex-stuff">
<h1>bin</h1>
</button>
<button class="button complex-stuff">
<h1>dec</h1>
<button class="button complex-stuff">
<h1>pi</h1>
<button class="button complex-stuff">
<h1>log<sub>10</sub>
</h1>
</button>
<button class="button complex-stuff">
<h1>1/x</sub>
</h1>
</button>
<button class="button complex-stuff">
<h1>x <sup>3</sup></h1>
</h1>
</button>
</div>
</div>
<br>
<div class="functions-three">
<button class="button triggers">
<h1>=</h1>
</button>
</div>
<div class="historyDisplay">
<h2>HISTORY</h2>
<table id="tableParent">
</table>
<button onclick="clearLocalStorage()" class="hClear-btn">Clear History</button>
</div>
</div>
</div>
</div>
<div class="toggleHistory">
<button id="showHistoryButton" class="more-toggle-btn">HISTORY</button>
</div>
<audio src="tink.wav"></audio>
<script src="script.js"></script>
<br></br>
<footer class="end">
<p class="love">Made with <span style="color: #e25555;">♥</span> by <a
href="https://github.com/subhranshuchoudhury"> Subhranshu Choudhury </a></p>
</footer>
</body>
</html>