Repository navigation
Expand file tree
/
Copy pathlessons.html
More file actions
311 lines (277 loc) · 15.5 KB
/
Copy pathlessons.html
File metadata and controls
311 lines (277 loc) · 15.5 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Homework Hub - Cranmore VLE</title>
<link rel="icon" type="image/png" href="image-removebg-preview.png">
<script src="/cloak.js"></script>
<!-- External CSS styles -->
<link rel="stylesheet" href="styles.css">
<script>
window.plausible=window.plausible||function(){(plausible.q=plausible.q||[]).push(arguments)},plausible.init=plausible.init||function(i){plausible.o=i||{}};
plausible.init()
</script>
<style>
:root {
--bg: #050816;
--panel: rgba(15, 23, 42, 0.68);
--stroke: rgba(148, 163, 184, 0.28);
--text: #e2e8f0;
--muted: #94a3b8;
--accent: #60a5fa;
--accent-strong: #2563eb;
}
* { box-sizing: border-box; }
body {
margin: 0;
font-family: "Inter", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
background: radial-gradient(circle at top, #16213d 0%, var(--bg) 55%, #02040e 100%);
color: var(--text);
min-height: 100vh;
}
#particles-js {
position: fixed;
inset: 0;
z-index: 0;
}
.page-shell {
position: relative;
z-index: 1;
width: min(1120px, 94%);
margin: 0 auto;
padding: 1.3rem 0 2.2rem;
}
.panel {
background: var(--panel);
border: 1px solid var(--stroke);
border-radius: 18px;
backdrop-filter: blur(8px);
box-shadow: 0 12px 35px rgba(2, 8, 23, 0.4);
}
header { display:flex;align-items:center;gap:1rem;text-align:left;margin-bottom:1rem;padding:1.1rem 1.25rem; }
header img { width: 82px; height: 82px; }
header h1 { margin:0;font-size:clamp(1.5rem,4vw,2.35rem);letter-spacing:-.04em; }
header h3 { font-size:.9rem;margin:.35rem 0 0;color:#cbd5e1;font-weight:500; }
.status-pill{margin-left:auto;padding:.45rem .7rem;border:1px solid rgba(74,222,128,.35);border-radius:999px;background:rgba(34,197,94,.12);color:#86efac;font-size:.75rem;font-weight:800;white-space:nowrap}
.login-section, .privacy-section, .contact-section, .view-counter-section, .homework-section, .due-tasks-section {
padding: 1rem 1.1rem;
margin: 0 0 1rem 0;
}
.task-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
gap: 0.85rem;
}
.task-card {
position:relative;
border-radius: 14px;
overflow: hidden;
aspect-ratio: 1 / 1;
border: 1px solid rgba(96, 165, 250, 0.34);
box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.task-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 12px 30px rgba(30,64,175,.4); }
.task-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.task-card span{position:absolute;inset:auto 0 0;padding:1.5rem .65rem .55rem;background:linear-gradient(transparent,rgba(2,6,23,.96));color:white;font-size:.77rem;font-weight:800;text-align:left;letter-spacing:.01em}
.toolbar{display:flex;gap:.7rem;align-items:center;padding:.8rem;margin-bottom:1rem;position:sticky;top:.6rem;z-index:4}
.search{flex:1;min-width:0;border:1px solid var(--stroke);border-radius:12px;background:rgba(2,6,23,.7);color:white;padding:.8rem 1rem;font:inherit;outline:none}.search:focus{border-color:var(--accent);box-shadow:0 0 0 3px rgba(96,165,250,.15)}
.cloak-button{border:0;border-radius:12px;padding:.8rem 1rem;background:linear-gradient(135deg,var(--accent-strong),#7c3aed);color:white;font-weight:800;cursor:pointer;white-space:nowrap}
.section-heading{display:flex;align-items:end;justify-content:space-between;margin-bottom:.8rem}.section-heading h1{margin:0}.section-heading p{margin:0;color:var(--muted);font-size:.8rem}
.empty{display:none;color:var(--muted);text-align:center;padding:2rem}
.button, .contactbutton {
border-radius: 999px; padding: 10px 15px; border: 1px solid var(--stroke);
background: rgba(96,165,250,.16); color: #eff6ff; cursor: pointer;
}
.homework-section h1, .due-tasks-section h1, .privacy-section h1, .contact-section h1 {
margin: 0 0 .5rem 0; font-size: 1.2rem;
}
.view-counter-section p { font-size: .75rem; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; margin: 0 0 .5rem; }
.view-counter-section img { border-radius: 6px; height: 28px; }
.rainbow-background { animation: rainbow .5s infinite; }
@keyframes rainbow {
0% { background-color: #ff4242; } 20% { background-color: #ffa500; } 40% { background-color: #ffea00; }
60% { background-color: #29a329; } 80% { background-color: #3f51b5; } 100% { background-color: #9c27b0; }
}
@media(max-width:600px){header{align-items:flex-start}.status-pill{display:none}.toolbar{top:.25rem}.cloak-button{font-size:0}.cloak-button::after{content:'Cloak';font-size:.85rem}}
</style>
</head>
<body>
<div id="particles-js"></div>
<div class="page-shell">
<script src="https://cdn.auth0.com/js/auth0-spa-js/2.18/auth0-spa-js.production.js"></script>
<script src="/auth.js"></script>
<script>(async () => { await Auth.requireAuth(); Auth.startSessionGuard(); })();</script>
<header class="panel">
<img src="favicon.png" alt="VLE Logo">
<div><h1>Homework Hub</h1><h3 id="welcome">Your games, all in one place.</h3></div>
<span class="status-pill">● Online</span>
</header>
<main>
<nav class="toolbar panel" aria-label="Game controls">
<input class="search" id="gameSearch" type="search" placeholder="Search games…" aria-label="Search games">
<button class="cloak-button" id="cloakButton" type="button">Open in about:blank</button>
</nav>
<section class="login-section panel">
<center>
<input type="text" name="username" class="input navbar-control" placeholder="Enter fake title" value="Formative" id="title">
<input type="text" name="password" class="input navbar-control" placeholder="fakeformative.png" value="fakeformative.png" id="icon">
<br>
<button class="button navbar-control" type="button" id="btnTitle">Set title</button>
<button class="button navbar-control" type="button" id="btnIcon">Set Icon</button>
<button class="button navbar-control" type="button" id="btnReset">Reset</button>
<button class="button navbar-control" type="button" id="btnLogout">Logout</button>
</center>
</section>
<section class="view-counter-section panel">
<p>Page Views</p>
<img src="https://visitor-badge.laobi.icu/badge?page_id=pefia.schoolworkhelper.games&left_color=%231e293b&right_color=%233b82f6&left_text=Views" alt="Page view count badge">
</section>
<section class="homework-section panel">
<div class="section-heading"><h1>Game Library</h1><p>22 games</p></div>
<div class="task-grid">
<a class="task-card" href="cs16/index.html" data-name="counter strike cs 1.6 webxash"><img src="cs16/icon.svg" alt=""><span>Counter-Strike 1.6</span></a>
<a class="task-card" href="twenT48/index.html"><img src="twenT48/icon.png" alt="2048"><span>2048</span></a>
<a class="task-card" href="hxtrs/index.html"><img src="hxtrs/icon.png"></a>
<a class="task-card" href="rdsrd/index.html"><img src="rdsrd/icon.png"></a>
<a class="task-card" href="polytrack/index.html"><img src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQL9OEod1DF5z0dE45V1rtBLlpjUQWUNjGzYg&s"></a>
<a class="task-card" href="infmar/main.html"><img src="infmar/icon.png"></a>
<a class="task-card" href="twdf/index.html"><img src="twdf/icon.png"></a>
<a class="task-card" href="typr/typr.html"><img src="typr/icon.png"></a>
<a class="task-card" href="f1/index.html"><img src="f1/icon.png"></a>
<a class="task-card" href="wlfjs/index.html"><img src="wlfjs/icon.png"></a>
<a class="task-card" href="tptptp/index.html"><img src="tptptp/icon.png"></a>
<a class="task-card" href="stckmnhk/index.html"><img src="stckmnhk/icon.jpg"></a>
<a class="task-card" href="flpybrd/index.html"><img src="flpybrd/icon.png"></a>
<a class="task-card" href="chrdno/index.html"><img src="chrdno/icon.png"></a>
<a class="task-card" href="stck/index.html"><img src="stck/icon.png"></a>
<a class="task-card" href="wdl/index.html"><img src="wdl/icon.png"></a>
<a class="task-card" href="rlyvtx/index.html"><img src="rlyvtx/icon.png"></a>
<a class="task-card" href="tnyfsh/index.html"><img src="tnyfsh/icon.png"></a>
<a class="task-card" href="egycr/index.html"><img src="egycr/icon.png"></a>
<a class="task-card" href="adventure/index.html"><img src="adventure/icon.svg"></a>
<a class="task-card" href="poker/index.html"><img src="poker/icon.svg"></a>
<a class="task-card" href="blackjack/index.html"><img src="blackjack/icon.svg"></a>
</div>
<p class="empty" id="emptyState">No games match that search.</p>
</section>
<section class="due-tasks-section panel">
<h1>Due Tasks (7)</h1>
<p>Stay organized with these focused homework tools.</p>
<div class="task-grid">
<a class="task-card" href="subsurf/subsurfs.html"><img src="subsurf/icon.png"></a>
<a class="task-card" href="dm/index.html"><img src="dm/icon.png"></a>
<a class="task-card" href="crsyrd/index.html"><img src="crsyrd/icon.png"></a>
<a class="task-card" href="cbfld/index.html"><img src="cbfld/icon.jpg"></a>
<a class="task-card" href="rtbwl/index.html"><img src="rtbwl/icon.png"></a>
<a class="task-card" href="trts/index.html"><img src="trts/icon.png"></a>
<a class="task-card" href="chtwntftet/couch/index.html"><img src="chtwntftet/icon.jpg"></a>
</div>
</section>
<section class="privacy-section panel">
<h1>Privacy First</h1>
<img src="lock.png" alt="Lock Icon" style="display: block; margin: 0 auto; cursor: pointer;" id="lockIcon">
<p>Anonymity<br>ALT + SHIFT to redirect to Google. Note: This only works on the home screen and there is no back for extra security</p>
</section>
<section class="contact-section panel">
<h1>Support Contact</h1>
<div class="contacts">
<a class="contactbutton" href="mailto:playboicarti225@protonmail.com?subject=Your Homework Site"><img src="gmail.jpg" alt="Gmail Icon"></a>
</div>
</section>
</main>
<!-- External JavaScript -->
<script src="https://cdn.jsdelivr.net/particles.js/2.0.0/particles.min.js"></script>
<script src="scripts.js"></script>
<script>
particlesJS("particles-js", {
particles: {
number: { value: 260, density: { enable: true, value_area: 900 } },
color: { value: "#ffffff" },
shape: { type: "circle" },
opacity: { value: 0.75, random: true },
size: { value: 4, random: true },
line_linked: { enable: false },
move: {
enable: true,
speed: 2.2,
direction: "bottom",
random: true,
straight: false,
out_mode: "out"
}
},
interactivity: {
detect_on: "canvas",
events: { onhover: { enable: false }, onclick: { enable: false }, resize: true }
},
retina_detect: true
});
// Function to toggle rainbow background effect
function toggleRainbowBackground() {
document.body.classList.toggle('rainbow-background');
}
// Add click event listener to lock icon
document.getElementById('lockIcon').addEventListener('click', toggleRainbowBackground);
document.getElementById('cloakButton').addEventListener('click', function () {
if (!window.Cloak.launch()) {
this.textContent = 'Pop-up blocked — allow and retry';
}
});
const gameNames = {
hxtrs:'Hextris', rdsrd:'Radius Raid', polytrack:'PolyTrack', infmar:'Infinite Mario',
twdf:'Tower Defense', typr:'Typing Game', f1:'Formula One', wlfjs:'Wolfenstein 3D',
tptptp:'Tap Tap Tap', stckmnhk:'Stickman Hook', flpybrd:'Flappy Bird', chrdno:'Chrome Dino',
stck:'Stack', wdl:'Wordle', rlyvtx:'Rolly Vortex', tnyfsh:'Tiny Fishing', egycr:'Eggy Car',
adventure:'Adventure', poker:'Poker', blackjack:'Blackjack', subsurf:'Subway Surfers', dm:'Doom',
crsyrd:'Crossy Road', cbfld:'Cubefield', rtbwl:'Retro Bowl', trts:'Tetris', chtwntftet:'Getaway Shootout'
};
const cards = Array.from(document.querySelectorAll('.task-card'));
cards.forEach(function (card) {
if (!card.dataset.name) {
const folder = card.getAttribute('href').split('/')[0];
card.dataset.name = gameNames[folder] || folder;
}
if (!card.querySelector('span')) {
const label = document.createElement('span');
label.textContent = card.dataset.name;
card.appendChild(label);
}
const image = card.querySelector('img');
if (!image.alt) image.alt = '';
});
const search = document.getElementById('gameSearch');
search.addEventListener('input', function () {
const query = this.value.trim().toLowerCase();
let matches = 0;
cards.forEach(function (card) {
const name = card.dataset.name.toLowerCase();
const visible = name.includes(query);
card.hidden = !visible;
if (visible) matches += 1;
});
document.getElementById('emptyState').style.display = matches ? 'none' : 'block';
});
// Function to handle Alt + Shift key press
function handleKeyPress(event) {
if (event.altKey && event.shiftKey) {
window.location.href = "https://www.google.com";
}
}
// Add keydown event listener to document
document.addEventListener('keydown', handleKeyPress);
(async function () {
const user = await Auth.currentUser();
if (user) {
const name = user.nickname || user.name || user.email || 'user';
document.getElementById('welcome').textContent = 'Logged in as ' + name + ' · Use ALT + SHIFT for quick hide';
}
document.getElementById('btnLogout').addEventListener('click', async function () {
await Auth.logout();
});
})();
</script>
</div>
</body>
</html>