-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path404.html
272 lines (228 loc) · 9.98 KB
/
404.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
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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="/assets/styles/styles.css">
<link rel="stylesheet" href="https://indestructibletype.com/fonts/Jost.css" type="text/css" charset="utf-8" />
<script src="https://kit.fontawesome.com/79c31398dc.js" crossorigin="anonymous"></script>
<!-- favicon -->
<link rel="apple-touch-icon" sizes="180x180" href="/assets/img/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/assets/img/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/assets/img/favicon-16x16.png">
<link rel="manifest" href="/assets/img/site.webmanifest">
<link rel="mask-icon" href="/assets/img/safari-pinned-tab.svg" color="#5bbad5">
<link rel="shortcut icon" href="/assets/img/favicon.ico">
<meta name="msapplication-TileColor" content="#da532c">
<meta name="msapplication-config" content="/assets/img/browserconfig.xml">
<meta name="theme-color" content="#ffffff">
<!-- feed -->
<link type="application/atom+xml" rel="alternate" href="https://efredericks.github.io/feed.xml" title="erik fredericks" />
<!-- Begin Jekyll SEO tag v2.8.0 -->
<title>erik fredericks | assistant prof @ gvsu.edu</title>
<meta name="generator" content="Jekyll v3.9.5" />
<meta property="og:title" content="erik fredericks" />
<meta name="author" content="efredericks" />
<meta property="og:locale" content="en_US" />
<meta name="description" content="this is my homepage" />
<meta property="og:description" content="this is my homepage" />
<meta property="twitter:description" content="this is my homepage" />
<link rel="canonical" href="https://efredericks.github.io/404.html" />
<meta property="og:url" content="https://efredericks.github.io/404.html" />
<meta property="og:site_name" content="erik fredericks" />
<meta property="og:type" content="website" />
<meta name="twitter:card" content="summary" />
<meta property="twitter:title" content="erik fredericks" />
<meta name="twitter:site" content="@efredericks" />
<meta name="twitter:creator" content="@efredericks" />
<script type="application/ld+json">
{"@context":"https://schema.org","@type":"WebPage","author":{"@type":"Person","name":"efredericks"},"description":"this is my homepage","headline":"erik fredericks","url":"https://efredericks.github.io/404.html"}</script>
<!-- End Jekyll SEO tag -->
</head>
<body>
<aside class="menu">
<div class="menu-top">
<div class="menu-top_logo">
<a href="/" >
<img src="/assets/img/Fredericks-Small.jpg" alt="Logo" onerror="this.style.display='none'">
</a>
</div>
<div class="menu-top_expand" onclick="toggleExpander(this)">
<div class="bar_top"></div>
<div class="bar_middle"></div>
<div class="bar_bottom"></div>
</div>
<ul class="navigation">
<li>
<a href="/" category="home" title=""
>
<span>home</span>
</a>
</li>
<li>
<a href="/students.html" category="students" title="students tooltip"
>
<span>students</span>
</a>
</li>
<li>
<a href="/teaching.html" category="teaching" title="teaching tooltip"
>
<span>teaching</span>
</a>
</li>
<li>
<a href="/publications.html" category="publications" title="publications tooltip"
>
<span>publications</span>
</a>
</li>
<li>
<a href="/activities.html" category="activities" title="activities tooltip"
>
<span>activities</span>
</a>
</li>
<li>
<a href="/posts/" category="" title=""
class="selected"
>
<span>posts</span>
</a>
</li>
</ul>
</div>
<div class="menu-contact">
<a href="https://github.com/efredericks" target="_blank">
<i class="fa fa-github"></i>
</a>
<a href="https://scholar.google.com/citations?user=wpdiGa0AAAAJ" target="_blank">
<i class="fa fa-toilet-paper"></i>
</a>
<a href="https://youtube.com/@erikfredericks" target="_blank">
<i class="fa fa-youtube-play"></i>
</a>
<a href="https://twitch.tv/mrdoktorprofessor" target="_blank">
<i class="fa fa-twitch"></i>
</a>
<a href="https://twitter.com/erik_fredericks" target="_blank">
<i class="fab fa-twitter"></i>
</a>
<a href="mailto:[email protected]" target="">
<i class="fas fa-envelope"></i>
</a>
</div>
</aside>
<main class="content-layout">
<div class="content-container">
<h1>404</h1>
<p><strong>Page not found :(</strong></p>
<p>The requested page could not be found.</p>
</div>
<script>
window.addEventListener("load", () => {
document.getElementsByClassName("copyrights")[0].innerHTML =
`Copyrights © ${new Date().getFullYear()} erik fredericks | template c/o <a href='https://github.com/ItsPatrq/minimal-music-project' target='_blank'>minimal-music-project</a>`;
});
</script>
<footer>
<p class="copyrights">
</p>
</footer>
</main>
<script>
(function () {
window.toggleExpander = function toggleExpander(x) {
const menu = document.getElementsByClassName("menu")[0];
const navigation = document.getElementsByClassName("navigation")[0];
if (menu.classList.contains('expanded--visible')) {
menu.classList.toggle('expanded--visible');
navigation.addEventListener('transitionend', function(e) {
menu.classList.toggle("expanded");
}, {
capture: false,
once: true,
passive: false
});
} else {
menu.classList.toggle("expanded");
setTimeout(() => menu.classList.toggle('expanded--visible'), 20);
}
};
window.addEventListener("load", () => {
// #region click to enlarge images
const imageWrappers = document.querySelectorAll(".click-to-enlarge");
imageWrappers.forEach(imageWrapper => {
imageWrapper.addEventListener("click", () => {
const img = imageWrapper.getElementsByTagName("img")[0];
const src = img.attributes.getNamedItem("src");
const modal = document.createElement("div");
const removeModal = function() {
modal.classList.add("hidden");
setTimeout(() => {
document.body.removeChild(modal);
}, 200);
};
const newImage = document.createElement("img");
newImage.classList.add("modal__picture-zoomed--image");
newImage.setAttribute("src", src.value);
modal.classList.add("modal__picture-zoomed", "hidden");
// modal.style.backgroundImage = `URL("${src.value}")`;
modal.addEventListener("click", removeModal);
modal.append(newImage);
document.body.append(modal);
document.body.addEventListener("keyup", e => {
if (e.key === 'Escape') {
removeModal();
}
}, {once : true});
setTimeout(() => {
modal.classList.remove("hidden");
}, 0);
});
});
// #endregion click to enlarge images
// #region embedded audio players
const players = document.querySelectorAll("iframe.embedded-player");
const getParamsByPlayerType = (src, type) => {
const rt = (src, height) => ({
src: src,
height: height
});
switch (type.toLocaleLowerCase()) {
case "soundcloud":
return rt(`https://w.soundcloud.com/player/?url=${src}`, 125);
case "bandcamp":
return rt(`https://bandcamp.com/EmbeddedPlayer/${src}`, 125);
case "spotify":
return rt(`https://open.spotify.com/embed/track/${src}`, 80);
case "spotifyalbum":
return rt(`https://open.spotify.com/embed/album/${src}`, 80);
case "spotifyplaylist":
return rt(`https://open.spotify.com/embed/playlist/${src}`, 80);
case "spotifyepisode":
return rt(`https://open.spotify.com/embed/episode/${src}`, 152);
case "spotifyshow":
return rt(`https://open.spotify.com/embed/show/${src}`, 152);
case "youtube":
return rt(`https://www.youtube.com/embed/${src}`, 350);
case "anchor.fm":
return rt(`https://anchor.fm/sucias/embed/episodes/${src}`,102);
default:
return rt(src, 125);
}
};
players.forEach(player => {
const givenSrc = player.getAttribute("givenSrc");
const type = player.getAttribute("type");
const { src, height } = getParamsByPlayerType(givenSrc, type);
player.setAttribute("src", src);
player.setAttribute("height", height);
player.classList.remove("hidden");
});
// #endregion embedded audio players
});
})();
</script>
</body>
</html>