-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
365 lines (340 loc) · 14.1 KB
/
index.html
File metadata and controls
365 lines (340 loc) · 14.1 KB
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
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
<!doctype html>
<html lang="en">
<head>
<meta
name="viewport"
content="width=device-width initial-scale=1, maximum-scale=1, minimum-scale=1"
charset="utf-8"
/>
<title>ZacBolton.io</title>
<meta
name="description"
content="A fancy math animation, and my portfolio."
/>
<meta name="robots" content="index, follow" />
<!-- social media meta info -->
<meta property="og:type" content="website" />
<meta property="og:title" content="ZacBolton.io" />
<meta
property="og:description"
content="A fancy math animation, and my portfolio."
/>
<meta property="og:url" content="https://www.zacbolton.io" />
<meta
property="og:image"
content="http://www.zacbolton.io/public/sm_card.png"
/>
<meta
property="og:image:secure_url"
content="https://www.zacbolton.io/public/sm_card.png"
/>
<meta property="og:image:type" content="image/png" />
<meta property="og:image:width" content="1800" />
<meta property="og:image:height" content="1800" />
<!-- FB specific -->
<meta property="fb:admins" content="100009728023074" />
<!-- twitter meta info -->
<meta name="twitter:card" content="summary" />
<meta name="twitter:title" content="ZacBolton.io" />
<meta
name="twitter:description"
content="A fancy math animation, and my portfolio."
/>
<meta
name="twitter:image"
content="https://www.zacbolton.io/public/sm_card.png"
/>
<meta
name="twitter:image:alt"
content="An orange and purple cardioid made from the website animation."
/>
<!-- assets -->
<script src="assets/p5.min.js"></script>
<script src="assets/p5.dom.js"></script>
<!-- my styles -->
<link rel="stylesheet" type="text/css" href="stylesheets/home_styles.css" />
<!-- loading overlay styles -->
<link
rel="stylesheet"
type="text/css"
href="stylesheets/loading-overlay.css"
/>
<!-- Material Icons -->
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0&icon_names=chess" />
<!-- icons -->
<link
rel="shortcut icon"
href="assets/icons/favicon.ico"
type="image/x-icon"
/>
<link rel="apple-touch-icon" href="assets/icons//apple-touch-icon.png" />
<link
rel="apple-touch-icon"
sizes="57x57"
href="assets/icons//apple-touch-icon-57x57.png"
/>
<link
rel="apple-touch-icon"
sizes="72x72"
href="assets/icons//apple-touch-icon-72x72.png"
/>
<link
rel="apple-touch-icon"
sizes="76x76"
href="assets/icons//apple-touch-icon-76x76.png"
/>
<link
rel="apple-touch-icon"
sizes="114x114"
href="assets/icons//apple-touch-icon-114x114.png"
/>
<link
rel="apple-touch-icon"
sizes="120x120"
href="assets/icons//apple-touch-icon-120x120.png"
/>
<link
rel="apple-touch-icon"
sizes="144x144"
href="assets/icons//apple-touch-icon-144x144.png"
/>
<link
rel="apple-touch-icon"
sizes="152x152"
href="assets/icons//apple-touch-icon-152x152.png"
/>
<link
rel="apple-touch-icon"
sizes="180x180"
href="assets/icons//apple-touch-icon-180x180.png"
/>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script
async
src="https://www.googletagmanager.com/gtag/js?id=G-BYFQ413ZGH"
></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag("js", new Date());
gtag("config", "G-BYFQ413ZGH");
</script>
</head>
<body class="nojs" id="nojsHandle">
<noscript>
<div id="notice">
<p>
The animation on this page runs on Javascript. Please
<a href="https://www.enable-javascript.com" target="_blank"
>enable Javascript</a
>
for the full experience.
</p>
</div>
</noscript>
<!-- Loading overlay -->
<div class="loading-overlay"></div>
<!-- Modal HTML structure -->
<div id="animation-explanation-modal" class="modal">
<div class="modal-content">
<div class="modal-header">
<h2>Understanding the Animation</h2>
<button class="close" aria-label="Close modal">×</button>
</div>
<div class="modal-body">
<p>
This animation visualizes a multiplication table based on two
factors:
<span>B</span> (top-right, upper number) and,
<span>F</span> (top-right, lower number).
</p>
<p>
The animation sequences through natural numbers, beginning with one.
Numbers up to the value of <span>B</span> are represented as equally
spaced nodes around a circle's circumference. Each multiplication
involving <span>F</span> gets its representation through an edge.
For instance, the product of <span>1 × F</span> creates a line
between the circle's first point and the
<span>F<sup>th</sup></span> point. Similarly, the product
<span>2 × F</span> connects the second point to the
<span>2F<sup>th</sup></span> point, and so forth.
</p>
<p>
When a product surpasses the base value <span>B</span>, the circular
'number-line' wraps around. This means a number like
<span>B + n</span> maps to the <span>n<sup>th</sup></span> point on
the circle.
</p>
<p class="modal-footer">
<a
href="https://youtu.be/qhbuKbxJsk8"
target="_blank"
class="mathologer-link"
>
For a deeper dive into this concept, view this Mathologer video
</a>
</p>
</div>
</div>
</div>
<div id="animation-container">
<div id="info-button" class="topButtons">
<img
src="assets/info_icon.svg"
alt="question mark - click for an explanation of the background animation"
/>
</div>
<div id="output-and-shuffle-container">
<div id="output-container">
<div id="nodesOutput"></div>
<div id="factorOutput"></div>
</div>
<div id="shuffle-button" class="topButtons" onclick="reinitialize()">
<img
src="assets/random_icon.svg"
alt="random shuffle icon - click to restart the animation at a new random initial state"
/>
</div>
</div>
<div id="signature-container">
<a href="/about-me.html">
<svg
id="signature"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 8192 3920"
>
<path
id="signature-path"
d="M2288.172,3824.085c-189.848,95.788-352.022,108.09-383.654,56.493-31.1-50.73,50.618-185.041,209.207-307.8,7.557-5.224,18.936-13.11,32.7-22.737,104.924-73.39,210.812-151.714,315.256-233.199,110.256-86.019,222.448-178.33,333.464-274.371,207.168-179.224,413.918-373.926,632.065-595.23,187.029-189.736,382.404-399.199,597.292-640.361,203.264-228.118,405.593-464.129,576.704-664.91,137.699-161.576,261.211-307.758,378.323-460.58,93.803-122.405,174.101-237.322,243.029-347.943-277.735,47.659-556.225,105.108-829.951,171.246-325.14,78.56-651.347,171.26-969.56,275.524-318.214,104.264-636.027,222.579-944.613,351.661-196.38,82.146-451.05,194.63-913.51,425.771C556.42,2061.708,23.712,2398.516,.735,2362.764c-14.518-22.59,186.549-175.124,570.195-466.168,423.414-321.212,628.144-494.45,853.75-610.827,304.166-156.902,618.982-303.632,935.701-436.117,316.039-132.199,641.524-253.371,967.414-360.15,325.891-106.778,659.971-201.715,992.964-282.173,333.709-80.63,674.315-148.65,1012.355-202.17,21.739-3.442,54.771-7.543,90.449-3.445,24.63,2.83,47.865,9.22,69.059,18.995,28.353,12.962,53.309,32.331,72.9,56.581,38.716,47.871,53.137,109.743,40.603,174.217-6.04,31.074-18.178,62.696-37.105,96.674-91.87,164.911-205.267,334.771-346.67,519.29-121.581,158.652-247.788,308.046-388.306,472.929-172.193,202.052-375.896,439.661-581.138,669.999-192.618,216.169-370.037,407.506-540.078,582.395,157.268-84.064,315.514-165.275,474.739-243.634,125.326-61.666,291.332-141.486,464.074-211.964,176.157-71.872,337.733-125.5,493.961-163.949,46.802-11.519,85.752-16.179,122.573-14.662,87.169,3.587,141.96,42.083,172.576,73.745,21.26,22.042,38.047,47.996,49.43,76.426,9.036,22.378,15.061,46.785,17.907,72.546,4.589,41.522,.191,80.925-3.516,106.95-15.422,107.934-40.151,214.332-73.908,318.004-15.637,48.015-33.201,95.396-52.692,142.144,1.285,.065,2.578,.125,3.88,.178,66.338,2.734,140.3-10.754,190.164-21.136,127.134-26.469,265.744-62.8,423.751-111.068,142.648-43.577,287.95-92.763,428.467-140.33,261.856-88.641,532.629-180.301,805.024-242.468,149.086-34.025,286.231-56.607,419.268-69.038,72.735-6.796,145.055-10.517,214.953-11.057,73.691-.566,147.209,2.371,218.544,8.741,0,0-297.366,30.249-12.854,143.941s-14.356,160.768-14.356,160.768c-121.893-10.884-245.481-10.165-377.827,2.202-119.571,11.172-243.76,31.681-379.66,62.696-114.933,26.23-240.647,60.685-384.328,105.336-129.702,40.306-262.372,85.216-390.674,128.648-287.694,97.388-585.18,198.092-887.953,261.129-46.602,9.703-87.947,16.629-126.399,21.175-49.976,5.907-95.348,7.91-138.712,6.125-52.636-2.168-102.237-10.2-147.425-23.87-53.563-16.203-102.495-40.714-145.44-72.849l-104.903-78.497,61.454-115.715c80.892-152.499,136.319-317.193,164.089-487.57-135.004,34.461-275.871,81.897-429.827,144.712-163.966,66.897-323.72,143.736-444.578,203.204-503.058,247.528-746.657,386.991-1039.709,561.5-237.177,141.236-580.868,353.727-994.746,638.934Z"
/>
</svg>
</a>
</div>
</div>
<nav id="custom-nav-container">
<div class="nav-menu">
<div class="nav-items-container">
<!-- Resume Link -->
<a
href="/about-me.html"
class="nav-item rainbow rainbow_text_animated"
>
Resumé
<span class="material-icons">description</span>
</a>
<!-- Siamese SBERT Link -->
<a
href="av-w-siamese-sbert.html"
class="nav-item rainbow rainbow_text_animated"
>
Siamese SBERT Transformers
<span class="material-icons">hub</span>
</a>
<!-- Chess App Link -->
<a
href="https://app.kidchess.com"
class="nav-item rainbow rainbow_text_animated"
>
Chess Learning App
<span class="material-icons">grid_on</span>
</a>
<!-- True Love Link -->
<a
href="/true-love-or-lost-cause.html"
class="nav-item rainbow rainbow_text_animated"
>
True Love or Lost Cause
<span class="material-icons">favorite</span>
</a>
<!-- Nina Monteiro Doula Link -->
<a
href="https://ninamonteiro.com"
class="nav-item rainbow rainbow_text_animated"
target="_blank"
rel="noopener noreferrer"
>
Doula Site
<span class="material-icons">pregnant_woman</span>
</a>
<!-- Queen's Gambit Link -->
<a
href="/queens-gambit-study.html"
class="nav-item rainbow rainbow_text_animated"
>
Queen's Gambit Study
<span class="material-symbols-outlined">chess</span>
</a>
<!-- Erlang Chat Link -->
<a
href="https://github.com/zacharyabolton/chat_server"
class="nav-item rainbow rainbow_text_animated"
>
Erlang & React Chat Server
<span class="material-icons">forum</span>
</a>
<!-- Butterflies Link -->
<a
href="/butterflies.html"
class="nav-item rainbow rainbow_text_animated"
>
Butterflies
<span class="material-icons">spa</span>
</a>
<!-- GitHub Link -->
<a
href="https://github.com/zacharyabolton/"
class="nav-item rainbow rainbow_text_animated"
>
GitHub
<span class="material-icons">code</span>
</a>
</div>
</div>
<div class="nav-toggle"></div>
</nav>
<script>
document.addEventListener("DOMContentLoaded", function () {
const navToggle = document.querySelector(
"#custom-nav-container .nav-toggle",
);
const navMenu = document.querySelector(
"#custom-nav-container .nav-menu",
);
const container = document.querySelector("#custom-nav-container");
const signatureContainer = document.querySelector(
"#signature-container",
);
navToggle.addEventListener("click", function (e) {
e.stopPropagation();
this.classList.toggle("menu-active");
navMenu.classList.toggle("menu-active");
container.style.pointerEvents = this.classList.contains("menu-active")
? "auto"
: "none";
// also toggle signature container
signatureContainer.classList.toggle("menu-active");
});
// Close menu when clicking outside
// hide the signature when nav menu is open
document.addEventListener("click", function (event) {
const nav = document.querySelector("#custom-nav-container");
if (!nav.contains(event.target)) {
navToggle.classList.remove("menu-active");
navMenu.classList.remove("menu-active");
container.style.pointerEvents = "none";
// reshow the signature
signatureContainer.classList.remove("menu-active");
}
});
});
</script>
<!-- Loading script -->
<script type="text/javascript" src="scripts/loading-overlay.js"></script>
<!-- my scripts -->
<script src="scripts/background_animation.js"></script>
<script src="scripts/index.js"></script>
</body>
</html>