forked from craep0/gn-math.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
138 lines (133 loc) · 6.54 KB
/
Copy pathindex.html
File metadata and controls
138 lines (133 loc) · 6.54 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
<!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://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5521219086088837" crossorigin="anonymous"></script>
<script async="" src="https://www.googletagmanager.com/gtag/js?id=G-WX5VS54ZDW"></script>
<meta name="google-adsense-account" content="ca-pub-5521219086088837">
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag('js', new Date());
gtag('config', 'G-WX5VS54ZDW');
</script>
<script async src="https://fundingchoicesmessages.google.com/i/pub-5521219086088837?ers=1"></script><script>(function() {function signalGooglefcPresent() {if (!window.frames['googlefcPresent']) {if (document.body) {const iframe = document.createElement('iframe'); iframe.style = 'width: 0; height: 0; border: none; z-index: -1000; left: -1000px; top: -1000px;'; iframe.style.display = 'none'; iframe.name = 'googlefcPresent'; document.body.appendChild(iframe);} else {setTimeout(signalGooglefcPresent, 0);}}}signalGooglefcPresent();})();</script>
<script src="https://cdn.jsdelivr.net/gh/gn-math/gn-math.github.io@main/gnmath.js"></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">
</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>
</select>
</div>
<div class="control-buttons">
<button id="settings" style="background-color: var(--primary-color); color: white; border: none; border-radius: 4px; padding: 0.5rem 1rem; font-size: 16px; cursor: pointer;">Settings</button>
</div>
</div>
</header>
<ins class="adsbygoogle"
style="display:block; text-align:center;"
data-ad-client="ca-pub-5521219086088837"
data-ad-slot="5549138288"
data-ad-format="auto"
data-full-width-responsive="true"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
<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>
<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>
<ins class="adsbygoogle"
style="display:block; text-align:center;"
data-ad-client="ca-pub-5521219086088837"
data-ad-slot="5549138288"
data-ad-format="auto"
data-full-width-responsive="true"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
<footer>
<div class="footer-links">
<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>
</footer>
<script src="script.js"></script>
<script>
const search = new URLSearchParams(window.location.search);
const privacy = search.get('privacy');
if (privacy) {
loadPrivacy();
}
</script>
</body>
</html>