-
Notifications
You must be signed in to change notification settings - Fork 197
/
Copy pathnew.html
214 lines (212 loc) · 7.95 KB
/
new.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
<!DOCTYPE html>
<html>
<head>
<script
async
src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5598129470490010"
crossorigin="anonymous"
></script>
<!-- Google tag (gtag.js) -->
<script
async
src="https://www.googletagmanager.com/gtag/js?id=G-Y71QM9DR66"
></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag("js", new Date());
gtag("config", "G-Y71QM9DR66");
</script>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<title class="cloak">New | MacVG</title>
<link class="favicon" rel="icon" type="image/x-icon" href="/logo.png" />
<link href="style.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="games.css" />
</head>
<body>
<nav class="nav" id="nav">
<div class="overflowm shoot" id="overflowm">
<img src="media/bars-solid.svg" alt="Menu" class="shoot" />
</div>
<a href="/macvg/" class="logo2" style="background-color: transparent">
<img src="/macvg/media/macvg-logo.png" alt="MacVG Logo" />
</a>
<a href="new.html" class="nav-link">New</a>
<a href="trending.html" class="nav-link">Trending</a>
<a href="recent.html" class="nav-link">Recent</a>
<a href="/macvg/settings.html" class="nav-link">Settings</a>
<div class="right">
<div class="select help-menu">
<span class="help-label help-menu">Originals</span>
<img src="media/caret.svg" class="caret help-menu" id="caret" />
<ul id="cats" class="cats help-menu">
<a href="/macvg/originals/atomic/" target="_blank"
>Atomic Clicker</a
>
<a href="/macvg/originals/macboard/" target="_blank">MacBoard</a>
</ul>
</div>
<div class="select help-menu">
<span class="help-label help-menu">Help</span>
<img src="media/caret.svg" class="caret help-menu" id="caret" />
<ul id="cats" class="cats help-menu">
<a href="/macblog/projects/macvg/" target="_blank">About</a>
<a href="/macblog/updates/macvg/" target="_blank">Updates</a>
<a href="/macblog/projects/macvg/" target="_blank">Docs</a>
<a href="https://forms.gle/UpHgbAmLtUPCD5bs8" target="_blank"
>Feedback</a
>
</ul>
</div>
<img src="media/profile.svg" class="profile" id="profile" />
</div>
</nav>
<div class="macsidebar" id="sidebar">
<a href="/"><img src="/logo.png" alt="" /></a>
<a href="/macideas/"><img src="/MacIdeas Logo.png" alt="" /></a>
<a href="/maclearn/"><img src="/MacLearn Logo.png" alt="" /></a>
<a href="/mactime/"><img src="/MacTime Logo.png" alt="" /></a>
<a href="/macvg/"><img src="/MacVG Logo.png" alt="" /></a>
<a href="/macblog/"><img src="/MacBlog Logo.png" alt="" /></a>
</div>
<div class="wrap" style="padding-bottom: 40px">
<style>
#feedback {
color: white;
text-decoration: none;
position: absolute;
margin: none;
top: 4px;
right: 0px;
margin-inline: 10px;
}
</style>
<header class="homeheader">
<div class="title" name="New Games">New Games</div>
<div
class="sub"
style="
width: 65%;
margin-inline: 17.5%;
text-align: left;
line-height: 30px;
"
>
On each monthly update we add some more new unblocked games to MacVG,
and you can access the games added in the previous update here! Now
you can play all the new awesome games directly from the New tab!
</div>
</header>
<div class="games-container">
<a class="game" id="game453">Axis Football League</a>
<a class="game" id="game454">Burrito Bisin Revenge</a>
<a class="game" id="game458">Dummy Never Fails</a>
<a class="game" id="game459">Dummy Never Fails 2</a>
<a class="game" id="game455">Fancy Pants Adventures 2</a>
<a class="game" id="game456">Fancy Pants Adventures 3</a>
<a class="game" id="game457">Galaga</a>
<a class="game" id="game460">Gunblood</a>
<a class="game" id="game474">Gun Mayhem</a>
<a class="game" id="game475">Gun Mayhem 2</a>
<a class="game" id="game476">Gun Mayhem Redux</a>
<a class="game" id="game477">Icycle</a>
<a class="game" id="game461">Learn to fly 2</a>
<a class="game" id="game478">Monster Truck Destroyer</a>
<a class="game" id="game462">Papa's Bakeria</a>
<a class="game" id="game463">Papa's Cheeseria</a>
<a class="game" id="game464">Papa's Cupcakeria</a>
<a class="game" id="game465">Papa's Donuteria</a>
<a class="game" id="game466">Papa's Freezeria</a>
<a class="game" id="game467">Papa's Hot Doggeria</a>
<a class="game" id="game468">Papa's Pancakeria</a>
<a class="game" id="game469">Papa's Pastaria</a>
<a class="game" id="game470">Papa's Scooperia</a>
<a class="game" id="game471">Papa's Sushiria</a>
<a class="game" id="game472">Papa's Taco Mia</a>
<a class="game" id="game473">Papa's Wingeria</a>
<a class="game" id="game479">Pokemon Emerald</a>
<a class="game" id="game480">Pokemon Emerald 2</a>
<a class="game" id="game481">Pokemon Firered</a>
</div>
<div class="ad-container">
<!-- MacVG homepage ads -->
<ins
class="adsbygoogle"
data-ad-client="ca-pub-5598129470490010"
data-ad-slot="3087664545"
data-ad-format="auto"
data-full-width-responsive="true"
></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>
</div>
<footer class="footer">
© 2024 <a href="/">MacWeb</a
><span style="color: black; user-select: none; background-color: black"
>MacVG</span
>
All rights reserved<br />
Have fun playing these unblocked fun games!🎮🎮🎮<br
style="margin-bottom: 10px"
/>
<a
href="https://github.com/Mac-Web/macvg"
target="_blank"
style="padding-inline: 10px; text-decoration: underline"
>GitHub</a
>
<a
href="https://www.youtube.com/channel/UCE2BzeKnoYbaL4B2Iidz2ag"
target="_blank"
style="padding-inline: 10px; text-decoration: underline"
>YouTube</a
>
<a
href="https://www.youtube.com/watch?v=xvFZjo5PgG0"
target="_blank"
style="padding-inline: 10px; text-decoration: underline"
>More games!</a
>
</footer>
<script src="app.js"></script>
<script>
let newArray = [];
let everythingArray = [];
let data;
fetch("games.json")
.then((response) => response.json())
.then((dataa) => {
data = dataa.games;
for (var i = 0; i < data.length; i++) {
newArray.push(data[i]);
}
everythingArray = newArray;
const games = document.querySelectorAll(".game");
games.forEach((gamee) => {
everythingArray.forEach((game) => {
if (gamee.id.slice(4) == game.id) {
gamee.style.backgroundImage = `linear-gradient(
rgba(40, 40, 40, 0.2),
rgba(20, 20, 20, 0.9)
),
url("${game.link + game.thumb}")`;
}
});
gamee.removeAttribute("href");
gamee.addEventListener("click", () => {
const params = new URLSearchParams({
target: gamee.id.slice(4),
});
window.location.href = `game.html?${params.toString()}`;
});
});
})
.catch((error) => console.error("Error fetching data:", error));
</script>
</body>
</html>