-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
601 lines (525 loc) · 14.6 KB
/
Copy pathindex.html
File metadata and controls
601 lines (525 loc) · 14.6 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
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
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet" href="https://www.xxvii.org/Assets/CSS/sharedstyle.css">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>XXVII</title>
</head>
<body>
<header class="main-header">
<div class="header-container">
<a class="logo" href="https://homepage.xxvii.org/">
<img src="https://raw.githubusercontent.com/JayTheXXVII/jaythexxvii.github.io/main/Assets/Monkey.png" alt="XXVII">
</a>
<div class="XXVII">
<div class="Glitch" title="XXVII">XXVII</div>
</div>
<ul class="main-nav">
<!-- <li><a class="Home-Button" href="https://jaythexxvii.github.io">Home</a></li> -->
<li class="dropdown">
<a href="#">Menu</a>
<ul class="drop-nav">
<li><a href="https://jaythexxvii.github.io/RevertX3">RevertX3</a></li>
<li><a href="https://jaythexxvii.github.io/RTL">RTL</a></li>
<li><a href="https://jaythexxvii.github.io/Red-Metro-For-Steam/">Red Metro</a></li>
<li><a href="https://jaythexxvii.github.io/unRefreshed/">unRefreshed</a></li>
<li><a href="https://jaythexxvii.github.io/copyparty-client/">Copyparty-Client</a></li>
</ul>
</li>
</ul>
</div>
</header>
<div class="main-content">
<nav class="link-navbar">
<a href="https://xxvii.org">Homepage </a>
<a href="https://github.com/JayTheXXVII">Github</a>
<a href="https://searx.xxvii.org">SearXNG</a>
<a href="https://ai.xxvii.org">Open Web UI</a>
<a href="https://copyparty.xxvii.org">Copyparty</a>
<a href="https://jaythexxvii.github.io/ServerStatus">Server Status</a>
</nav>
<nav class="main-content-nav" >
<main class="RevertX3-Nav">
<body>
<font size="+10" face="Arial">
<h2 class="RevertX3-Header"> <a class="RevertX3-Header-Text" href="https://github.com/JayTheXXVII/RevertX3">RevertX3</a></font></h2>
<img
src="https://raw.githubusercontent.com/JayTheXXVII/jaythexxvii.github.io/main/Assets/RevertX2%20Preview%20Image.png"
alt="RevertX3" class="center" onclick="expandImage(this)"/>
<style>
.center {max-width: -moz-available;}
</style>
</body>
</main>
</nav>
<nav class="cloudflare-staus-nav" >
<div id="cloudflare-status">Cloudflare Status: Checking...</div>
<span class="display-time" id="display-time"></span> <span class="ip-address" id="ip-address">Loading...</span>
<div class="XXVII-Bottom" >
Made By XXVII
</div>
</nav>
</div>
<script>
<!-- Zoom Logic -->
function expandImage(imgElement) {
const lightbox = document.getElementById("lightbox");
const lightboxImg = document.getElementById("lightbox-img");
// Set the source of the large image to match the clicked thumbnail
lightboxImg.src = imgElement.src;
// Show the overlay
lightbox.style.display = "flex";
}
function closeImage() {
// Hide the overlay
document.getElementById("lightbox").style.display = "none";
}
<!-- Darkmode Logic -->
const isDarkMode = () => window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches;
console.log(isDarkMode()); // true or false
<!-- Nav Logic -->
const horizSlider = document.querySelector('nav');
if (horizSlider) {
let isDownX = false;
let startX;
let scrollLeft;
horizSlider.addEventListener('mousedown', (e) => {
isDownX = true;
startX = e.pageX - horizSlider.offsetLeft;
scrollLeft = horizSlider.scrollLeft;
});
horizSlider.addEventListener('mouseleave', () => isDownX = false);
horizSlider.addEventListener('mouseup', () => isDownX = false);
horizSlider.addEventListener('mousemove', (e) => {
if (!isDownX) return;
e.preventDefault();
const x = e.pageX - horizSlider.offsetLeft;
const walk = (x - startX) * 2;
horizSlider.scrollLeft = scrollLeft - walk;
});
}
<!-- VERTICAL LIST SCROLL -->
const vertSlider = document.querySelector('.drop-nav');
if (vertSlider) {
let isDownY = false;
let startY;
let scrollTop;
vertSlider.addEventListener('mousedown', (e) => {
isDownY = true;
startY = e.pageY - vertSlider.offsetTop;
scrollTop = vertSlider.scrollTop;
});
vertSlider.addEventListener('mouseleave', () => isDownY = false);
vertSlider.addEventListener('mouseup', () => isDownY = false);
vertSlider.addEventListener('mousemove', (e) => {
if (!isDownY) return;
e.preventDefault();
const y = e.pageY - vertSlider.offsetTop;
const walk = (y - startY) * 1.5;
vertSlider.scrollTop = scrollTop - walk;
});
}
// Date and Time Logic
document.addEventListener('DOMContentLoaded', function() {
function updateDateTime() {
const now = new Date();
const dateTimeString = now.toLocaleDateString('en-US', {
year: 'numeric',
month: '2-digit',
day: '2-digit',
hour: '2-digit',
minute: '2-digit',
second: '2-digit'
});
// Update the element with class "display-time"
const elements = document.querySelectorAll('.display-time');
elements.forEach(function(element) {
element.textContent = dateTimeString;
});
}
// Update immediately
updateDateTime();
// Update every second
setInterval(updateDateTime, 1000);
});
// Cloudflare Status Logic
async function checkCloudflareStatus() {
const statusEl = document.getElementById('cloudflare-status');
try {
const response = await fetch('https://www.cloudflarestatus.com/api/v2/summary.json');
const data = await response.json();
const indicator = data.status.indicator;
const description = data.status.description;
if (indicator === 'none') {
statusEl.innerHTML = `Cloudflare Status: <span class="cloudflare-operational" style="color: green;">All Systems Operational</span>`;
} else {
statusEl.innerHTML = `Cloudflare Status: <a class="cloudflare-outage" href="https://www.cloudflarestatus.com/" style="color: orange;">${description}</a>`;
}
} catch (error) {
statusEl.innerHTML = `Cloudflare Status: <span class="cloudflare-error" style="color: red;">Failed to load</span>`;
}
}
checkCloudflareStatus();
fetch('https://api.ipify.org?format=json')
.then(response => response.json())
.then(data => {
document.getElementById('ip-address').textContent = data.ip;
})
.catch(error => {
document.getElementById('ip-address').textContent = 'Unable to load IP';
});
</script>
<style>
/*Zoom Theming*/
/* Thumbnail styling */
.center {
cursor: pointer !important;
transition: transform 0.2s;
}
.center:hover {
transform: scale(1.005);
}
/* Lightbox hidden by default */
#lightbox {
display: none;
position: fixed;
z-index: 999;
top: 0; left: 0;
width: 100%; height: 100%;
background-color: rgba(0, 0, 0, 0.8);
justify-content: center;
align-items: center;
}
/* Expanded image style */
#lightbox-img {
max-width: 100%;
max-height: 100%;
transform: scale(1.5);
padding: 0px 25% 0 25%;
}
/* Close button */
#close-btn {
position: absolute;
top: 20px; right: 30px;
color: white;
font-size: 40px;
cursor: pointer;
}
@media (prefers-color-scheme: dark) {
body {color: white !important;}
.drop-nav a {color: white !important;}
.dropdown a:hover {border-radius: 0px !important;}
.drop-nav a:hover {background-color: #1a1a1a !important;}
nav, .link-extractor-box {background: #ff00004d !important;}
#ip-address, .XXVII-Bottom {color: white !important;}
}
@media (prefers-color-scheme: light) {
body {color: black !important; background-color: hsl(0, 0%, 100%) !important;}
.drop-nav a {color: black !important; background: white !important;}
.dropdown a:hover {border-radius: 0px !important;}
.drop-nav a:hover {background-color: #fffc !important;}
nav {background: #990000b2 !important;}
#ip-address, .XXVII-Bottom {color: black !important;}
}
:root {
--bg-color: #ffffff;
--text-color: #333333;
}
[data-theme="dark"] {
--bg-color: #121212;
--text-color: #ffffff;
}
body {
background-color: var(--bg-color);
color: var(--text-color);
font-family: sans-serif;
}
/* Base styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
line-height: 1.6;
color: white;
background-color: #292929;
margin: 0;
min-height: 100vh;
background-image:
linear-gradient(rgba(0, 0, 0, 0.15) 1px, transparent 1px),
linear-gradient(90deg, rgba(0, 0, 0, 0.15) 1px, transparent 1px);
background-size: 20px 20px;
background-position: center;
}
/* Header and navigation */
.main-header {
background: linear-gradient(155deg, #760a0a, #ad1f1f);
padding: 0.5rem 2rem;
box-shadow: 0 2px 10px rgba(0,0,0,0.2);
position: sticky;
top: 0;
z-index: 100;
}
.header-container {
display: flex;
justify-content: space-between;
align-items: center;
max-width: 1200px;
margin: 0 auto;
}
.logo img {
height: 50px;
width: auto;
vertical-align: middle;
scale: 1.455;
}
.XXVII {
font-size: 2rem;
font-weight: bold;
color: #fff;
text-shadow: 0 0 10px rgba(255,255,255,0.5);
margin-left: 1rem;
}
.main-nav {
display: flex;
list-style: none;
}
.main-nav li {
position: relative;
}
.Home-Button, .Git, .dropdown a {
color: #fff;
text-decoration: none;
padding: 1rem 1.5rem;
display: block;
transition: all 0.3s ease;
}
.Home-Button:hover, .Git:hover, .dropdown a:hover {
background-color: rgba(255,255,255,0.1);
border-radius: 4px;
}
/* Dropdown styles */
.dropdown {
position: relative;
}
.drop-nav {
position: absolute;
top: 100%;
right: 0;
left: auto;
background-color: #292929;
min-width: 200px;
box-shadow: 0 8px 16px rgba(0,0,0,0.2);
list-style: none;
opacity: 0;
visibility: hidden;
transform: translateY(-10px);
transition: all 0.3s ease;
z-index: 1000;
}
.dropdown:hover .drop-nav {
opacity: 1;
visibility: visible;
transform: translateY(0);
}
.drop-nav li {
width: 100%;
}
.drop-nav a {
color: #ecf0f1;
padding: 0.8rem 1.5rem;
display: block;
border-bottom: 1px solid rgba(255,255,255,0.1);
transition: all 0.3s ease;
}
.drop-nav a:hover {
background-color: rgba(255,255,255,0.1);
padding-left: 2rem;
}
/* Main content */
.main-content {
max-width: fit-content;
margin: 2rem auto;
padding: 0 2rem;
}
/*nav {
background-color: #fff;
padding: 1rem 2rem;
border-radius: 8px;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
margin-bottom: 2rem;
}*/
.cloudflare-staus-nav {
display: block;
text-align: left;
}
.cloudflare-outage:hover {
background-color: unset;
color: white !important;
}
nav {
background: #ff00004d;
border-radius: 16px;
box-shadow: 0 4px 30px hwb(0 0% 0% / 0.1);
backdrop-filter: blur(2.7px);
-webkit-backdrop-filter: blur(2.7px);
border: 1px solid hwb(0 70% 80.4% / 0.27);
padding: 1rem 2rem;
margin-bottom: 2rem;
text-align: center;
display: flex;
overflow-x: auto;
white-space: nowrap;
/* Added for drag experience */
cursor: grab;
user-select: none;
-webkit-user-select: none;
/* Hide scrollbars */
&::-webkit-scrollbar { display: none; }
-ms-overflow-style: none;
scrollbar-width: none;
}
nav:active {
cursor: grabbing; /* Changes cursor while holding click */
}
a:active {
cursor: grabbing;
}
nav a {
color: white; /*#2c3e50;*/
text-decoration: none;
margin-right: 1rem;
padding: 0.5rem 2rem;
border-radius: 4px;
transition: all 0.3s ease;
padding-left: inherit;
}
nav a:hover {
background-color: #ad1f1f33;
color: white;
}
/* Responsive design */
@media (max-width: 768px) {
.header-container {
flex-direction: column;
text-align: center;
}
.main-nav {
margin-top: 1rem;
}
.main-nav li {
display: inline-block;
}
.drop-nav {
position: static;
opacity: 1;
visibility: visible;
transform: none;
box-shadow: none;
background-color: #292929;/*#34495e;*/
max-height: 0;
overflow: hidden;
transition: max-height 0.3s ease;
}
.dropdown:hover .drop-nav {
max-height: 200px;
overflow: auto;
scrollbar-width: none;
user-select: none;
cursor: grab;
}
.drop-nav:active {
cursor: grabbing;
}
.logo {display: none;}
}
/*Old Glitch Effect*/
.Glitch{
animation: glitch 1.74s linear infinite;
position: relative;
}
@keyframes glitch{
2%,64%{
transform: translate(2px,0) skew(0deg);
}
4%,60%{
transform: translate(-2px,0) skew(0deg);
}
62%{
transform: translate(0,0) skew(5deg);
}
}
.Glitch:before,
.Glitch:after{
content: attr(title);
position: absolute;
left: 0;
}
.Glitch:before{
animation: glitchTop 1s linear infinite;
clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%);
-webkit-clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%);
}
@keyframes glitchTop{
2%,64%{
transform: translate(2px,-2px);
}
4%,60%{
transform: translate(-2px,2px);
}
62%{
transform: translate(13px,-1px) skew(-13deg);
}
}
.Glitch:after{
animation: glitchBotom 1.5s linear infinite;
clip-path: polygon(0 67%, 100% 67%, 100% 100%, 0 100%);
-webkit-clip-path: polygon(0 67%, 100% 67%, 100% 100%, 0 100%);
}
@keyframes glitchBotom{
2%,64%{
transform: translate(-2px,0);
}
4%,60%{
transform: translate(-2px,0);
}
62%{
transform: translate(-22px,5px) skew(21deg);
}
}
@media (min-width: 0px) and (max-width: 795px) {
nav {
display: inherit;
}
nav a {
margin-right: 0.5rem !important;
padding: 5px;
word-break: keep-all;
text-wrap: nowrap;
}
}
.ip-box {
font-family: monospace, sans-serif;
font-size: 1.2rem;
padding: 15px;
background: #f4f4f4;
border-radius: 5px;
display: inline-block;
}
#ip-address {
font-weight: normal;
color: #fff;
}
.XXVII-Bottom, #display-time, #ip-address {
font-size: x-small;
}
</style>
<div id="lightbox" onclick="closeImage()">
<span id="close-btn">×</span>
<img id="lightbox-img" alt="Expanded View">
</div>
</body>
</html>