change featured game
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 1.5 MiB |
@@ -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
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user