-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
131 lines (117 loc) · 3.01 KB
/
index.html
File metadata and controls
131 lines (117 loc) · 3.01 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Epilepsy Test Visualizations</title>
<style>
html, body {
margin: 0;
padding: 0;
width: 100vw;
height: 100vh;
overflow: hidden;
background: #000;
font-family: Arial, sans-serif;
}
#iframe-container {
display: none; /* Hidden until warning is acknowledged */
display: grid;
grid-template-columns: 1fr 1fr;
grid-template-rows: repeat(4, 1fr);
gap: 2px;
width: 100vw;
height: 100vh;
}
a {
display: block;
width: 100%;
height: 100%;
}
iframe {
width: 100%;
height: 100%;
border: none;
pointer-events: none;
background: #000;
}
#warning {
position: fixed;
z-index: 9999;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background-color: rgba(0, 0, 0, 0.95);
color: white;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
padding: 20px;
font-size: 18px;
}
#warning h1 {
font-size: 32px;
margin-bottom: 20px;
}
#continue-btn {
background-color: #ff6600;
color: white;
border: none;
padding: 15px 30px;
font-size: 20px;
cursor: pointer;
border-radius: 5px;
margin-top: 20px;
}
#continue-btn:hover {
background-color: #ff4500;
}
</style>
</head>
<body>
<!-- Epilepsy Warning -->
<div id="warning">
<h1>Epilepsy Warning</h1>
<p>This content may contain flashing lights or visual patterns that could trigger seizures for those with photosensitive epilepsy.</p>
<p>If you or someone watching has a history of seizures or epilepsy, consult a doctor before viewing.</p>
<p>If you experience discomfort (dizziness, nausea, visual disturbances), stop immediately.</p>
<button id="continue-btn">Continue</button>
</div>
<!-- Hidden container for iframes -->
<div id="iframe-container"></div>
<script>
const pages = [
{ title: "12D", src: "./12D.html" },
{ title: "Causality", src: "./causality.html" },
{ title: "Oscillation", src: "./oscillation.html" },
{ title: "Spiral", src: "./spiral.html" },
{ title: "String Theory", src: "./stringtheory.html" },
{ title: "Tunnel", src: "./tunnel.html" },
{ title: "CRT", src: "./crt.html" },
{ title: "Foxes", src: "./FoxSS.html" },
{ title: "Donut", src: "./3body.html" },
{ title: "Tree", src: "./tree.html" }
];
document.getElementById("continue-btn").addEventListener("click", () => {
// Hide warning
document.getElementById("warning").style.display = "none";
// Show iframe container
const container = document.getElementById("iframe-container");
container.style.display = "grid";
// Inject exactly 8 iframes
pages.slice(0, 10).forEach(({ title, src }) => {
const a = document.createElement("a");
a.href = src;
a.title = title;
const iframe = document.createElement("iframe");
iframe.src = src;
a.appendChild(iframe);
container.appendChild(a);
});
});
</script>
</body>
</html>