change featured game

This commit is contained in:
Russell2259
2024-02-09 17:54:28 +00:00
parent 7a466eb073
commit b6e7612634
3 changed files with 4 additions and 4 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 MiB

+3 -3
View File
@@ -138,13 +138,13 @@ if (location.pathname === '/') {
fetch('/api/games')
.then(res => res.json())
.then(games => {
const gameName = '99 Balls 3D';
const gameName = 'Run 3';
const game = games.all.filter(g => g.name === gameName)[0];
document.querySelector('.featured').addEventListener('click', () => {
document.body.style.opacity = '0.7';
umami.track('featured-game_' + game.name);
umami.track('game-' + game.name);
setTimeout(() => {
if (isValidURL(game.target)) createViewPage({
@@ -159,7 +159,7 @@ if (location.pathname === '/') {
}, 1000);
});
document.querySelector('.featured').src = '/assets/img/wide/99balls.png';
document.querySelector('.featured').src = '/assets/img/wide/run3.png';
}).catch(e => new PolarisError('Failed to load featured game.'));
const logHeight = () => {
+1 -1
View File
@@ -24,7 +24,7 @@
<div class="right">
<span class="item" id="return">
<i class="fa-solid fa-caret-left fa-lg"></i> <!-- Russell please don't change this back, ty. -->
<i class="fa-solid fa-angle-left"></i>
</span>
<span class="item" id="fullscreen">