-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmanor.html
93 lines (88 loc) · 3.28 KB
/
manor.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>The Spooky Manor</title>
<style>
/* Full page iframe */
iframe {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
border: none;
}
</style>
<script>
// Approved haunted house pages
const rooms = [
"https://saumilthecode.github.io/spooktober/",
"https://aryan9190.github.io/haunted-house/",
"https://zabi66.github.io/Halloween-card/",
"https://gaoyegithub.github.io/Spooky-Ocean/",
"https://eshangonemad.github.io/Hallooweeeeen/",
"https://pizzalover125.github.io/nightmare/",
"https://sillywilly21.github.io/spookydookie/index.html",
"https://aaronsfunstuff.github.io/aarons-spooky-corner-/",
"https://actuallymed.github.io/bobamanor/",
"https://neongamerbot-qk.github.io/spooky-boba/",
"https://halloweenhaunter.arnav.hackclub.app/",
"https://snipeur060.github.io/hackmanor/",
"https://shim-sham.github.io/spooky-room/",
"https://thomasjprice.github.io/boba-manor-submission/",
"https://beepboopblorp.github.io/ghostie-graveyard/",
"https://michellemeng06.github.io/chillnthrill/",
"https://adamexu.github.io/manor",
"https://phyotp.github.io/5k1b1d1",
"https://sillywilly21.github.io/the_expanse/",
"https://b3arora.github.io/spooky-boba/",
"https://ponderslime.github.io/Boba-Manor-Submission/",
"https://nina-1005.github.io/spooky-manor/",
"https://spookyboba.netlify.app/",
"https://sarveshwaran20.github.io/",
"https://ristonrodrigues723.github.io/horror-room-/",
"https://thescientist101.github.io/ice-cream-spook",
"https://yoda-flash.github.io/spooky-boba-website/",
"https://michaelk-f.github.io/jumpscare-thing/",
"https://d99-1.github.io/boba-manor-accessibility-settings/",
"https://vicoder2.github.io/Yu-Gi-Oh-Spooky-Lair/",
"https://kirito139.github.io",
"https://jwseph.github.io/manor-website/",
"https://lll11233.github.io/hauntedhause/index",
"https://dimitris-toulis.github.io/spooky-room/",
"https://langbro-123.github.io/start-wgc/",
"parkingTurkeys.github.io/spooky-boba",
"https://solicht88.github.io/hc-spooky-manor/",
];
let visitedRooms = [];
//Fisher-Yates shuffle)
function shuffle(array) {
for (let i = array.length - 1; i > 0; i--) {
const j = Math.floor(Math.random() * (i + 1));
[array[i], array[j]] = [array[j], array[i]];
}
}
function getNextRoom() {
// If all rooms have been visited, reshuffle and start over
if (visitedRooms.length === 0) {
visitedRooms = [...rooms];
shuffle(visitedRooms);
}
return visitedRooms.shift();
}
</script>
</head>
<body>
<iframe src="#"></iframe>
<script>
const room = getNextRoom();
if (window.self === window.top) {
document.querySelector("iframe").src = room;
} else {
window.location.href = room;
}
</script>
</body>
</html>