Gronkh Games jetzt mit Videoanzahl
This commit is contained in:
@@ -299,7 +299,7 @@
|
||||
<input type="text" id="search-input" placeholder="Spielname eingeben..." aria-label="Spielname eingeben">
|
||||
<button id="search-button">Suchen</button>
|
||||
</div>
|
||||
<p class="update-info">Spieleliste zuletzt aktualisiert am 10.03.2025</p>
|
||||
<p class="update-info">Spieleliste zuletzt aktualisiert am 11.03.2025</p>
|
||||
</div>
|
||||
|
||||
<div class="game-section">
|
||||
@@ -429,7 +429,8 @@
|
||||
newestGames.forEach(game => {
|
||||
const li = document.createElement('li');
|
||||
li.className = 'game-item';
|
||||
li.innerHTML = `<a href="${game.url}" target="_blank">${game.title}</a>`;
|
||||
const videoCountText = game.videoCount === 0 ? "(Keine Videos)" : `(${game.videoCount} Video${game.videoCount !== 1 ? 's' : ''})`;
|
||||
li.innerHTML = `<a href="${game.url}" target="_blank">${game.title} ${videoCountText}</a>`;
|
||||
newestList.appendChild(li);
|
||||
});
|
||||
}
|
||||
@@ -450,7 +451,8 @@
|
||||
randomGames.forEach(game => {
|
||||
const li = document.createElement('li');
|
||||
li.className = 'game-item';
|
||||
li.innerHTML = `<a href="${game.url}" target="_blank">${game.title}</a>`;
|
||||
const videoCountText = game.videoCount === 0 ? "(Keine Videos)" : `(${game.videoCount} Video${game.videoCount !== 1 ? 's' : ''})`;
|
||||
li.innerHTML = `<a href="${game.url}" target="_blank">${game.title} ${videoCountText}</a>`;
|
||||
randomList.appendChild(li);
|
||||
});
|
||||
}
|
||||
@@ -522,7 +524,8 @@
|
||||
const game = matchingGames[i];
|
||||
const li = document.createElement('li');
|
||||
li.className = 'game-item';
|
||||
li.innerHTML = `<a href="${game.url}" target="_blank">${game.title}</a>`;
|
||||
const videoCountText = game.videoCount === 0 ? "(Keine Videos)" : `(${game.videoCount} Video${game.videoCount !== 1 ? 's' : ''})`;
|
||||
li.innerHTML = `<a href="${game.url}" target="_blank">${game.title} ${videoCountText}</a>`;
|
||||
resultsList.appendChild(li);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user