-
Notifications
You must be signed in to change notification settings - Fork 206
Expand file tree
/
Copy pathindex.html
More file actions
200 lines (193 loc) · 6.84 KB
/
index.html
File metadata and controls
200 lines (193 loc) · 6.84 KB
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
<!doctype html>
<html lang="en">
<head>
<link rel="icon" type="image/png" href="favicon.png" />
<link rel="icon" type="image/png" sizes="32x32" href="favicon.png" />
<link rel="apple-touch-icon" href="favicon.png" />
<script>
window.addEventListener('beforeunload', function (event) {
event.preventDefault()
event.returnValue = ''
return 'Are you sure you want to leave? Any unsaved changes will be lost.'
})
</script>
<script async="" src="https://www.googletagmanager.com/gtag/js?id=G-WX5VS54ZDW"></script>
<script>
window.dataLayer = window.dataLayer || []
function gtag() {
dataLayer.push(arguments)
}
gtag('js', new Date())
gtag('config', 'G-WX5VS54ZDW')
</script>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>gn-math</title>
<meta name="title" content="GN-Math" />
<meta
name="description"
content="Play unbl*cked games like Crazy Cattle 3D and DriveMad on GN-Math. Fast, free, no downloads—perfect for school or home."
/>
<meta property="og:type" content="website" />
<meta property="og:url" content="https://gn-math.github.io/" />
<meta property="og:title" content="GN-Math" />
<meta
property="og:description"
content="Play unbl*cked games like Crazy Cattle 3D and DriveMad on GN-Math. Fast, free, no downloads—perfect for school or home."
/>
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:url" content="https://gn-math.github.io/" />
<meta name="twitter:title" content="GN-Math" />
<meta
name="twitter:description"
content="Play unbl*cked games like Crazy Cattle 3D and DriveMad on GN-Math. Fast, free, no downloads—perfect for school or home."
/>
<link rel="stylesheet" href="style.css" />
<link rel="manifest" href="manifest.json" />
<meta name="theme-color" content="#fb2651" />
</head>
<body class="dark-mode">
<header>
<div class="header-content">
<div class="logo">gn-math</div>
<div class="search-container">
<input type="text" id="searchBar" placeholder="Search zones..." oninput="filterZones()" />
<select id="sortOptions" onchange="sortZones()">
<option value="name">Name</option>
<option value="id">ID (Date)</option>
<option value="popular">Popular</option>
<option value="trendingDay">Trending (Day)</option>
<option value="trendingWeek">Trending (Week)</option>
<option value="trendingMonth">Trending (Month)</option>
</select>
<select id="filterOptions" onchange="filterZones2()">
<option value="none">(SELECT TAG)</option>
</select>
</div>
<div class="control-buttons">
<button id="refresh" class="control-button" title="Refresh all the zones" onclick="listZones()">
<img src="refresh-icon.png" alt="refresh" />
</button>
<button id="settings" class="control-button" title="Settings!">
<img src="setting.png" alt="settings" />
</button>
</div>
</div>
</header>
<main>
<details id="featuredZonesWrapper" open>
<summary id="allZonesSummary" style="font-size: 1.2rem; font-weight: bold; cursor: pointer">
Featured Zones
</summary>
<div id="featuredZones" class="zone-container"></div>
</details>
<br />
<hr />
<br />
<details id="allZonesWrapper" open>
<summary id="allSummary" style="font-size: 1.2rem; font-weight: bold; cursor: pointer">All Zones</summary>
<div id="container">Loading...</div>
</details>
</main>
<div id="zoneViewer">
<div class="zone-header">
<div class="zone-title">
<h2 id="zoneName">zone</h2>
<button class="info-button" onclick="showZoneInfo()" title="Zone Information">
<svg
xmlns="http://www.w3.org/2000/svg"
width="20"
height="20"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<circle cx="12" cy="12" r="10"></circle>
<line x1="12" y1="16" x2="12" y2="12"></line>
<line x1="12" y1="8" x2="12.01" y2="8"></line>
</svg>
</button>
<span id="zoneId" style="display: none"></span>
<a id="zoneAuthor" href="#" target="_blank">by Author</a>
</div>
<div class="zone-controls">
<button onclick="fullscreenZone()">Fullscreen</button>
<button onclick="aboutBlank()">Open in New Tab</button>
<button onclick="downloadZone()">Download</button>
<button onclick="closeZone()">Close</button>
</div>
</div>
<iframe id="zoneFrame"></iframe>
</div>
<div id="popupOverlay">
<div class="popup">
<div class="popup-header">
<h3 id="popupTitle">Title</h3>
<button id="popupClose" onclick="closePopup()">×</button>
</div>
<div id="popupBody">Content will be here</div>
</div>
</div>
<footer>
<div class="footer-links">
<a
href="#"
onclick="
loadDMCA()
return false
"
>DMCA</a
>
<a
href="#"
onclick="
showContact()
return false
"
>Contact</a
>
<a
href="#"
onclick="
loadPrivacy()
return false
"
>Privacy Policy</a
>
<a href="javascript:saveData()">Export Data</a>
<a
href="#"
onclick="
document.getElementById('importData').click()
return false
"
>Import Data</a
>
<input type="file" id="importData" style="display: none" onchange="loadData(event)" />
</div>
<div>
<script type="text/javascript">
aclib.runBanner({
zoneId: '10952070',
});
</script>
</div>
</footer>
<script src="script.js"></script>
<script>
try {
const search = new URLSearchParams(window.location.search)
const privacy = search.get('privacy')
if (privacy) {
loadPrivacy()
}
} catch (error) {}
</script>
<script>
navigator.serviceWorker.register(location.protocol + '//' + location.hostname + '/sw.js')
</script>
</body>
</html>