Skip to content

Commit 0dea4e8

Browse files
authored
Merge pull request #25 from ph4xus/main
jjj
2 parents 08c4c74 + 2a16a50 commit 0dea4e8

File tree

2 files changed

+172
-373
lines changed

2 files changed

+172
-373
lines changed

gxmes/index.html

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@
246246

247247

248248
.backup-section {
249-
background-color: #3e3e3e; /* Matches the navbar and game grid background */
249+
background-color: #3e3e3e; /* Matches the navbar and gxme grid background */
250250
padding: 40px 20px; /* Adds padding for better spacing */
251251
border-radius: 10px; /* Rounded corners for a modern look */
252252
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); /* Subtle shadow for depth */
@@ -329,7 +329,7 @@ <h1>Welcome to Vafor IT</h1>
329329
<div class="loading-text" id="loadingText">Loading...</div>
330330

331331
<section class="gxme-grid">
332-
<!-- Game cards will be appended here by JavaScript -->
332+
<!-- gxme cards will be appended here by JavaScript -->
333333
</section>
334334

335335
<section class="backup-section">
@@ -372,9 +372,9 @@ <h2>Backup Links</h2>
372372
.then(data => {
373373
const gxmeGrid = document.querySelector('.gxme-grid');
374374

375-
data.forEach(game => {
375+
data.forEach(gxme => {
376376
let gxmeLink = document.createElement('a');
377-
gxmeLink.href = link2 + "/gxmes/" + game.foldername;
377+
gxmeLink.href = link2 + "/gxmes/" + gxme.foldername;
378378
gxmeLink.target = '_self';
379379
gxmeLink.style.textDecoration = 'none';
380380
gxmeLink.style.color = 'inherit';
@@ -384,26 +384,26 @@ <h2>Backup Links</h2>
384384
gxmeCard.style.cursor = 'pointer';
385385

386386
let img = document.createElement('img');
387-
img.src = game.imgsrc; // Use the imgsrc from the JSON
388-
img.alt = game.name;
387+
img.src = gxme.imgsrc; // Use the imgsrc from the JSON
388+
img.alt = gxme.name;
389389
img.style.width = '100px';
390390
img.style.height = '100px';
391391

392392
let h3 = document.createElement('h3');
393-
h3.textContent = game.name; // Use the name from the JSON
393+
h3.textContent = gxme.name; // Use the name from the JSON
394394

395395
gxmeCard.appendChild(img);
396396
gxmeCard.appendChild(h3);
397397
gxmeLink.appendChild(gxmeCard);
398398
gxmeGrid.appendChild(gxmeLink);
399399
});
400400

401-
// Hide the loading text after games are loaded
401+
// Hide the loading text after gxmes are loaded
402402
loadingText.style.display = 'none';
403403
})
404404
.catch(error => {
405405
console.error('Error loading the list.json:', error);
406-
loadingText.textContent = 'Failed to load games. Please try again later.';
406+
loadingText.textContent = 'Failed to load gxmes. Please try again later.';
407407
});
408408

409409
// Search functionality
@@ -421,10 +421,10 @@ <h2>Backup Links</h2>
421421
.then(response => response.json())
422422
.then(data => {
423423
// Re-populate with only matching cards
424-
data.forEach(game => {
425-
if (game.name.toLowerCase().includes(query)) {
424+
data.forEach(gxme => {
425+
if (gxme.name.toLowerCase().includes(query)) {
426426
let gxmeLink = document.createElement('a');
427-
gxmeLink.href = link2 + "/gxmes/" + game.foldername;
427+
gxmeLink.href = link2 + "/gxmes/" + gxme.foldername;
428428
gxmeLink.target = '_self';
429429
gxmeLink.style.textDecoration = 'none';
430430
gxmeLink.style.color = 'inherit';
@@ -434,13 +434,13 @@ <h2>Backup Links</h2>
434434
gxmeCard.style.cursor = 'pointer';
435435

436436
let img = document.createElement('img');
437-
img.src = game.imgsrc;
438-
img.alt = game.name;
437+
img.src = gxme.imgsrc;
438+
img.alt = gxme.name;
439439
img.style.width = '100px';
440440
img.style.height = '100px';
441441

442442
let h3 = document.createElement('h3');
443-
h3.textContent = game.name;
443+
h3.textContent = gxme.name;
444444

445445
gxmeCard.appendChild(img);
446446
gxmeCard.appendChild(h3);
@@ -452,8 +452,8 @@ <h2>Backup Links</h2>
452452
loadingText.style.display = 'none';
453453
})
454454
.catch(error => {
455-
console.error('Error searching games:', error);
456-
loadingText.textContent = 'Failed to search games. Please try again later.';
455+
console.error('Error searching gxmes:', error);
456+
loadingText.textContent = 'Failed to search gxmes. Please try again later.';
457457
});
458458
}
459459

@@ -489,7 +489,7 @@ <h2>Backup Links</h2>
489489
function randombutton() {
490490
const links = document.querySelectorAll('section.gxme-grid a');
491491
if (links.length === 0) {
492-
alert("No games available to play.");
492+
alert("No gxmes available to play.");
493493
return;
494494
}
495495
const randomIndex = Math.floor(Math.random() * links.length);

0 commit comments

Comments
 (0)