-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
196 lines (196 loc) · 19 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
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
<meta charset="UTF-8" />
<title>3D Binary CSS Calculator</title>
<link rel="stylesheet" href="./style.css" /><main>
<section class="info">
<h2>There is <u class="no-javascript">no JavaScript</u> on this page!</h2>
<p>This binary 3D calculator can add two binary numbers and display the result in binary, decimal and hexadecimal – completely without JavaScript! <br>
All of the logic is made using pure HTML & CSS. <br>
Click on the boxes below to use the calculator.</p>
</section>
<section class="addition"><input type="checkbox" id="check-first-15" /><input type="checkbox" id="check-first-14" /><input type="checkbox" id="check-first-13" /><input type="checkbox" id="check-first-12" /><input type="checkbox" id="check-first-11" /><input type="checkbox" id="check-first-10" /><input type="checkbox" id="check-first-9" /><input type="checkbox" id="check-first-8" /><input type="checkbox" id="check-first-7" /><input type="checkbox" id="check-first-6" /><input type="checkbox" id="check-first-5" /><input type="checkbox" id="check-first-4" /><input type="checkbox" id="check-first-3" /><input type="checkbox" id="check-first-2" /><input type="checkbox" id="check-first-1" /><input type="checkbox" id="check-first-0" /><input type="checkbox" id="check-second-15" /><input type="checkbox" id="check-second-14" /><input type="checkbox" id="check-second-13" /><input type="checkbox" id="check-second-12" /><input type="checkbox" id="check-second-11" /><input type="checkbox" id="check-second-10" /><input type="checkbox" id="check-second-9" /><input type="checkbox" id="check-second-8" /><input type="checkbox" id="check-second-7" /><input type="checkbox" id="check-second-6" /><input type="checkbox" id="check-second-5" /><input type="checkbox" id="check-second-4" /><input type="checkbox" id="check-second-3" /><input type="checkbox" id="check-second-2" /><input type="checkbox" id="check-second-1" /><input type="checkbox" id="check-second-0" /><table>
<thead>
<tr>
<td>Binary</td>
<td>Decimal</td>
<td>Hexadecimal</td>
</tr>
</thead>
<tbody><tr class="numbers">
<td>
<div class="labels first-labels">
<span class="wrapper">
<span class="placeholder cube"><div class="side front"></div><div class="side back"></div><div class="side left"></div><div class="side right"></div><div class="side top"></div><div class="side bottom"></div></span>
</span><span class="wrapper">
<label class="cube" for="check-first-15"><div class="side front"></div><div class="side back"></div><div class="side left"></div><div class="side right"></div><div class="side top"></div><div class="side bottom"></div></label>
</span><span class="wrapper">
<label class="cube" for="check-first-14"><div class="side front"></div><div class="side back"></div><div class="side left"></div><div class="side right"></div><div class="side top"></div><div class="side bottom"></div></label>
</span><span class="wrapper">
<label class="cube" for="check-first-13"><div class="side front"></div><div class="side back"></div><div class="side left"></div><div class="side right"></div><div class="side top"></div><div class="side bottom"></div></label>
</span><span class="wrapper">
<label class="cube" for="check-first-12"><div class="side front"></div><div class="side back"></div><div class="side left"></div><div class="side right"></div><div class="side top"></div><div class="side bottom"></div></label>
</span><span class="wrapper">
<label class="cube" for="check-first-11"><div class="side front"></div><div class="side back"></div><div class="side left"></div><div class="side right"></div><div class="side top"></div><div class="side bottom"></div></label>
</span><span class="wrapper">
<label class="cube" for="check-first-10"><div class="side front"></div><div class="side back"></div><div class="side left"></div><div class="side right"></div><div class="side top"></div><div class="side bottom"></div></label>
</span><span class="wrapper">
<label class="cube" for="check-first-9"><div class="side front"></div><div class="side back"></div><div class="side left"></div><div class="side right"></div><div class="side top"></div><div class="side bottom"></div></label>
</span><span class="wrapper">
<label class="cube" for="check-first-8"><div class="side front"></div><div class="side back"></div><div class="side left"></div><div class="side right"></div><div class="side top"></div><div class="side bottom"></div></label>
</span><span class="wrapper">
<label class="cube" for="check-first-7"><div class="side front"></div><div class="side back"></div><div class="side left"></div><div class="side right"></div><div class="side top"></div><div class="side bottom"></div></label>
</span><span class="wrapper">
<label class="cube" for="check-first-6"><div class="side front"></div><div class="side back"></div><div class="side left"></div><div class="side right"></div><div class="side top"></div><div class="side bottom"></div></label>
</span><span class="wrapper">
<label class="cube" for="check-first-5"><div class="side front"></div><div class="side back"></div><div class="side left"></div><div class="side right"></div><div class="side top"></div><div class="side bottom"></div></label>
</span><span class="wrapper">
<label class="cube" for="check-first-4"><div class="side front"></div><div class="side back"></div><div class="side left"></div><div class="side right"></div><div class="side top"></div><div class="side bottom"></div></label>
</span><span class="wrapper">
<label class="cube" for="check-first-3"><div class="side front"></div><div class="side back"></div><div class="side left"></div><div class="side right"></div><div class="side top"></div><div class="side bottom"></div></label>
</span><span class="wrapper">
<label class="cube" for="check-first-2"><div class="side front"></div><div class="side back"></div><div class="side left"></div><div class="side right"></div><div class="side top"></div><div class="side bottom"></div></label>
</span><span class="wrapper">
<label class="cube" for="check-first-1"><div class="side front"></div><div class="side back"></div><div class="side left"></div><div class="side right"></div><div class="side top"></div><div class="side bottom"></div></label>
</span><span class="wrapper">
<label class="cube" for="check-first-0"><div class="side front"></div><div class="side back"></div><div class="side left"></div><div class="side right"></div><div class="side top"></div><div class="side bottom"></div></label>
</span></div>
</td>
<td>
<div class="decimal number-display first"></div>
</td>
<td>
<div class="hexadecimal number-display first"><span class="hex-digit digit-3">
<span class="hex-chars"><div>0</div><div>1</div><div>2</div><div>3</div><div>4</div><div>5</div><div>6</div><div>7</div><div>8</div><div>9</div><div>a</div><div>b</div><div>c</div><div>d</div><div>e</div><div>f</div></span>
</span><span class="hex-digit digit-2">
<span class="hex-chars"><div>0</div><div>1</div><div>2</div><div>3</div><div>4</div><div>5</div><div>6</div><div>7</div><div>8</div><div>9</div><div>a</div><div>b</div><div>c</div><div>d</div><div>e</div><div>f</div></span>
</span><span class="hex-digit digit-1">
<span class="hex-chars"><div>0</div><div>1</div><div>2</div><div>3</div><div>4</div><div>5</div><div>6</div><div>7</div><div>8</div><div>9</div><div>a</div><div>b</div><div>c</div><div>d</div><div>e</div><div>f</div></span>
</span><span class="hex-digit digit-0">
<span class="hex-chars"><div>0</div><div>1</div><div>2</div><div>3</div><div>4</div><div>5</div><div>6</div><div>7</div><div>8</div><div>9</div><div>a</div><div>b</div><div>c</div><div>d</div><div>e</div><div>f</div></span>
</span></div>
</td>
</tr>
<tr class="operators plus">
<td class="operator">+</td>
<td class="operator">+</td>
<td class="operator">+</td>
</tr><tr class="numbers">
<td>
<div class="labels second-labels">
<span class="wrapper">
<span class="placeholder cube"><div class="side front"></div><div class="side back"></div><div class="side left"></div><div class="side right"></div><div class="side top"></div><div class="side bottom"></div></span>
</span><span class="wrapper">
<label class="cube" for="check-second-15"><div class="side front"></div><div class="side back"></div><div class="side left"></div><div class="side right"></div><div class="side top"></div><div class="side bottom"></div></label>
</span><span class="wrapper">
<label class="cube" for="check-second-14"><div class="side front"></div><div class="side back"></div><div class="side left"></div><div class="side right"></div><div class="side top"></div><div class="side bottom"></div></label>
</span><span class="wrapper">
<label class="cube" for="check-second-13"><div class="side front"></div><div class="side back"></div><div class="side left"></div><div class="side right"></div><div class="side top"></div><div class="side bottom"></div></label>
</span><span class="wrapper">
<label class="cube" for="check-second-12"><div class="side front"></div><div class="side back"></div><div class="side left"></div><div class="side right"></div><div class="side top"></div><div class="side bottom"></div></label>
</span><span class="wrapper">
<label class="cube" for="check-second-11"><div class="side front"></div><div class="side back"></div><div class="side left"></div><div class="side right"></div><div class="side top"></div><div class="side bottom"></div></label>
</span><span class="wrapper">
<label class="cube" for="check-second-10"><div class="side front"></div><div class="side back"></div><div class="side left"></div><div class="side right"></div><div class="side top"></div><div class="side bottom"></div></label>
</span><span class="wrapper">
<label class="cube" for="check-second-9"><div class="side front"></div><div class="side back"></div><div class="side left"></div><div class="side right"></div><div class="side top"></div><div class="side bottom"></div></label>
</span><span class="wrapper">
<label class="cube" for="check-second-8"><div class="side front"></div><div class="side back"></div><div class="side left"></div><div class="side right"></div><div class="side top"></div><div class="side bottom"></div></label>
</span><span class="wrapper">
<label class="cube" for="check-second-7"><div class="side front"></div><div class="side back"></div><div class="side left"></div><div class="side right"></div><div class="side top"></div><div class="side bottom"></div></label>
</span><span class="wrapper">
<label class="cube" for="check-second-6"><div class="side front"></div><div class="side back"></div><div class="side left"></div><div class="side right"></div><div class="side top"></div><div class="side bottom"></div></label>
</span><span class="wrapper">
<label class="cube" for="check-second-5"><div class="side front"></div><div class="side back"></div><div class="side left"></div><div class="side right"></div><div class="side top"></div><div class="side bottom"></div></label>
</span><span class="wrapper">
<label class="cube" for="check-second-4"><div class="side front"></div><div class="side back"></div><div class="side left"></div><div class="side right"></div><div class="side top"></div><div class="side bottom"></div></label>
</span><span class="wrapper">
<label class="cube" for="check-second-3"><div class="side front"></div><div class="side back"></div><div class="side left"></div><div class="side right"></div><div class="side top"></div><div class="side bottom"></div></label>
</span><span class="wrapper">
<label class="cube" for="check-second-2"><div class="side front"></div><div class="side back"></div><div class="side left"></div><div class="side right"></div><div class="side top"></div><div class="side bottom"></div></label>
</span><span class="wrapper">
<label class="cube" for="check-second-1"><div class="side front"></div><div class="side back"></div><div class="side left"></div><div class="side right"></div><div class="side top"></div><div class="side bottom"></div></label>
</span><span class="wrapper">
<label class="cube" for="check-second-0"><div class="side front"></div><div class="side back"></div><div class="side left"></div><div class="side right"></div><div class="side top"></div><div class="side bottom"></div></label>
</span></div>
</td>
<td>
<div class="decimal number-display second"></div>
</td>
<td>
<div class="hexadecimal number-display second"><span class="hex-digit digit-3">
<span class="hex-chars"><div>0</div><div>1</div><div>2</div><div>3</div><div>4</div><div>5</div><div>6</div><div>7</div><div>8</div><div>9</div><div>a</div><div>b</div><div>c</div><div>d</div><div>e</div><div>f</div></span>
</span><span class="hex-digit digit-2">
<span class="hex-chars"><div>0</div><div>1</div><div>2</div><div>3</div><div>4</div><div>5</div><div>6</div><div>7</div><div>8</div><div>9</div><div>a</div><div>b</div><div>c</div><div>d</div><div>e</div><div>f</div></span>
</span><span class="hex-digit digit-1">
<span class="hex-chars"><div>0</div><div>1</div><div>2</div><div>3</div><div>4</div><div>5</div><div>6</div><div>7</div><div>8</div><div>9</div><div>a</div><div>b</div><div>c</div><div>d</div><div>e</div><div>f</div></span>
</span><span class="hex-digit digit-0">
<span class="hex-chars"><div>0</div><div>1</div><div>2</div><div>3</div><div>4</div><div>5</div><div>6</div><div>7</div><div>8</div><div>9</div><div>a</div><div>b</div><div>c</div><div>d</div><div>e</div><div>f</div></span>
</span></div>
</td>
</tr>
<tr class="operators equals">
<td class="operator">=</td>
<td class="operator">=</td>
<td class="operator">=</td>
</tr><tr class="numbers sum">
<td>
<div class="result-display"><span class="wrapper">
<span class="show-check cube check-16"><div class="side front"></div><div class="side back"></div><div class="side left"></div><div class="side right"></div><div class="side top"></div><div class="side bottom"></div></span>
</span><span class="wrapper">
<span class="show-check cube check-15"><div class="side front"></div><div class="side back"></div><div class="side left"></div><div class="side right"></div><div class="side top"></div><div class="side bottom"></div></span>
</span><span class="wrapper">
<span class="show-check cube check-14"><div class="side front"></div><div class="side back"></div><div class="side left"></div><div class="side right"></div><div class="side top"></div><div class="side bottom"></div></span>
</span><span class="wrapper">
<span class="show-check cube check-13"><div class="side front"></div><div class="side back"></div><div class="side left"></div><div class="side right"></div><div class="side top"></div><div class="side bottom"></div></span>
</span><span class="wrapper">
<span class="show-check cube check-12"><div class="side front"></div><div class="side back"></div><div class="side left"></div><div class="side right"></div><div class="side top"></div><div class="side bottom"></div></span>
</span><span class="wrapper">
<span class="show-check cube check-11"><div class="side front"></div><div class="side back"></div><div class="side left"></div><div class="side right"></div><div class="side top"></div><div class="side bottom"></div></span>
</span><span class="wrapper">
<span class="show-check cube check-10"><div class="side front"></div><div class="side back"></div><div class="side left"></div><div class="side right"></div><div class="side top"></div><div class="side bottom"></div></span>
</span><span class="wrapper">
<span class="show-check cube check-9"><div class="side front"></div><div class="side back"></div><div class="side left"></div><div class="side right"></div><div class="side top"></div><div class="side bottom"></div></span>
</span><span class="wrapper">
<span class="show-check cube check-8"><div class="side front"></div><div class="side back"></div><div class="side left"></div><div class="side right"></div><div class="side top"></div><div class="side bottom"></div></span>
</span><span class="wrapper">
<span class="show-check cube check-7"><div class="side front"></div><div class="side back"></div><div class="side left"></div><div class="side right"></div><div class="side top"></div><div class="side bottom"></div></span>
</span><span class="wrapper">
<span class="show-check cube check-6"><div class="side front"></div><div class="side back"></div><div class="side left"></div><div class="side right"></div><div class="side top"></div><div class="side bottom"></div></span>
</span><span class="wrapper">
<span class="show-check cube check-5"><div class="side front"></div><div class="side back"></div><div class="side left"></div><div class="side right"></div><div class="side top"></div><div class="side bottom"></div></span>
</span><span class="wrapper">
<span class="show-check cube check-4"><div class="side front"></div><div class="side back"></div><div class="side left"></div><div class="side right"></div><div class="side top"></div><div class="side bottom"></div></span>
</span><span class="wrapper">
<span class="show-check cube check-3"><div class="side front"></div><div class="side back"></div><div class="side left"></div><div class="side right"></div><div class="side top"></div><div class="side bottom"></div></span>
</span><span class="wrapper">
<span class="show-check cube check-2"><div class="side front"></div><div class="side back"></div><div class="side left"></div><div class="side right"></div><div class="side top"></div><div class="side bottom"></div></span>
</span><span class="wrapper">
<span class="show-check cube check-1"><div class="side front"></div><div class="side back"></div><div class="side left"></div><div class="side right"></div><div class="side top"></div><div class="side bottom"></div></span>
</span><span class="wrapper">
<span class="show-check cube check-0"><div class="side front"></div><div class="side back"></div><div class="side left"></div><div class="side right"></div><div class="side top"></div><div class="side bottom"></div></span>
</span></div>
</td>
<td>
<div class="decimal number-display sum"></div>
</td>
<td>
<div class="hexadecimal number-display sum"><span class="hex-digit digit-3">
<span class="hex-chars"><div>0</div><div>1</div><div>2</div><div>3</div><div>4</div><div>5</div><div>6</div><div>7</div><div>8</div><div>9</div><div>a</div><div>b</div><div>c</div><div>d</div><div>e</div><div>f</div></span>
</span><span class="hex-digit digit-2">
<span class="hex-chars"><div>0</div><div>1</div><div>2</div><div>3</div><div>4</div><div>5</div><div>6</div><div>7</div><div>8</div><div>9</div><div>a</div><div>b</div><div>c</div><div>d</div><div>e</div><div>f</div></span>
</span><span class="hex-digit digit-1">
<span class="hex-chars"><div>0</div><div>1</div><div>2</div><div>3</div><div>4</div><div>5</div><div>6</div><div>7</div><div>8</div><div>9</div><div>a</div><div>b</div><div>c</div><div>d</div><div>e</div><div>f</div></span>
</span><span class="hex-digit digit-0">
<span class="hex-chars"><div>0</div><div>1</div><div>2</div><div>3</div><div>4</div><div>5</div><div>6</div><div>7</div><div>8</div><div>9</div><div>a</div><div>b</div><div>c</div><div>d</div><div>e</div><div>f</div></span>
</span></div>
</td>
</tr>
</tbody>
</table>
</section>
</main>
<footer>
<p>Made with <span style="color:red">❤</span> by <a href="https://benjaminaster.com">Benjamin Aster .com</a>
• view on <a href="https://codepen.io/Benjamin_Aster/full/mdMweWZ">CodePen</a>,
<a href="https://benjaminaster.com/3d-css-calculator">benjaminaster.com</a>,
<a href="https://github.com/BenjaminAster/3D-CSS-Calculator">GitHub</a></p>
</footer>