Skip to content

Commit ba36073

Browse files
committed
test
1 parent 804ea80 commit ba36073

File tree

3 files changed

+90
-1
lines changed

3 files changed

+90
-1
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
node_modules/
22
.codesandbox/
3-
what
3+
what
4+
theycomin.html

pages/game-pages/supermario64.html

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<title>Super Mario 64</title>
5+
<style>
6+
body {
7+
margin: 0;
8+
padding: 0;
9+
background: #111;
10+
position: relative;
11+
min-height: 100vh;
12+
box-sizing: border-box;
13+
}
14+
.game-embed {
15+
display: block;
16+
width: 100vw;
17+
height: calc(100vh - 60px);
18+
border: none;
19+
background: #222;
20+
}
21+
.taskbar {
22+
position: fixed;
23+
left: 0;
24+
bottom: 0;
25+
width: 100vw;
26+
height: 60px;
27+
background: rgba(20,20,20,0.98);
28+
display: flex;
29+
justify-content: flex-end;
30+
align-items: center;
31+
gap: 16px;
32+
box-shadow: 0 -2px 8px #0008;
33+
z-index: 100;
34+
padding: 0 24px;
35+
}
36+
.taskbar button {
37+
background: #222;
38+
color: #fff;
39+
border: none;
40+
border-radius: 8px;
41+
padding: 10px 22px;
42+
font-size: 18px;
43+
cursor: pointer;
44+
margin-left: 8px;
45+
transition: background 0.2s;
46+
}
47+
.taskbar button:hover {
48+
background: #444;
49+
}
50+
body {
51+
background-image: linear-gradient(to left, violet, indigo, blue, green, yellow, orange, red);
52+
}
53+
</style>
54+
</head>
55+
<body>
56+
57+
<embed id="gameEmbed" class="game-embed" src='https://definitelynotblocked-three.vercel.app/games/sm64/index.html'></embed>
58+
<div class="taskbar">
59+
<button onclick="window.location.href='../../select.html'">Back</button>
60+
<button onclick="window.location.reload()">Restart</button>
61+
</div>
62+
<script>
63+
document.querySelector('.game-embed').focus();
64+
</script>
65+
66+
</body>
67+
<script>
68+
(function() {
69+
const value = localStorage.getItem('tabCloaker') || 'default';
70+
const favicon = document.querySelector("link[rel~='icon']") || (() => {
71+
const link = document.createElement('link');
72+
link.rel = 'icon';
73+
document.head.appendChild(link);
74+
return link;
75+
})();
76+
if (value === 'google') {
77+
document.title = 'Google';
78+
favicon.href = 'https://www.google.com/favicon.ico';
79+
} else if (value === 'vocab') {
80+
document.title = 'My Learning | Vocabulary.com';
81+
favicon.href = 'https://www.vocabulary.com/favicon.ico';
82+
} else {
83+
favicon.href = '/favicon.ico';
84+
}
85+
})();
86+
</script>
87+
</html>

select.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ <h1>Games:</h1>
129129
<button class="button" data-title="Snow Rider 3D" onclick="window.location.href='pages/game-pages/snowrider.html'"">Snow Rider 3D</button>
130130
<button class="button" data-title="Stick Slasher" onclick="window.location.href='pages/game-pages/stickslasher.html'"">Stick Slasher</button>
131131
<button class="button" data-title="Block Blast" onclick="window.location.href='pages/game-pages/blockblast.html'"">Block Blast</button>
132+
<button class="button" data-title="Super Mario 64" onclick="window.location.href='pages/game-pages/supermario64.html'"">Super Mario 64</button>
132133

133134
</div>
134135
</main>

0 commit comments

Comments
 (0)