Skip to content

Commit

Permalink
fixed games
Browse files Browse the repository at this point in the history
  • Loading branch information
Thedogecraft committed May 15, 2024
1 parent 197877a commit d62d9ec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion public/play.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ <h1 id="gameName"></h1>
gameNameElement.textContent = game.name;

const gameFrame = document.getElementById('gameFrame');
gameFrame.src = `https://gpsd.onrender.com/${gameUrl}/`;
gameFrame.src = `https://stop-looking-you-skid.onrender.com/${gameUrl}/`;
} else {
console.error('Game not found');
}
Expand Down
4 changes: 2 additions & 2 deletions public/projects.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ <h3>Request a Game</h3>
const gameElement = document.createElement('div');
gameElement.classList.add('game');
gameElement.innerHTML = `
<img loading="lazy" src="https://gpsd.onrender.com/${game.url}/${game.image}" alt="${game.name}" width="100">
<img loading="lazy" src="https://stop-looking-you-skid.onrender.com/${game.url}/${game.image}" alt="${game.name}" width="100">
<h3>${game.name}</h3>
<button class="favbutton" onclick="toggleFavorite('${game.name}')">${isFavorite(game.name) ? '<i class="ti ti-heart-filled"></i>' : '<i class="ti ti-heart"></i>'}</button>
`;
Expand Down Expand Up @@ -93,7 +93,7 @@ <h3>${game.name}</h3>
const favoriteElement = document.createElement('div');
favoriteElement.classList.add('game', 'favorites');
favoriteElement.innerHTML = `
<img src="https://gpsd.onrender.com/${favoriteGame.url}/${favoriteGame.image}" alt="${favorite}" width="100">
<img src="https://stop-looking-you-skid.onrender.com/${favoriteGame.url}/${favoriteGame.image}" alt="${favorite}" width="100">
<h3>${favorite}</h3>
<button class="favbutton" onclick="toggleFavorite('${favorite}')"><i class="ti ti-heart-filled"></i></button>
`;
Expand Down

0 comments on commit d62d9ec

Please sign in to comment.