update featured game
This commit is contained in:
@@ -1,4 +1,8 @@
|
||||
[
|
||||
{
|
||||
"date": "1/25/2024",
|
||||
"simpleDescription": "Changed featured game to 99 Balls 3D"
|
||||
},
|
||||
{
|
||||
"date": "1/24/2024",
|
||||
"simpleDescription": "Added 3 more Papa's Gameria games, added Bonk.io"
|
||||
|
||||
@@ -17,7 +17,8 @@
|
||||
{
|
||||
"name": "99 Balls 3D",
|
||||
"target": "https://gamesnacks.com/games/99balls3d",
|
||||
"image": "/cdn/images/99balls.png"
|
||||
"image": "/cdn/images/99balls.png",
|
||||
"popular": true
|
||||
},
|
||||
{
|
||||
"name": "Achievement Unlocked",
|
||||
@@ -249,8 +250,7 @@
|
||||
{
|
||||
"name": "Genshin Impact",
|
||||
"target": "https://now.gg/play/cognosphere-pte-ltd-/1773/genshin-impact.html",
|
||||
"image": "https://cdn2.steamgriddb.com/icon_thumb/73e5080f0f3804cb9cf470a8ce895dac.png",
|
||||
"popular": true
|
||||
"image": "https://cdn2.steamgriddb.com/icon_thumb/73e5080f0f3804cb9cf470a8ce895dac.png"
|
||||
},
|
||||
{
|
||||
"name": "Geometry Dash",
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 49 KiB |
@@ -28,7 +28,7 @@ const load = () => fetch('/api/apps').then(res => res.json()).then(apps => {
|
||||
el.addEventListener('click', async () => {
|
||||
document.body.style.opacity = '0.7';
|
||||
|
||||
umami.track('app-' + app.name);
|
||||
umami.track('app_' + app.name);
|
||||
|
||||
setTimeout(() => {
|
||||
if (isValidURL(app.target)) createViewPage({
|
||||
|
||||
@@ -29,7 +29,7 @@ const load = () => fetch('/api/cheats')
|
||||
el.addEventListener('click', () => {
|
||||
document.body.style.opacity = '0.7';
|
||||
|
||||
umami.track('cheat-' + cheat.name);
|
||||
umami.track('cheat_' + cheat.name);
|
||||
|
||||
setTimeout(() => {
|
||||
if (isValidURL(cheat.target)) createViewPage({
|
||||
|
||||
@@ -50,7 +50,7 @@ const load = () => {
|
||||
popularEl.addEventListener('click', async () => {
|
||||
document.body.style.opacity = '0.7';
|
||||
|
||||
umami.track('popular-game-' + game.name);
|
||||
umami.track('popular-game_' + game.name);
|
||||
|
||||
setTimeout(() => {
|
||||
if (isValidURL(game.target)) createViewPage({
|
||||
|
||||
@@ -138,13 +138,13 @@ if (location.pathname === '/') {
|
||||
fetch('/api/games')
|
||||
.then(res => res.json())
|
||||
.then(games => {
|
||||
const gameName = 'Retro Bowl';
|
||||
const gameName = '99 Balls 3D';
|
||||
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', { name: game.name });
|
||||
umami.track('featured-game_' + game.name);
|
||||
|
||||
setTimeout(() => {
|
||||
if (isValidURL(game.target)) createViewPage({
|
||||
@@ -159,7 +159,7 @@ if (location.pathname === '/') {
|
||||
}, 1000);
|
||||
});
|
||||
|
||||
document.querySelector('.featured').src = '/assets/img/wide/retrobowl.png';
|
||||
document.querySelector('.featured').src = '/assets/img/wide/99balls.jpg';
|
||||
}).catch(e => new PolarisError('Failed to load featured game.'));
|
||||
|
||||
const logHeight = () => {
|
||||
|
||||
Reference in New Issue
Block a user