-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
executable file
·438 lines (380 loc) · 13.1 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
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
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
<!DOCTYPE html>
<html lang="en-SC">
<head>
<title>D3v Ltd</title>
<meta name='viewport' content='width=device-width, initial-scale=1.0'>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<!-- Add prefetch hints -->
<link rel="prefetch" href="/">
<link rel="dns-prefetch" href="/">
<!-- Inline SVG favicons -->
<link rel="icon" type="image/svg+xml" href='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="%23757575" stroke-width="8"/></svg>' id="favicon-normal">
<link rel="icon" type="image/svg+xml" href='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="%2300C853" stroke-width="8"/></svg>' id="favicon-active">
<script>
// Parse reload interval from query string, default to 5000ms
const urlParams = new URLSearchParams(window.location.search);
const reloadInterval = parseInt(urlParams.get('reload')) || 5000;
// Favicon switching function
function startNetworkBlink() {
const normalFavicon = document.getElementById('favicon-normal').href;
const activeFavicon = document.getElementById('favicon-active').href;
const iconLink = document.querySelector("link[rel='icon']");
// Start blinking 1 second before reload
setTimeout(() => {
const blinkInterval = setInterval(() => {
iconLink.href = iconLink.href === normalFavicon ? activeFavicon : normalFavicon;
}, 100); // Blink every 100ms
// Stop blinking after 800ms
setTimeout(() => {
clearInterval(blinkInterval);
iconLink.href = normalFavicon;
}, 800);
}, reloadInterval - 1000);
}
// Prefetch function
function prefetchPage() {
return fetch(window.location.href)
.then(response => response.text())
.catch(error => console.error('Prefetch failed:', error));
}
// Initialize prefetch on page load
let prefetchPromise = null;
// Reload function with prefetch and network activity simulation
function reloadWithPrefetch() {
// Start prefetch 2 seconds before reload
if (!prefetchPromise && reloadInterval > 2000) {
setTimeout(() => {
prefetchPromise = prefetchPage();
}, reloadInterval - 2000);
}
// Start network activity simulation
startNetworkBlink();
// Schedule the reload
setTimeout(() => {
window.location.reload();
}, reloadInterval);
}
// Start the reload cycle when page loads
window.addEventListener('load', reloadWithPrefetch);
</script>
<style>
html, body {
height: 100%;
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
}
body, pre, a {
background-color: white;
color: black;
font-size: 12px;
font-family: Verdana, Arial, Helvetica, SunSans-Regular, Sans-Serif;
line-height: 13px;
}
body {
margin-top: -140px;
}
pre {
font-family: monospace;
margin: 0;
}
div {
float: left;
width: 255px;
margin: 0;
padding: 0;
}
#box {
float: none;
margin: 0 auto;
}
ul {
font-size: 12px;
margin: 0;
padding-left: 20px;
}
ul > li {
list-style-type: square;
margin-top: 12px;
}
hr {
border: 0;
border-top: 1px black solid;
margin: 15px 0;
}
.red {
color: red;
}
a {
font-weight: bold;
text-decoration: none;
margin: 0;
}
a:hover {
color: red;
}
/* Rules for showcase links */
.showcase a:hover {
color: #0066ff !important;
}
/* Specific rules for dev and staging links that override showcase hover */
.showcase a[href*="dev.sternvoll.com"]:hover {
color: #2ecc71 !important;
}
.showcase a[href*="staging.sternvoll.com"]:hover {
color: #ff6600 !important;
}
#foot {
font-size: 9px;
text-align: center;
margin-top: -5px;
}
#foot a {
color: #ccc;
}
#impressum {
position: fixed;
bottom: 2px;
right: 4px;
}
#impressum > a {
font-size: 9px;
font-weight: normal;
}
/* Modal styles preserved from previous version */
.modal {
visibility: hidden;
opacity: 0;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.4);
display: flex;
justify-content: center;
align-items: center;
z-index: 1000;
transition: visibility 0s linear 0.2s, opacity 0.2s;
}
.modal.visible {
visibility: visible;
opacity: 1;
transition-delay: 0s;
}
.modal-content {
background-color: white;
border: 1px solid black;
padding: 15px;
width: 255px;
position: relative;
transform: translateY(-20px);
transition: transform 0.2s;
}
.modal.visible .modal-content {
transform: translateY(0);
}
.modal-header {
margin-bottom: 15px;
padding-bottom: 10px;
border-bottom: 1px solid black;
}
.warning-icon {
font-weight: bold;
margin-right: 5px;
}
.close {
position: absolute;
right: 15px;
top: 12px;
cursor: pointer;
font-weight: bold;
}
.close:hover {
color: red;
}
.modal-body {
margin-bottom: 15px;
line-height: 1.4;
}
.modal-buttons {
display: flex;
flex-direction: column;
gap: 8px;
}
.showcase {
border: 2px dashed #2ecc71;
border-radius: 10px;
padding: 15px;
margin: 15px 0;
width: 225px; /* Adjusted to fit within the 255px container while accounting for padding */
}
.showcase h3 {
margin: 0 0 10px 0;
font-size: 14px;
font-weight: bold;
}
.brand {
margin-bottom: 12px;
}
.brand:last-child {
margin-bottom: 0;
}
.brand-name {
font-weight: bold;
display: inline-block;
margin-bottom: 3px;
color: inherit;
}
.brand-name-link {
text-decoration: none;
color: inherit;
}
.brand-name-link:hover .brand-name {
color: red;
}
.brand-description {
display: block;
color: inherit;
text-decoration: none;
font-weight: normal;
margin-right: -15px;
padding: 8px 13px 8px 8px;
transition: border-color 0.2s ease;
background: linear-gradient(to bottom,
rgba(230, 243, 255, 0.95) 0%,
#E6F3FF 30%,
#E6F3FF 70%,
rgba(230, 243, 255, 0.95) 100%
);
border: 2px solid #2B5F8F;
border-right: 2px dotted #2B5F8F;
border-radius: 8px 0 0 8px;
}
.brand-description:hover {
color: black !important;
border-right: 2px dashed #2B5F8F;
}
.env-link {
margin-left: 5px;
}
.btn {
width: 100%;
padding: 6px 12px;
background: white;
border: 1px solid black;
cursor: pointer;
font-family: inherit;
font-size: 12px;
text-align: center;
}
.btn:hover {
background-color: #f0f0f0;
}
.btn.danger:hover {
color: red;
border-color: red;
}
</style>
</head>
<body>
<div id="box">
<pre> ___
/ <span class="red">__</span>\<span class="red">___</span>
/ <span class="red">/ \</span>
___/ <span class="red">/____ /</span> ____
/ <span class="red">__</span>/<span class="red">_</span>\<span class="red">/ /</span> / /
/ __<span class="red">/ /</span>\/ /
/ /_<span class="red">/____ /</span> /
http://\___<span class="red">___</span>/<span class="red">_/ /</span>\____/.ltd
<span class="red">/ /
\______/</span></pre>
<hr>
<ul>
<li><a href="https://d3v.ltd/xrpc/_health">D3v Ltd (in formation) Bluesky</a><br>
Our Bluesky instance. It might not be connectable with Yggdrasil yet.
</li>
<li><a href="#" onclick="showModal(); return false;">Thingylabs Yggdrasil Public Node</a><br>
A German Yggdrasil Network node run by our friends at Thingylabs.
</li>
</ul>
<hr>
<div class="showcase">
<h3>Managed Brands</h3>
<div class="brand">
<a href="https://www.sternvoll.com/" class="brand-name-link">
<span class="brand-name">Sternvoll Jewelry</span>
</a>
<a href=https://dev.sternvoll.com/ class="env-link">--dev</a>
<a href=https://staging.sternvoll.com/ class="env-link">--staging</a>
<a href="https://www.sternvoll.com/" class="brand-description">
Premium lifestyle brand focusing on sustainable luxury goods and experiences.
</a>
</div>
<div class="brand">
<a href="https://www.pixelpilot.com/" class="brand-name-link">
<span class="brand-name">PiXELPiLOT</span>
</a>
<a href="https://www.pixelpilot.com/" class="brand-description">
Digital innovation studio specializing in creative technology solutions.
</a>
</div>
</div>
<hr style="margin-bottom:5px;">
<div id="foot">
<span style="color:#ccc!important">
<a href="https://seychellesoffshore.com/"><img alt="Flag_of_Seychelles" src="assets/flag-of-seychelles.png" height="9"></a> /
<a href="https://github.com/thingylabs/d3v.ltd/blob/gh-pages/index.html"><img alt="Github" src="assets/github-mark.png" height="9"></a><br>
</span>
</div>
</div>
<div id="impressum">
<a href="http://validator.w3.org/check?uri=https%3A%2F%2Fwww.d3v.ltd%2F">valid html</a>
</div>
<!-- Warning Modal -->
<div id="warningModal" class="modal">
<div class="modal-content">
<div class="modal-header">
<span class="warning-icon">!</span>
<strong>Warning</strong>
<span class="close" onclick="closeModal()">×</span>
</div>
<div class="modal-body">
You are about to leave the free internet and enter a network operating under EU jurisdiction.
<br><br>
For your security, it is recommended to use the Yggdrasil Network to establish a secure connection.
</div>
<div class="modal-buttons">
<button class="btn" onclick="connectViaYgg()">Connect Securely via Ygg</button>
<button class="btn danger" onclick="proceedToSite()">Continue to EU Network</button>
<button class="btn" onclick="closeModal()">Stay Here</button>
</div>
</div>
</div>
<script>
function showModal() {
const modal = document.getElementById('warningModal');
modal.classList.add('visible');
}
function closeModal() {
const modal = document.getElementById('warningModal');
modal.classList.remove('visible');
}
function proceedToSite() {
window.location.href = 'https://ygg.thingylabs.io/';
}
function connectViaYgg() {
window.location.href = 'https://ygg-only.thingylabs.io/';
}
// Close modal when clicking outside
window.onclick = function(event) {
const modal = document.getElementById('warningModal');
if (event.target === modal) {
closeModal();
}
}
</script>
</body>
</html>