-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
279 lines (256 loc) · 12.4 KB
/
index.html
File metadata and controls
279 lines (256 loc) · 12.4 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>theChief - Dom Harris</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Gabarito:wght@400..900&display=swap" rel="stylesheet">
<link rel="stylesheet" href="css/styles.css">
</head>
<body>
<h1>Heyo</h1>
<p>I'm Dom, or theChief. By day, I'm the <strong>Web Games Advocate</strong> at <a href="https://crazygames.com">CrazyGames</a>. By night, I sleep if my two kids allow it. By weekend, I make games. By some fourth measure of time, I host game jams. My life is video games, <strong>pity me.</strong></p>
<p>My games are typically loud and silly! This site is clearly not. Getting things to <strong>go fast</strong> is something of a special interest - I am generally of the opinion that most software these days is terrible, and it's because people stopped caring: "computers are fast enough". No. Wrong. Bad.</p>
<p>If you want to say hello, use the <a href="#guestbook">guestbook</a> below.</p>
<div class="stuff">
<div class="stuff-item">
<p><a href="https://wayfarer.games">Wayfarer Games</a></p>
<p>Stuff I've made</p>
</div>
<div class="stuff-item">
<p><a href="https://wayfarer-games.com/blog">Blog</a></p>
<p>Stuff I've written</p>
</div>
<div class="stuff-item">
<p><a href="https://wayfarergames.itch.io">Itch</a></p>
<p>Weird janky experimental stuff</p>
</div>
<div class="stuff-item">
<p><a href="https://itch.io/jam/bullet-jam-7">Bullet Hell Jam 7</a></p>
<p>The next game jam I'm hosting</p>
</div>
</div>
<section class="nearly-birds" id="nearly-birds" aria-labelledby="nearly-birds-heading">
<h2 id="nearly-birds-heading">nearly birds</h2>
<p>Taking photos of birds is hard, but sometimes you get the perfect angle. I assume.</p>
<div class="nearly-birds-strip">
<button type="button" class="nearly-birds-tile" data-full="nearly-birds/PXL_20260513_154516102.jpg" aria-label="Open photo full size">
<img src="nearly-birds/thumbs/PXL_20260513_154516102.webp" alt="" loading="lazy" decoding="async">
</button>
<button type="button" class="nearly-birds-tile" data-full="nearly-birds/PXL_20260513_151755216.jpg" aria-label="Open photo full size">
<img src="nearly-birds/thumbs/PXL_20260513_151755216.webp" alt="" loading="lazy" decoding="async">
</button>
<button type="button" class="nearly-birds-tile" data-full="nearly-birds/PXL_20240612_133756127.jpg" aria-label="Open photo full size">
<img src="nearly-birds/thumbs/PXL_20240612_133756127.webp" alt="" loading="lazy" decoding="async">
</button>
<button type="button" class="nearly-birds-tile" data-full="nearly-birds/PXL_20240320_104402249.jpg" aria-label="Open photo full size">
<img src="nearly-birds/thumbs/PXL_20240320_104402249.webp" alt="" loading="lazy" decoding="async">
</button>
<button type="button" class="nearly-birds-tile" data-full="nearly-birds/PXL_20240112_073603523.jpg" aria-label="Open photo full size">
<img src="nearly-birds/thumbs/PXL_20240112_073603523.webp" alt="" loading="lazy" decoding="async">
</button>
<button type="button" class="nearly-birds-tile" data-full="nearly-birds/PXL_20230605_095827120.jpg" aria-label="Open photo full size">
<img src="nearly-birds/thumbs/PXL_20230605_095827120.webp" alt="" loading="lazy" decoding="async">
</button>
<button type="button" class="nearly-birds-tile" data-full="nearly-birds/PXL_20230605_095655039.jpg" aria-label="Open photo full size">
<img src="nearly-birds/thumbs/PXL_20230605_095655039.webp" alt="" loading="lazy" decoding="async">
</button>
<button type="button" class="nearly-birds-tile" data-full="nearly-birds/PXL_20210502_090355290.jpg" aria-label="Open photo full size">
<img src="nearly-birds/thumbs/PXL_20210502_090355290.webp" alt="" loading="lazy" decoding="async">
</button>
<button type="button" class="nearly-birds-tile" data-full="nearly-birds/PXL_20210217_091800815.MP.jpg" aria-label="Open photo full size">
<img src="nearly-birds/thumbs/PXL_20210217_091800815.MP.webp" alt="" loading="lazy" decoding="async">
</button>
<button type="button" class="nearly-birds-tile" data-full="nearly-birds/IMG_20170613_065333.jpg" aria-label="Open photo full size">
<img src="nearly-birds/thumbs/IMG_20170613_065333.webp" alt="" loading="lazy" decoding="async">
</button>
<button type="button" class="nearly-birds-tile" data-full="nearly-birds/IMG_20140328_141407.jpg" aria-label="Open photo full size">
<img src="nearly-birds/thumbs/IMG_20140328_141407.webp" alt="" loading="lazy" decoding="async">
</button>
</div>
</section>
<section class="webring" id="webring" aria-labelledby="webring-heading">
<h2 id="webring-heading">Other cool sites:</h2>
<p class="webring-loading" id="webring-status">Loading webring…</p>
</section>
<div id="guestbook">
<script
src="https://giscus.app/client.js"
data-repo="domharris/domharris.github.io"
data-repo-id="MDEwOlJlcG9zaXRvcnk4OTE3NTU3OA=="
data-category="General"
data-category-id="DIC_kwDOBVC2Gs4C5Ryx"
data-mapping="pathname"
data-strict="0"
data-reactions-enabled="0"
data-emit-metadata="0"
data-input-position="top"
data-theme="https://domharris.uk/css/giscus.css"
data-lang="en"
data-loading="lazy"
crossorigin="anonymous"
async></script>
</div>
<section class="colophon" aria-label="Design credits">
<hr class="colophon-line">
<p>Palette: <a href="https://lospec.com/palette-list/one-bit-moonbeam">One-Bit Moonbeam</a> by <a href="https://lospec.com/starrysunrise">StarrySunrise</a>.</p>
<p>Font: <a href="https://fonts.google.com/specimen/Gabarito">Gabarito</a> by <a href="https://naipefoundry.com">Naipe Foundry</a> (Leandro Assis, Álvaro Franca, Felipe Casaprima).</p>
<p>Site: <a href="https://domharris.uk">Me</a> lol</p>
<p>Webring: <a href="https://willdotwhite.github.io/webring">Will</a></p>
<p>Guestbook: <a href="https://giscus.app">Giscus</a></p>
<p>Hosted via <a href="https://github.com/domharris/domharris.github.io">GitHub Pages</a></p>
<hr class="colophon-line">
</section>
<div id="nearly-birds-modal" class="nearly-birds-modal" hidden tabindex="-1" aria-modal="true" role="dialog" aria-label="Full photo">
<div class="nearly-birds-modal-backdrop" tabindex="-1"></div>
<div class="nearly-birds-modal-inner">
<button type="button" class="nearly-birds-modal-close" aria-label="Close">×</button>
<div class="nearly-birds-modal-stage">
<img class="nearly-birds-modal-preview" alt="" decoding="async" aria-hidden="true">
<img class="nearly-birds-modal-img" alt="">
</div>
<button type="button" class="nearly-birds-modal-nav nearly-birds-modal-prev" aria-label="Previous photo">‹</button>
<button type="button" class="nearly-birds-modal-nav nearly-birds-modal-next" aria-label="Next photo">›</button>
</div>
</div>
<script>
(function () {
var root = document.getElementById('webring');
var status = document.getElementById('webring-status');
var here = location.hostname;
fetch('https://willdotwhite.github.io/webring/data.json')
.then(function (r) { return r.json(); })
.then(function (sites) {
status.remove();
var ul = document.createElement('ul');
(Array.isArray(sites) ? sites : []).forEach(function (site) {
if (!site || !site.url) return;
try {
if (new URL(site.url).hostname === here) return;
} catch (e) {
return;
}
var li = document.createElement('li');
var a = document.createElement('a');
a.href = site.url;
a.textContent = site.title || site.name || site.url;
li.appendChild(a);
if (site.description) {
var d = document.createElement('span');
d.className = 'webring-desc';
d.textContent = site.description;
li.appendChild(d);
}
ul.appendChild(li);
});
root.appendChild(ul);
})
.catch(function () {
status.textContent = 'Webring could not be loaded.';
status.className = 'webring-error';
});
})();
</script>
<script>
(function () {
var section = document.getElementById('nearly-birds');
var modal = document.getElementById('nearly-birds-modal');
if (!section || !modal) return;
var img = modal.querySelector('.nearly-birds-modal-img');
var preview = modal.querySelector('.nearly-birds-modal-preview');
var backdrop = modal.querySelector('.nearly-birds-modal-backdrop');
var btnClose = modal.querySelector('.nearly-birds-modal-close');
var btnPrev = modal.querySelector('.nearly-birds-modal-prev');
var btnNext = modal.querySelector('.nearly-birds-modal-next');
var tiles = Array.prototype.slice.call(section.querySelectorAll('.nearly-birds-tile'));
var n = tiles.length;
var lastFocus = null;
var currentIdx = 0;
var loadGen = 0;
function thumbWebpFromFull(full) {
if (!full || full.indexOf('nearly-birds/') !== 0) return '';
var rest = full.slice('nearly-birds/'.length);
if (!/\.jpg$/.test(rest)) return '';
return 'nearly-birds/thumbs/' + rest.slice(0, -4) + '.webp';
}
function setAria() {
modal.setAttribute('aria-label', 'Photo ' + (currentIdx + 1) + ' of ' + n);
}
function markFullReady(gen) {
if (gen !== loadGen) return;
img.classList.add('nearly-birds-modal-img--ready');
}
function showAt(idx) {
currentIdx = (idx % n + n) % n;
var full = tiles[currentIdx].getAttribute('data-full');
var gen = ++loadGen;
img.classList.remove('nearly-birds-modal-img--ready');
img.onload = null;
img.onerror = null;
var thumb = thumbWebpFromFull(full);
if (thumb) preview.src = thumb;
else preview.removeAttribute('src');
img.alt = 'Nearly bird photo, full size';
if (full) {
img.onload = function () { markFullReady(gen); };
img.onerror = function () {
if (gen !== loadGen) return;
img.removeAttribute('src');
img.classList.remove('nearly-birds-modal-img--ready');
};
img.src = full;
if (img.complete && img.naturalWidth) markFullReady(gen);
}
setAria();
}
function openModal(idx) {
lastFocus = document.activeElement;
showAt(idx);
modal.hidden = false;
document.body.classList.add('nearly-birds-modal-open');
btnClose.focus();
}
function closeModal() {
modal.hidden = true;
loadGen += 1;
preview.removeAttribute('src');
img.removeAttribute('src');
img.classList.remove('nearly-birds-modal-img--ready');
img.alt = '';
document.body.classList.remove('nearly-birds-modal-open');
if (lastFocus && typeof lastFocus.focus === 'function') lastFocus.focus();
}
function step(d) {
showAt(currentIdx + d);
}
function onModalKeyDown(e) {
if (modal.hidden) return;
var k = e.key;
if (k === 'Escape') {
e.preventDefault();
closeModal();
return;
}
if (k === 'ArrowLeft' || k === 'ArrowRight') {
e.preventDefault();
e.stopImmediatePropagation();
step(k === 'ArrowLeft' ? -1 : 1);
}
}
section.addEventListener('click', function (e) {
var tile = e.target.closest('.nearly-birds-tile');
if (!tile) return;
var i = tiles.indexOf(tile);
if (i >= 0) openModal(i);
});
btnClose.addEventListener('click', closeModal);
btnPrev.addEventListener('click', function (e) { e.stopPropagation(); step(-1); });
btnNext.addEventListener('click', function (e) { e.stopPropagation(); step(1); });
backdrop.addEventListener('click', closeModal);
document.addEventListener('keydown', onModalKeyDown, true);
})();
</script>
</body>
</html>