-
Notifications
You must be signed in to change notification settings - Fork 180
/
Copy pathtrending.html
283 lines (281 loc) · 9.47 KB
/
trending.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
<!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">Trending | 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="Trending Games">Trending Games</div>
<div
class="sub"
style="
width: 65%;
margin-inline: 17.5%;
text-align: left;
line-height: 30px;
"
>
Here are the top 10 games on MacVG right now, sorted by total plays!
Now you can see and play what's trending and what everybody's playing,
all easily through the Trending tab! (This list updates every season)
</div>
</header>
<h2 style="margin-bottom: 60px">Top 10 games in winter</h2>
<div
class="games-container"
style="flex-direction: column; align-items: center; margin-bottom: 50px"
>
<div
class="trend-des"
style="
font-size: 40px;
color: gold;
text-shadow: 0px 0px 8px rgb(75, 75, 75);
padding-bottom: 10px;
"
>
<div class="position">#1</div>
<div class="stats">14,363 Plays</div>
</div>
<a
href="/macvg/projects/basketball-stars/"
class="game special-st"
id="game26"
>
Basketball Stars
</a>
</div>
<div class="games-container">
<div class="trend-des">
<div class="position">#2</div>
<div class="stats">13,159 Plays</div>
</div>
<a href="/macvg/projects/minecraft-15/" class="game" id="game146">
Minecraft 1.5 (Eaglecraft)
</a>
</div>
<div class="games-container">
<a href="/macvg/projects/tag/" class="game" id="game316"> Tag </a>
<div class="trend-des">
<div class="position">#3</div>
<div class="stats">12,901 Plays</div>
</div>
</div>
<div class="games-container">
<div class="trend-des">
<div class="position">#4</div>
<div class="stats">12,830 Plays</div>
</div>
<a href="/macvg/projects/cookie-clicker/" class="game" id="game53">
Cookie Clicker
</a>
</div>
<div class="games-container">
<a href="/macvg/projects/slope/" class="game" id="game205">Slope</a>
<div class="trend-des">
<div class="position">#5</div>
<div class="stats">12,276 Plays</div>
</div>
</div>
<div class="games-container">
<div class="trend-des">
<div class="position">#6</div>
<div class="stats">12,238 Plays</div>
</div>
<a href="/macvg/projects/1v1lol/" class="game" id="game2">1v1.LOL</a>
</div>
<div class="games-container">
<a href="/macvg/projects/drive-mad/" class="game" id="game75">
Drive Mad
</a>
<div class="trend-des">
<div class="position">#7</div>
<div class="stats">11,938 Plays</div>
</div>
</div>
<div class="games-container">
<div class="trend-des">
<div class="position">#8</div>
<div class="stats">11,324 Plays</div>
</div>
<a href="/macvg/projects/basket-random/" class="game" id="game294"
>Basket Random</a
>
</div>
<div class="games-container">
<a href="/macvg/projects/bitlife/" class="game" id="game30">
BitLife
</a>
<div class="trend-des">
<div class="position">#9</div>
<div class="stats">10,668 Plays</div>
</div>
</div>
<div class="games-container">
<div class="trend-des">
<div class="position">#10</div>
<div class="stats">10,082 Plays</div>
</div>
<a href="/macvg/projects/retro-bowl/" class="game" id="game184"
>Retro Bowl</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>