-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
166 lines (163 loc) · 7.17 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Calculator</title>
<script src="javascript.js" defer></script>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="content">
<div class="calculator-container">
<div class="calculator">
<div class="display">
<span>0</span>
</div>
<div class="buttons">
<div class="top-row">
<button class="clear func-1" id="hover">
<span>AC</span>
</button>
<button class="pos-neg func-1" id="hover">
<span>⁺∕₋</span>
</button>
<button class="percent func-1" id="hover">
<span>%</span>
</button>
<button class="divide func-2" id="hover">
<span>÷</span>
</button>
</div>
<div class="sec-row">
<button class="num seven" id="hover">
<span>7</span>
</button>
<button class="num eight" id="hover">
<span>8</span>
</button>
<button class="num nine" id="hover">
<span>9</span>
</button>
<button class="multiply func-2" id="hover">
<span>×</span>
</button>
</div>
<div class="third-row">
<button class="num four" id="hover">
<span>4</span>
</button>
<button class="num five" id="hover">
<span>5</span>
</button>
<button class="num six" id="hover">
<span>6</span>
</button>
<button class="func-2 minus" id="hover">
<span>−</span>
</button>
</div>
<div class="fourth-row">
<button class="num one" id="hover">
<span>1</span>
</button>
<button class="num two" id="hover">
<span>2</span>
</button>
<button class="num three" id="hover">
<span>3</span>
</button>
<button class="func-2 plus" id="hover">
<span>+</span>
</button>
</div>
<div class="final-row">
<button class="func-1 delete" id="hover">
<span>←</span>
</button>
<button class="num zero" id="hover">
<span>0</span>
</button>
<button class="num dot" id="hover">
<span>•</span>
</button>
<button class="equals" id="hover">
<span>=</span>
</button>
</div>
</div>
</div>
</div>
<div class="intro-container">
<h1>A Very Basic Calculator</h1>
<p>This is a site for a basic calculator that fully supports keyboard input. Use it for division, multiplication, subtraction, and addition. You can also calculate percentages. Additionally, you can toggle the negative/positive sign of a number, clear the current entry (C), clear everything (AC), or delete one character at a time from the right.
</p>
<div class="guide">
<div class="features">
<h2>Key Features</h2>
<ul>
<li>Division</li>
<li>Multiplication</li>
<li>Subtraction</li>
<li>Addition</li>
<li> <iframe src="https://giphy.com/embed/QDWfYoN2OBPit1dt2Z" width="10" height="10" frameBorder="0" class="giphy-embed" allowFullScreen></iframe> Califoniacation?</li>
<li>Percentage calculations</li>
<li>Toggle between negative and positive numbers</li>
<li>Clear current entry (C) or all entries (AC)</li>
<li>Backspace to delete one character at a time</li>
<li>Full keyboard support for efficient operation</li>
</ul>
</div>
<div class="keyboard-mapping">
<h2>Input Guide</h2>
<table>
<tr>
<td class="name">Numbers</td>
<td class="desc">top row numbers or Numpad</td>
</tr>
<tr>
<td class="name">÷</td>
<td class="desc">"/" or numpad "/"</td>
</tr>
<tr>
<td class="name">×</td>
<td class="desc">"shift + 8" or numpad "*"</td>
</tr>
<tr>
<td class="name">−</td>
<td class="desc">"-" or numpad "-"</td>
</tr>
<tr>
<td class="name">+</td>
<td class="desc">"shift + =" or numpad "+"</td>
</tr>
<tr>
<td class="name">=</td>
<td class="desc">"=" or "Enter" or numpad "Enter"</td>
</tr>
<tr>
<td class="name">%</td>
<td class="desc">"shift + 5"</td>
</tr>
<tr>
<td class="name">-/+ toggle</td>
<td class="desc">"shift + -"</td>
</tr>
<tr>
<td class="name">Clear/All Clear</td>
<td class="desc">"Del"</td>
</tr>
<tr>
<td class="name">←</td>
<td class="desc">"Backspace"</td>
</tr>
</table>
</div>
</div>
</div>
</div>
<div class="footer">
<p>© 2024 Merlin Y</p>
</div>
</body>
</html>