@arcade-v/arcade_v 1.0.0 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,174 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Quadrilaterals</title>
7
+ <style>
8
+ body {
9
+ font-family: Arial, sans-serif;
10
+ margin: 20px;
11
+ background-color: #f0f8ff;
12
+ line-height: 1.6;
13
+ }
14
+ h1, h2 {
15
+ color: #2c3e50;
16
+ text-align: center;
17
+ }
18
+ .quadrilaterals {
19
+ display: flex;
20
+ flex-wrap: wrap;
21
+ justify-content: center;
22
+ gap: 40px;
23
+ margin-top: 30px;
24
+ }
25
+ .shape-box {
26
+ text-align: center;
27
+ width: 150px;
28
+ }
29
+ .shape {
30
+ margin: 10px auto;
31
+ display: block;
32
+ width: 100px;
33
+ height: 100px;
34
+ position: relative;
35
+ }
36
+
37
+ /* Square */
38
+ .square {
39
+ background-color: #ff6666;
40
+ }
41
+
42
+ /* Rectangle */
43
+ .rectangle {
44
+ background-color: #66ccff;
45
+ width: 120px;
46
+ height: 80px;
47
+ }
48
+
49
+ /* Parallelogram */
50
+ .parallelogram {
51
+ background-color: #ffcc66;
52
+ width: 120px;
53
+ height: 80px;
54
+ transform: skew(20deg);
55
+ }
56
+
57
+ /* Rhombus */
58
+ .rhombus {
59
+ background-color: #99cc66;
60
+ width: 100px;
61
+ height: 100px;
62
+ transform: rotate(45deg);
63
+ }
64
+
65
+ /* Trapezoid */
66
+ .trapezoid {
67
+ width: 120px;
68
+ height: 0;
69
+ border-bottom: 80px solid #cc99ff;
70
+ border-left: 20px solid transparent;
71
+ border-right: 20px solid transparent;
72
+ }
73
+
74
+ /* Kite */
75
+ .kite {
76
+ width: 0;
77
+ height: 0;
78
+ border-left: 50px solid transparent;
79
+ border-right: 50px solid transparent;
80
+ border-bottom: 80px solid #ff99cc;
81
+ position: relative;
82
+ }
83
+ .kite::after {
84
+ content: '';
85
+ position: absolute;
86
+ top: 40px;
87
+ left: -50px;
88
+ width: 0;
89
+ height: 0;
90
+ border-left: 50px solid transparent;
91
+ border-right: 50px solid transparent;
92
+ border-top: 80px solid #ff99cc;
93
+ }
94
+
95
+ /* Quiz Styles */
96
+ .quiz {
97
+ margin-top: 50px;
98
+ padding: 20px;
99
+ border: 2px solid #2c3e50;
100
+ border-radius: 10px;
101
+ background-color: #ecf0f1;
102
+ max-width: 500px;
103
+ margin-left: auto;
104
+ margin-right: auto;
105
+ text-align: center;
106
+ }
107
+ button {
108
+ margin: 5px;
109
+ padding: 8px 15px;
110
+ border-radius: 5px;
111
+ border: none;
112
+ background-color: #3498db;
113
+ color: white;
114
+ cursor: pointer;
115
+ }
116
+ </style>
117
+ </head>
118
+ <body>
119
+
120
+ <h1>Quadrilaterals</h1>
121
+ <p style="text-align:center;">A quadrilateral is a polygon with <strong>four sides</strong> and <strong>four angles</strong>. The sum of its interior angles is always <strong>360°</strong>.</p>
122
+
123
+ <h2>Types of Quadrilaterals</h2>
124
+ <div class="quadrilaterals">
125
+ <div class="shape-box">
126
+ <div class="shape square"></div>
127
+ <p>Square</p>
128
+ </div>
129
+ <div class="shape-box">
130
+ <div class="shape rectangle"></div>
131
+ <p>Rectangle</p>
132
+ </div>
133
+ <div class="shape-box">
134
+ <div class="shape parallelogram"></div>
135
+ <p>Parallelogram</p>
136
+ </div>
137
+ <div class="shape-box">
138
+ <div class="shape rhombus"></div>
139
+ <p>Rhombus</p>
140
+ </div>
141
+ <div class="shape-box">
142
+ <div class="shape trapezoid"></div>
143
+ <p>Trapezoid</p>
144
+ </div>
145
+ <div class="shape-box">
146
+ <div class="shape kite"></div>
147
+ <p>Kite</p>
148
+ </div>
149
+ </div>
150
+
151
+ <div class="quiz">
152
+ <h2>Quiz</h2>
153
+ <p>Which quadrilateral has all sides equal and all angles 90°?</p>
154
+ <button onclick="checkAnswer('square')">Square</button>
155
+ <button onclick="checkAnswer('rectangle')">Rectangle</button>
156
+ <button onclick="checkAnswer('rhombus')">Rhombus</button>
157
+ <p id="quizResult"></p>
158
+ </div>
159
+
160
+ <script>
161
+ function checkAnswer(answer) {
162
+ const result = document.getElementById('quizResult');
163
+ if (answer === 'square') {
164
+ result.textContent = "Correct! A square has all sides equal and all angles 90°.";
165
+ result.style.color = "green";
166
+ } else {
167
+ result.textContent = "Incorrect. Try again!";
168
+ result.style.color = "red";
169
+ }
170
+ }
171
+ </script>
172
+ <script src="https://cdn.jsdelivr.net/npm/@arcade-v/arcade_v/navigation/games/loadsite.js"></script>
173
+ </body>
174
+ </html>
@@ -0,0 +1,71 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>The Water Cycle</title>
7
+ <style>
8
+ body {
9
+ font-family: Arial, sans-serif;
10
+ line-height: 1.6;
11
+ background-color: #000080;
12
+ margin: 20px;
13
+ }
14
+
15
+ h1 {
16
+ color: #0000FF;
17
+ }
18
+
19
+ .section {
20
+ background: #000000;
21
+ color: #e0f7fa;
22
+ padding: 15px;
23
+ margin-bottom: 20px;
24
+ border-radius: 8px;
25
+ box-shadow: 0 2px 5px rgba(0,0,0,0.1);
26
+ }
27
+
28
+ img {
29
+ max-width: 100%;
30
+ height: auto;
31
+ border-radius: 5px;
32
+ }
33
+ </style>
34
+ </head>
35
+ <body>
36
+
37
+ <h1>The Water Cycle</h1>
38
+
39
+ <div class="section">
40
+ <p>The water cycle, also known as the hydrologic cycle, describes how water moves through the Earth's atmosphere, surface, and underground. It plays a vital role in weather patterns and supports all life forms.</p>
41
+ </div>
42
+
43
+ <div class="section">
44
+ <h2>1. Evaporation</h2>
45
+ <p>Water from oceans, rivers, and lakes heats up from the sun and turns into water vapor, rising into the atmosphere.</p>
46
+ </div>
47
+
48
+ <div class="section">
49
+ <h2>2. Condensation</h2>
50
+ <p>As water vapor rises and cools, it changes back into liquid droplets, forming clouds.</p>
51
+ </div>
52
+
53
+ <div class="section">
54
+ <h2>3. Precipitation</h2>
55
+ <p>When clouds get heavy with water droplets, they release them as rain, snow, sleet, or hail back to the Earth's surface.</p>
56
+ </div>
57
+
58
+ <div class="section">
59
+ <h2>4. Collection</h2>
60
+ <p>Precipitated water collects in bodies of water like rivers, lakes, and oceans. Some also soaks into the ground and becomes groundwater.</p>
61
+ </div>
62
+
63
+ <div class="section">
64
+ <h2>Diagram of the Water Cycle</h2>
65
+ <img src="https://upload.wikimedia.org/wikipedia/commons/thumb/b/b1/Diagram_of_the_Water_Cycle.jpg/1200px-Diagram_of_the_Water_Cycle.jpg" alt="Water Cycle Diagram">
66
+ </div>
67
+ <script src="https://cdn.jsdelivr.net/npm/@arcade-v/arcade_v/navigation/games/loadsite.js"></script>
68
+ </body>
69
+ </html>
70
+
71
+
@@ -44,6 +44,24 @@
44
44
  ],
45
45
  "mode": "A"
46
46
  },
47
+ {
48
+ "title": "Linux",
49
+ "image": "https://cdn.jsdelivr.net/gh/arcade-v/images/apps/linux.png",
50
+ "url": "https://cdn.jsdelivr.net/gh/arcade-v/apps/linux.html",
51
+ "category": [
52
+ "App"
53
+ ],
54
+ "mode": "A"
55
+ },
56
+ {
57
+ "title": "Nautilus OS",
58
+ "image": "https://cdn.jsdelivr.net/gh/arcade-v/images/apps/nautilus_OS.png",
59
+ "url": "https://cdn.jsdelivr.net/gh/arcade-v/apps/nautilus_OS.html",
60
+ "category": [
61
+ "App"
62
+ ],
63
+ "mode": "A"
64
+ },
47
65
  {
48
66
  "title": "Ruffle",
49
67
  "image": "https://cdn.jsdelivr.net/gh/arcade-v/images/apps/ruffle.avif",
@@ -53,6 +71,15 @@
53
71
  ],
54
72
  "mode": "A"
55
73
  },
74
+ {
75
+ "title": "Sandstone",
76
+ "image": "https://cdn.jsdelivr.net/gh/arcade-v/images/apps/sandstone.png",
77
+ "url": "https://cdn.jsdelivr.net/gh/arcade-v/apps/sandstone.html",
78
+ "category": [
79
+ "App"
80
+ ],
81
+ "mode": "A"
82
+ },
56
83
  {
57
84
  "title": "Scratch Loader GX",
58
85
  "image": "https://cdn.jsdelivr.net/gh/arcade-v/images/apps/scratchloadergx.svg",
@@ -112,14 +139,5 @@
112
139
  "App"
113
140
  ],
114
141
  "mode": "A"
115
- },
116
- {
117
- "title": "YouTube",
118
- "image": "https://cdn.jsdelivr.net/gh/arcade-v/images/apps/youtube.jpg",
119
- "url": "https://cdn.jsdelivr.net/gh/arcade-v/apps/youtube/index.html",
120
- "category": [
121
- "App"
122
- ],
123
- "mode": "A"
124
142
  }
125
143
  ]
@@ -1,177 +1 @@
1
- let appsData = [];
2
- let currentPage = 1;
3
- const itemsPerPage = 24;
4
- let filteredGames = [];
5
- let favorites = JSON.parse(localStorage.getItem("favorites")) || [];
6
-
7
- async function fetchGames(jsonUrl) {
8
- try {
9
- const response = await fetch(`${jsonUrl}?_=${Date.now()}`, { cache: "no-store" });
10
-
11
- if (!response.ok) throw new Error(`HTTP error! Status: ${response.status}`);
12
-
13
- appsData = await response.json();
14
- filteredGames = [...appsData];
15
- renderPage();
16
- } catch (error) {
17
- console.error("❌ Failed to load games data:", error);
18
- const container = document.getElementById("gameButtons");
19
- if (container)
20
- container.innerHTML = "<p>Failed to load games. Please try again.</p>";
21
- }
22
- }
23
-
24
- function renderPage() {
25
- const container = document.getElementById("gameButtons");
26
- container.innerHTML = "";
27
-
28
- const start = (currentPage - 1) * itemsPerPage;
29
- const end = start + itemsPerPage;
30
- const gamesToDisplay = filteredGames.slice(start, end);
31
-
32
- // ✅ If no games found, reset page count to 1 and stop rendering pagination
33
- if (gamesToDisplay.length === 0) {
34
- currentPage = 1; // <-- Reset page count
35
- const freshGames = filteredGames.slice(0, itemsPerPage);
36
-
37
- if (freshGames.length === 0) {
38
- // ✅ Still no games at all → show message
39
- container.innerHTML = "<p>No games found.</p>";
40
- document.getElementById("paginationControls").innerHTML = "";
41
- return;
42
- }
43
-
44
- // ✅ If there ARE games on the first page, render them
45
- freshGames.forEach((game) => {
46
- const gameItem = document.createElement("div");
47
- gameItem.className = "game-button";
48
-
49
- const isFavorite = favorites.includes(game.title);
50
- const star = isFavorite ? "⭐" : "☆";
51
-
52
- let onclickCall = "";
53
- if (Array.isArray(game.functions)) {
54
- onclickCall = game.functions
55
- .map((fn) => {
56
- const params = fn.params.map((p) => `'${p}'`).join(",");
57
- return `${fn.name}(${params})`;
58
- })
59
- .join(";");
60
- } else {
61
- onclickCall = `handleGameClick('${game.url}', '${game.mode}')`;
62
- }
63
-
64
- gameItem.innerHTML = `
65
- <button onclick="${onclickCall}" aria-label="${game.title}">
66
- <img src="${game.image}" alt="${game.title}" loading="lazy">
67
- </button>
68
- <p class="game-title">
69
- ${game.title}
70
- <span class="favorite-icon" onclick="toggleFavorite('${game.title}')">${star}</span>
71
- </p>
72
- `;
73
-
74
- container.appendChild(gameItem);
75
- });
76
-
77
- renderPaginationControls();
78
- return;
79
- }
80
-
81
- // ✅ Normal rendering if games exist on the current page
82
- gamesToDisplay.forEach((game) => {
83
- const gameItem = document.createElement("div");
84
- gameItem.className = "game-button";
85
-
86
- const isFavorite = favorites.includes(game.title);
87
- const star = isFavorite ? "⭐" : "☆";
88
-
89
- let onclickCall = "";
90
- if (Array.isArray(game.functions)) {
91
- onclickCall = game.functions
92
- .map((fn) => {
93
- const params = fn.params.map((p) => `'${p}'`).join(",");
94
- return `${fn.name}(${params})`;
95
- })
96
- .join(";");
97
- } else {
98
- onclickCall = `handleGameClick('${game.url}', '${game.mode}')`;
99
- }
100
-
101
- gameItem.innerHTML = `
102
- <button onclick="${onclickCall}" aria-label="${game.title}">
103
- <img src="${game.image}" alt="${game.title}" loading="lazy">
104
- </button>
105
- <p class="game-title">
106
- ${game.title}
107
- <span class="favorite-icon" onclick="toggleFavorite('${game.title}')">${star}</span>
108
- </p>
109
- `;
110
-
111
- container.appendChild(gameItem);
112
- });
113
-
114
- renderPaginationControls();
115
- }
116
-
117
- function applyFilters() {
118
- const searchTerm = document.getElementById("searchBar").value.toLowerCase();
119
- const selectedCategory = document.getElementById("categorySelect").value;
120
- const showFavorites = document.getElementById("showFavorites").checked;
121
-
122
- filteredGames = appsData.filter((game) => {
123
- const matchSearch = game.title.toLowerCase().includes(searchTerm);
124
- const matchCategory =
125
- selectedCategory === "All" ||
126
- (Array.isArray(game.category) && game.category.includes(selectedCategory)) ||
127
- game.category === selectedCategory;
128
- const matchFavorite = !showFavorites || favorites.includes(game.title);
129
- return matchSearch && matchCategory && matchFavorite;
130
- });
131
-
132
- currentPage = 1;
133
- renderPage();
134
- }
135
-
136
- function renderPaginationControls() {
137
- const totalPages = Math.ceil(filteredGames.length / itemsPerPage);
138
- const pagination = document.getElementById("paginationControls");
139
- pagination.innerHTML = "";
140
-
141
- for (let i = 1; i <= totalPages; i++) {
142
- const btn = document.createElement("button");
143
- btn.textContent = i;
144
- if (i === currentPage) {
145
- btn.classList.add("active-page");
146
- }
147
- btn.onclick = () => {
148
- currentPage = i;
149
- renderPage();
150
- };
151
- pagination.appendChild(btn);
152
- }
153
-
154
- window.scrollTo({ top: 0, behavior: "smooth" });
155
- }
156
-
157
- function toggleFavorite(title) {
158
- if (favorites.includes(title)) {
159
- favorites = favorites.filter((fav) => fav !== title);
160
- } else {
161
- favorites.push(title);
162
- }
163
- localStorage.setItem("favorites", JSON.stringify(favorites));
164
- renderPage();
165
- }
166
-
167
- function handleGameClick(url, mode) {
168
- console.log(`🎮 Opening ${url} in mode ${mode}`);
169
- if (mode === "A") {
170
- loadBlobContent(url);
171
- } else if (mode === "B") {
172
- changePageContent(url);
173
- } else {
174
- console.warn("Unknown mode, defaulting to Blob");
175
- loadBlobContent(url);
176
- }
177
- }
1
+ const _0x10ebf7=_0x22a2;(function(_0x24a980,_0x117cf5){const _0x1aea47={_0x4de0e7:0x1c2,_0x8b7099:0x1bc,_0x5b45dc:0x181,_0x234369:0x1a2,_0x257035:0x17e},_0x1b1d28=_0x22a2,_0x20774e=_0x24a980();while(!![]){try{const _0x74296=-parseInt(_0x1b1d28(0x1b2))/0x1+-parseInt(_0x1b1d28(0x19c))/0x2*(parseInt(_0x1b1d28(_0x1aea47._0x4de0e7))/0x3)+parseInt(_0x1b1d28(0x19e))/0x4*(-parseInt(_0x1b1d28(_0x1aea47._0x8b7099))/0x5)+parseInt(_0x1b1d28(0x184))/0x6*(parseInt(_0x1b1d28(_0x1aea47._0x5b45dc))/0x7)+-parseInt(_0x1b1d28(0x178))/0x8+-parseInt(_0x1b1d28(_0x1aea47._0x234369))/0x9*(-parseInt(_0x1b1d28(0x1c1))/0xa)+parseInt(_0x1b1d28(0x19b))/0xb*(parseInt(_0x1b1d28(_0x1aea47._0x257035))/0xc);if(_0x74296===_0x117cf5)break;else _0x20774e['push'](_0x20774e['shift']());}catch(_0x499fd7){_0x20774e['push'](_0x20774e['shift']());}}}(_0xc597,0xf0bbb));function _0x22a2(_0x2c05dc,_0x2a0dfa){_0x2c05dc=_0x2c05dc-0x178;const _0xc5973e=_0xc597();let _0x22a21d=_0xc5973e[_0x2c05dc];return _0x22a21d;}let appsData=[],currentPage=0x1;const itemsPerPage=0x18;let filteredGames=[],favorites=JSON[_0x10ebf7(0x190)](localStorage[_0x10ebf7(0x1ae)]('favorites'))||[];async function fetchGames(_0xea7716){const _0x614193={_0xb6e0e8:0x196,_0x4d30b6:0x1b6,_0x26f655:0x198},_0x25107a=_0x10ebf7;try{const _0x3551d7=await fetch(_0xea7716+_0x25107a(0x1a1)+Date[_0x25107a(0x1bb)](),{'cache':_0x25107a(_0x614193._0xb6e0e8)});if(!_0x3551d7['ok'])throw new Error(_0x25107a(_0x614193._0x4d30b6)+_0x3551d7['status']);appsData=await _0x3551d7[_0x25107a(_0x614193._0x26f655)](),filteredGames=[...appsData],renderPage();}catch(_0x4f847a){console['error'](_0x25107a(0x18c),_0x4f847a);const _0x37cc15=document[_0x25107a(0x19d)]('gameButtons');if(_0x37cc15)_0x37cc15['innerHTML']='<p>Failed\x20to\x20load\x20games.\x20Please\x20try\x20again.</p>';}}function renderPage(){const _0x8a795f={_0x320f4b:0x19d,_0x38c35a:0x1a4,_0x325170:0x1b7,_0x153e4f:0x185,_0x229de6:0x186,_0x32ae01:0x1c0,_0x48c063:0x17b,_0x3bfb47:0x1a6},_0x2b0e57={_0x6ca421:0x1ba,_0x3ab780:0x17f,_0x572939:0x1bd,_0x3f5219:0x195,_0x3c4abf:0x1b8,_0xab6005:0x1bf},_0x227c05={_0x3e9c36:0x1b0,_0x454845:0x1af,_0x3e6585:0x18e,_0x50b98c:0x193},_0x24fd4c={_0x4f1837:0x1b1,_0x182ea1:0x188,_0x5aea0f:0x189,_0x20e73d:0x1af,_0x470a78:0x17b,_0xda00b0:0x192,_0x3bbc6a:0x1b8,_0x19d0fc:0x183,_0x221659:0x1bf},_0xa50afb=_0x10ebf7,_0x58edb0=document[_0xa50afb(_0x8a795f._0x320f4b)](_0xa50afb(_0x8a795f._0x38c35a));_0x58edb0[_0xa50afb(0x17b)]='';const _0x26f5d8=(currentPage-0x1)*itemsPerPage,_0x15088d=_0x26f5d8+itemsPerPage,_0x496520=filteredGames['slice'](_0x26f5d8,_0x15088d);if(_0x496520[_0xa50afb(_0x8a795f._0x325170)]===0x0){currentPage=0x1;const _0x39c312=filteredGames[_0xa50afb(_0x8a795f._0x153e4f)](0x0,itemsPerPage);if(_0x39c312[_0xa50afb(0x1b7)]===0x0){_0x58edb0[_0xa50afb(0x17b)]=_0xa50afb(_0x8a795f._0x229de6),document[_0xa50afb(0x19d)](_0xa50afb(_0x8a795f._0x32ae01))[_0xa50afb(_0x8a795f._0x48c063)]='';return;}_0x39c312[_0xa50afb(_0x8a795f._0x3bfb47)](_0x136e3b=>{const _0x74336e={_0x54e434:0x18e},_0xc54bc5=_0xa50afb,_0x1a868b=document[_0xc54bc5(0x17d)](_0xc54bc5(_0x24fd4c._0x4f1837));_0x1a868b[_0xc54bc5(_0x24fd4c._0x182ea1)]=_0xc54bc5(_0x24fd4c._0x5aea0f);const _0x5cda8f=favorites[_0xc54bc5(0x1c3)](_0x136e3b['title']),_0x4f0cc4=_0x5cda8f?'⭐':'☆';let _0x2bd3f3='';Array['isArray'](_0x136e3b[_0xc54bc5(0x1be)])?_0x2bd3f3=_0x136e3b[_0xc54bc5(0x1be)][_0xc54bc5(_0x24fd4c._0x20e73d)](_0x43001c=>{const _0x268d50=_0xc54bc5,_0x1ecd7f=_0x43001c['params'][_0x268d50(0x1af)](_0x495430=>'\x27'+_0x495430+'\x27')[_0x268d50(_0x74336e._0x54e434)](',');return _0x43001c['name']+'('+_0x1ecd7f+')';})[_0xc54bc5(0x18e)](';'):_0x2bd3f3='handleGameClick(\x27'+_0x136e3b[_0xc54bc5(0x17a)]+'\x27,\x20\x27'+_0x136e3b[_0xc54bc5(0x17f)]+'\x27)',_0x1a868b[_0xc54bc5(_0x24fd4c._0x470a78)]=_0xc54bc5(0x1b3)+_0x2bd3f3+'\x22\x20aria-label=\x22'+_0x136e3b['title']+_0xc54bc5(0x1b4)+_0x136e3b[_0xc54bc5(0x195)]+_0xc54bc5(0x18f)+_0x136e3b[_0xc54bc5(0x1b8)]+'\x22\x20loading=\x22lazy\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<p\x20class=\x22game-title\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x136e3b[_0xc54bc5(0x1b8)]+_0xc54bc5(_0x24fd4c._0xda00b0)+_0x136e3b[_0xc54bc5(_0x24fd4c._0x3bbc6a)]+'\x27)\x22>'+_0x4f0cc4+_0xc54bc5(_0x24fd4c._0x19d0fc),_0x58edb0[_0xc54bc5(_0x24fd4c._0x221659)](_0x1a868b);}),renderPaginationControls();return;}_0x496520['forEach'](_0x29b9ba=>{const _0x359b3a=_0xa50afb,_0x1770c5=document['createElement'](_0x359b3a(0x1b1));_0x1770c5['className']='game-button';const _0x4f0799=favorites['includes'](_0x29b9ba[_0x359b3a(0x1b8)]),_0x3e3784=_0x4f0799?'⭐':'☆';let _0x5682b6='';Array[_0x359b3a(_0x2b0e57._0x6ca421)](_0x29b9ba[_0x359b3a(0x1be)])?_0x5682b6=_0x29b9ba['functions'][_0x359b3a(0x1af)](_0x278710=>{const _0xb15b32=_0x359b3a,_0x34dff7=_0x278710[_0xb15b32(_0x227c05._0x3e9c36)][_0xb15b32(_0x227c05._0x454845)](_0x24d89a=>'\x27'+_0x24d89a+'\x27')[_0xb15b32(_0x227c05._0x3e6585)](',');return _0x278710[_0xb15b32(_0x227c05._0x50b98c)]+'('+_0x34dff7+')';})[_0x359b3a(0x18e)](';'):_0x5682b6=_0x359b3a(0x1aa)+_0x29b9ba[_0x359b3a(0x17a)]+_0x359b3a(0x19a)+_0x29b9ba[_0x359b3a(_0x2b0e57._0x3ab780)]+'\x27)',_0x1770c5[_0x359b3a(0x17b)]='\x0a\x20\x20\x20\x20\x20\x20<button\x20onclick=\x22'+_0x5682b6+_0x359b3a(_0x2b0e57._0x572939)+_0x29b9ba['title']+'\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<img\x20src=\x22'+_0x29b9ba[_0x359b3a(_0x2b0e57._0x3f5219)]+_0x359b3a(0x18f)+_0x29b9ba[_0x359b3a(0x1b8)]+_0x359b3a(0x197)+_0x29b9ba[_0x359b3a(0x1b8)]+_0x359b3a(0x18d)+_0x29b9ba[_0x359b3a(_0x2b0e57._0x3c4abf)]+'\x27)\x22>'+_0x3e3784+_0x359b3a(0x1ac),_0x58edb0[_0x359b3a(_0x2b0e57._0xab6005)](_0x1770c5);}),renderPaginationControls();}function applyFilters(){const _0x3faae1={_0x535bcf:0x19d},_0x1166e1={_0x56cf7d:0x1c3,_0x240550:0x1ba,_0x51b268:0x194,_0x5eb963:0x194},_0x4a39d1=_0x10ebf7,_0x3b91e7=document['getElementById'](_0x4a39d1(0x18a))['value']['toLowerCase'](),_0x369202=document[_0x4a39d1(0x19d)](_0x4a39d1(0x17c))[_0x4a39d1(0x1b9)],_0x14a420=document[_0x4a39d1(_0x3faae1._0x535bcf)](_0x4a39d1(0x179))['checked'];filteredGames=appsData[_0x4a39d1(0x1c4)](_0x20e17c=>{const _0x349b58=_0x4a39d1,_0x515f75=_0x20e17c[_0x349b58(0x1b8)][_0x349b58(0x1b5)]()[_0x349b58(_0x1166e1._0x56cf7d)](_0x3b91e7),_0x7bcb9c=_0x369202===_0x349b58(0x1a9)||Array[_0x349b58(_0x1166e1._0x240550)](_0x20e17c['category'])&&_0x20e17c[_0x349b58(_0x1166e1._0x51b268)][_0x349b58(0x1c3)](_0x369202)||_0x20e17c[_0x349b58(_0x1166e1._0x5eb963)]===_0x369202,_0xad1f2=!_0x14a420||favorites['includes'](_0x20e17c[_0x349b58(0x1b8)]);return _0x515f75&&_0x7bcb9c&&_0xad1f2;}),currentPage=0x1,renderPage();}function renderPaginationControls(){const _0x5aa964=_0x10ebf7,_0x403154=Math[_0x5aa964(0x1ab)](filteredGames['length']/ itemsPerPage),_0x853f9=document['getElementById']('paginationControls');_0x853f9[_0x5aa964(0x17b)]='';for(let _0x3a1190=0x1;_0x3a1190<=_0x403154;_0x3a1190++){const _0x5e11cb=document['createElement'](_0x5aa964(0x18b));_0x5e11cb[_0x5aa964(0x182)]=_0x3a1190,_0x3a1190===currentPage&&_0x5e11cb[_0x5aa964(0x19f)]['add'](_0x5aa964(0x1a8)),_0x5e11cb[_0x5aa964(0x180)]=()=>{currentPage=_0x3a1190,renderPage();},_0x853f9[_0x5aa964(0x1bf)](_0x5e11cb);}window[_0x5aa964(0x1a3)]({'top':0x0,'behavior':_0x5aa964(0x1ad)});}function toggleFavorite(_0x2df159){const _0x27d98b={_0x49e772:0x1a0,_0x1bd4cf:0x199,_0x734a1a:0x1a5},_0x56ae7a=_0x10ebf7;favorites[_0x56ae7a(0x1c3)](_0x2df159)?favorites=favorites[_0x56ae7a(0x1c4)](_0x19c410=>_0x19c410!==_0x2df159):favorites['push'](_0x2df159),localStorage[_0x56ae7a(_0x27d98b._0x49e772)](_0x56ae7a(_0x27d98b._0x1bd4cf),JSON[_0x56ae7a(_0x27d98b._0x734a1a)](favorites)),renderPage();}function _0xc597(){const _0x5e8169=['mode','onclick','6362545SHDpBZ','textContent','</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</p>\x0a\x20\x20\x20\x20\x20\x20','6YsuKSi','slice','<p>No\x20games\x20found.</p>','🎮\x20Opening\x20','className','game-button','searchBar','button','❌\x20Failed\x20to\x20load\x20games\x20data:','\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22favorite-icon\x22\x20onclick=\x22toggleFavorite(\x27','join','\x22\x20alt=\x22','parse','\x20in\x20mode\x20','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22favorite-icon\x22\x20onclick=\x22toggleFavorite(\x27','name','category','image','no-store','\x22\x20loading=\x22lazy\x22>\x0a\x20\x20\x20\x20\x20\x20</button>\x0a\x20\x20\x20\x20\x20\x20<p\x20class=\x22game-title\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20','json','favorites','\x27,\x20\x27','85360YuondW','2VtIJWi','getElementById','48AOPzZu','classList','setItem','?_=','9iwgKen','scrollTo','gameButtons','stringify','forEach','Unknown\x20mode,\x20defaulting\x20to\x20Blob','active-page','All','handleGameClick(\x27','ceil','</span>\x0a\x20\x20\x20\x20\x20\x20</p>\x0a\x20\x20\x20\x20','smooth','getItem','map','params','div','194752QjhxsL','\x0a\x20\x20\x20\x20\x20\x20\x20\x20<button\x20onclick=\x22','\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<img\x20src=\x22','toLowerCase','HTTP\x20error!\x20Status:\x20','length','title','value','isArray','now','539135BvSrQg','\x22\x20aria-label=\x22','functions','appendChild','paginationControls','965320fBUYIw','5136393DMxcNx','includes','filter','1429576APpxIH','showFavorites','url','innerHTML','categorySelect','createElement','5196LJsgve'];_0xc597=function(){return _0x5e8169;};return _0xc597();}function handleGameClick(_0x1071f5,_0x1707ea){const _0x38522a=_0x10ebf7;console['log'](_0x38522a(0x187)+_0x1071f5+_0x38522a(0x191)+_0x1707ea);if(_0x1707ea==='A')loadBlobContent(_0x1071f5);else _0x1707ea==='B'?changePageContent(_0x1071f5):(console['warn'](_0x38522a(0x1a7)),loadBlobContent(_0x1071f5));}