-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mobile.html
495 lines (411 loc) · 19.4 KB
/
mobile.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
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
<html lang="en">
<head>
<script async src="https://www.googletagmanager.com/gtag/js?id=G-7FN7LEVWXD"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-7FN7LEVWXD');
</script>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="shortcut icon" href="/images/ico.ico" type="image/x-icon">
<link rel="stylesheet" href="storage/css/games6.css">
<title>Mobile | Seraph</title>
<meta name="description" content="seraph; an open source unblocked games website hosting 250+ games with downloadable support, a clean and centralised user interface and no iframe embedding">
<meta property="og:site_name" content="seraph">
<meta property="og:title" content="seraph">
<meta property="og:type" content="website">
<meta property="og:description" content="seraph; an open source unblocked games website hosting 250+ games with downloadable support, a clean and centralised user interface and no iframe embedding">
<style>
.button {
background-color: var(--background-color);
border: 3px solid var(--border-color2);
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 8px;
width: calc(50% - 10px);
max-width: 480px;
width: 300px;
max-height: 100px;
box-sizing: border-box;
padding-left: 10px;
padding-right: 10px;
background-repeat: no-repeat;
background-size: cover;
border: 3.2px solid var(--border-color2);
border-radius: 16px;
position: relative;
}
h1 {
text-shadow: 0 0 5px var(--text-color),
0 0 5px var(--text-glow),
0 0 5px var(--text-glow),
0 0 5px var(--text-color),
0 0 50px var(--text-glow),
0 0 5px var(--text-color),
0 0 5px var(--text-glow),
0 0 80px #000000;
}
select {
background-color: var(--background-color);
color: var(--text-color);
width: 50%;
max-width: 400px;
padding-top: 5px;
font-size: 20px;
padding-bottom: 5px;
border: 3px solid var(--border-color2);
margin: 2px;
border-radius: 32px;
padding-left: 10px;
padding-right: 10px;
font-family: var(--font-family);
animation: searchTween 1.5s ease-in-out forwards;
}
button {
background-color: var(--background-color);
color: var(--text-color);
width: 50%;
max-width: 200px;
padding-top: 2px;
padding-bottom: 2px;
font-family: var(--font-family);
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 20px;
margin: 2px;
transition: background-color 0.15s ease-in-out;
border: 2px solid var(--border-color2);
border-radius: 32px;
animation: searchTween 1.5s ease-in-out forwards;
}
</style>
</head>
<body>
<div class="content-side">
<h1 class="typewriter" style="font-size: 60px; padding-bottom: 0px;">seraph</h1>
<p class="linkp"><a style="text-decoration: none; padding-top: 0px;">mobile edition</a></p>
<br>
<h2 class="allgames-header">games</h2>
<a target="_blank" href="games/flappy/index.html">
<div class="button" style="background-image: url('images/thumbnails/flappybird.jpg');">
<h2>flappy bird</h2>
</div>
</a>
<a target="_blank" href="games/crossy/index.html">
<div class="button" style="background-image: url('images/thumbnails/crossyroad.jpg');">
<h2>crossy road</h2>
</div>
</a>
<a target="_blank" href="games/driftboss/index.html">
<div class="button" style="background-image: url('images/thumbnails/driftboss.jpg');" data-genre="mobile">
<h2>drift boss</h2>
</div>
</a>
<a target="_blank" href="games/thereisnogame/index.html">
<div class="button" style="background-image: url('images/thumbnails/thereisnogame.png');" data-genre="mobile">
<h2>there is no game</h2>
</div>
</a>
<a target="_blank" href="games/stickmanhook/index.html">
<div class="button" style="background-image: url('images/thumbnails/stickmanhook.png');" data-genre="mobile">
<h2>stickman hook</h2>
</div>
</a>
<a target="_blank" href="games/basketbrosio/index.html">
<div class="button" style="background-image: url('images/thumbnails/basketbrosio.png');" data-genre="mobile">
<h2>basketbros io</h2>
</div>
</a>
<a target="_blank" href="games/bobtherobber2/index.html">
<div class="button" style="background-image: url('images/thumbnails/bobtherobber2.png');">
<h2>bob the robber 2</h2>
</div>
</a>
<a target="_blank" href="games/skibiditoiletattack/index.html">
<div class="button" style="background-image: url('images/thumbnails/skibiditoiletattack.png');">
<h2>skibidi attack</h2>
</div>
</a>
<a target="_blank" href="games/fruitninja/index.html">
<div class="button" style="background-image: url('images/thumbnails/fruitninja.jpg');">
<h2>fruit ninja</h2>
</div>
</a>
<a target="_blank" href="games/stack/index.html">
<div class="button" style="background-image: url('images/thumbnails/stack.png');">
<h2>stack</h2>
</div>
</a>
<a target="_blank" href="games/2048/index.html">
<div class="button" style="background-image: url('images/thumbnails/2048.jpg');">
<h2>2048</h2>
</div>
</a>
<a target="_blank" href="games/tunnelrush/index.html">
<div class="button" style="background-image: url('images/thumbnails/tunnelrush.jpg');">
<h2>tunnel rush</h2>
</div>
</a>
<a target="_blank" href="games/surf/index.html">
<div class="button" style="background-image: url('images/thumbnails/surf.jpg');">
<h2>edge surf</h2>
</div>
</a>
<a target="_blank" href="games/dinogame/index.html">
<div class="button" style="background-image: url('images/thumbnails/chromedino.jpg');">
<h2>chrome dino</h2>
</div>
</a>
<a target="_blank" href="games/slopeball/index.html">
<div class="button" style="background-image: url('images/thumbnails/slopeball.png');">
<h2>slope ball</h2>
</div>
</a>
<a target="_blank" href="games/holeio/index.html">
<div class="button" style="background-image: url('images/thumbnails/holeio.png');">
<h2>hole io</h2>
</div>
</a>
<a target="_blank" href="games/risehigher/index.html">
<div class="button" style="background-image: url('images/thumbnails/risehigher.png');">
<h2>rise higher</h2>
</div>
</a>
<h2>apps</h2>
<a target="_blank" href="apps/fluidsim/index.html">
<div class="button" style="background-image: url('images/thumbnails/fluidsim.png');" data-genre="mobile">
<h2>webgl fluids</h2>
</div>
</a>
<a target="_blank" href="apps/thirtydollarwebsite/index.html">
<div class="button" style="background-image: url('images/thumbnails/thirtydollarwebsite.png');" data-genre="mobile">
<h2>soundboard</h2>
</div>
</a>
<h2>settings</h2>
<h3>theme</h3>
<select id="theme-select">
<option value="seraph">seraph</option>
<option value="azurite">azurite</option>
<option value="retro">retro</option>
<option value="cosmic">cosmic</option>
<option value="molten">molten</option>
<option value="amethyst">amethyst</option>
<option value="ethereal">ethereal</option>
<option value="subzero">subzero</option>
<option value="metro">metro</option>
</select>
<button id="apply-theme">apply</button>
<h3>cloak</h3>
<select id="presetSelect">
<option value="google">google</option>
<option value="googleclassroom">google classroom</option>
<option value="googledrive">google drive</option>
<option value="chrometab">chrome new tab</option>
<option value="gmail">gmail</option>
<option value="bing">bing</option>
<option value="desmos">desmos calculator</option>
<option value="wikipedia">wikipedia</option>
</select>
<button id="saveButton">select cloak</button>
<button id="resetButton">reset cloak</button>
<br>
<p id="success" style="display: none;">success message here</p>
<br>
<p class="linkp"><a href="https://discord.gg/ZyZDmx3zuQ" target="_blank">discord</a> • <a href="https://github.com/a456pur/seraph" target="_blank">source code</a></p>
<a href="https://github.com/a456pur" target="_blank" style="text-decoration: none;">˗ˏˋ❀ website developed by @a456pur ❀ ´ˎ˗</a>
<br>
<br>
</div>
<script src="storage/js/cloak.js"></script>
<script src="storage/js/theme.js"></script>
<script src="storage/js/cookie.js"></script>
<!--copied from settings -->
<script>
document.addEventListener('DOMContentLoaded', function () {
applyStoredTheme();
populateCustomThemeSettings();
});
function applyStoredTheme() {
const storedTheme = localStorage.getItem('selectedTheme');
hideCustomThemeSettings();
if (storedTheme === 'custom') {
showCustomThemeSettings();
applyCustomThemeStyles();
}
applyTheme();
}
function hideCustomThemeSettings() {
const customThemeSettings = document.getElementById('custom-theme-settings');
if (customThemeSettings) {
customThemeSettings.style.display = 'none';
}
}
function showCustomThemeSettings() {
const customThemeSettings = document.getElementById('custom-theme-settings');
if (customThemeSettings) {
customThemeSettings.style.display = 'block';
}
}
function populateCustomThemeSettings() {
const customTheme = JSON.parse(localStorage.getItem('customTheme')) || {};
document.getElementById('background-image').value = customTheme['background-image'] || 'https://raw.githubusercontent.com/a456pur/seraph/main/images/backgrounds/seraph/homebg.png';
document.getElementById('font-family').value = customTheme['font-family'] || 'Ubuntu';
document.getElementById('text-color').value = customTheme['text-color'] || '#FFFFFF';
document.getElementById('background-color').value = customTheme['background-color'] || 'black';
document.getElementById('border-color1').value = customTheme['border-color1'] || '#000000';
document.getElementById('border-color2').value = customTheme['border-color2'] || '#FFFFFF';
document.getElementById('hover-color').value = customTheme['hover-color'] || '#1a1818';
document.getElementById('text-glow').value = customTheme['text-glow'] || '#000000';
}
function applyCustomThemeStyles() {
const customTheme = JSON.parse(localStorage.getItem('customTheme')) || {};
const root = document.documentElement;
const customStyleTag = document.getElementById('custom-theme-style');
if (!customStyleTag) {
const styleTag = document.createElement('style');
styleTag.id = 'custom-theme-style';
styleTag.textContent = `
:root {
--background-image: url('${customTheme['background-image'] || ''}');
--font-family: '${customTheme['font-family'] || ''}', sans-serif;
--text-color: ${customTheme['text-color'] || '#fff'};
--background-color: ${customTheme['background-color'] || 'black'};
--border-color1: ${customTheme['border-color1'] || '#aaaaaa'};
--border-color2: ${customTheme['border-color2'] || '#ffffff'};
--hover-color: ${customTheme['hover-color'] || '#1a1818'};
--text-glow: ${customTheme['text-glow'] || '#000000'};
}
`;
document.head.appendChild(styleTag);
}
}
function removeCustomThemeStyles() {
const customStyleTag = document.getElementById('custom-theme-style');
if (customStyleTag) {
customStyleTag.parentNode.removeChild(customStyleTag);
}
}
function applyTheme() {
const selectedTheme = document.getElementById('theme-select');
if (selectedTheme) {
const themeValue = selectedTheme.value;
document.documentElement.className = `theme-${themeValue}`;
localStorage.setItem('selectedTheme', themeValue);
if (themeValue === 'custom') {
applyCustomThemeStyles();
showCustomThemeSettings();
} else {
hideCustomThemeSettings();
removeCustomThemeStyle();
}
}
}
function removeCustomThemeStyle() {
const customThemeStyle = document.getElementById('custom-theme-style');
if (customThemeStyle) {
customThemeStyle.parentNode.removeChild(customThemeStyle);
}
}
const storedTheme = localStorage.getItem('selectedTheme');
if (storedTheme) {
const selectElement = document.getElementById('theme-select');
if (selectElement) {
selectElement.value = storedTheme;
applyStoredTheme();
}
}
const applyButton = document.getElementById('apply-theme');
if (applyButton) {
applyButton.addEventListener('click', applyTheme);
}
const applyCustomButton = document.getElementById('apply-custom-theme');
if (applyCustomButton) {
applyCustomButton.addEventListener('click', function () {
const customTheme = {
'background-image': document.getElementById('background-image').value,
'font-family': document.getElementById('font-family').value,
'text-color': document.getElementById('text-color').value,
'background-color': document.getElementById('background-color').value,
'border-color1': document.getElementById('border-color1').value,
'border-color2': document.getElementById('border-color2').value,
'hover-color': document.getElementById('hover-color').value,
'text-glow': document.getElementById('text-glow').value,
};
localStorage.setItem('customTheme', JSON.stringify(customTheme));
applyCustomThemeStyles();
const selectedTheme = document.getElementById('theme-select');
if (selectedTheme.value !== 'custom') {
removeCustomThemeStyles();
}
});
}
</script>
<script>
function setCookie(name, value, options) {
options = options || {};
let expires = options.expires;
if (typeof expires == "number" && expires) {
const d = new Date();
d.setTime(d.getTime() + expires * 24 * 60 * 60 * 1000);
expires = options.expires = d;
}
if (expires && expires.toUTCString) {
options.expires = expires.toUTCString();
}
value = encodeURIComponent(value);
let updatedCookie = name + "=" + value;
for (const propName in options) {
updatedCookie += "; " + propName;
const propValue = options[propName];
if (propValue !== true) {
updatedCookie += "=" + propValue;
}
}
document.cookie = updatedCookie;
}
function getCookie(name) {
const matches = document.cookie.match(new RegExp(
"(?:^|; )" + name.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g, '\\$1') + "=([^;]*)"
));
return matches ? decodeURIComponent(matches[1]) : undefined;
}
document.addEventListener("DOMContentLoaded", function() {
const presetSelect = document.getElementById("presetSelect");
const saveButton = document.getElementById("saveButton");
const resetButton = document.getElementById("resetButton");
const successMessage = document.getElementById("success");
const selectedPreset = getCookie("tabCloakPreset");
if (selectedPreset) {
presetSelect.value = selectedPreset;
}
saveButton.addEventListener("click", function() {
const selectedValue = presetSelect.value;
successMessage.textContent = "preset chosen! refresh the page to see changes";
setCookie("tabCloakPreset", selectedValue, { expires: 365 });
successMessage.style.display = "block";
setTimeout(function() {
successMessage.style.display = "none";
}, 3000);
});
resetButton.addEventListener("click", function() {
deleteCookie("tabCloakPreset");
presetSelect.selectedIndex = 0;
successMessage.textContent = "cloaking reset, refresh the page to see changes";
successMessage.style.display = "block";
setTimeout(function() {
successMessage.style.display = "none";
}, 3000);
});
function deleteCookie(name) {
document.cookie = name + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
}
});
</script>
</body>
</html>