Skip to content

Commit

Permalink
Merge pull request #23 from 22yeets22/patch-5
Browse files Browse the repository at this point in the history
super coool cahnge
  • Loading branch information
RedNotSus authored Apr 14, 2024
2 parents 360248b + 8513e53 commit c31dd3e
Showing 1 changed file with 6 additions and 14 deletions.
20 changes: 6 additions & 14 deletions static/assets/js/games.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,26 +8,18 @@ window.addEventListener("load", (event) => {
let gameHtml;
if (game.usesProxy) {
gameHtml = `<div class="card" style="padding-top: 5px">
<a onclick="${game.alert ? `alert('${game.alert}');` : ""} hire('${
game.url
}');">
<a onclick="${game.alert ? `Swal.fire('${game.alert}'); ` : ""}hire('${game.url}');">
<div class="image-container">
<img loading="lazy" src="${
game.image
}" style="border-radius: 25px">
<img loading="lazy" src="${game.image}" style="border-radius: 25px">
<p class="item-name">${game.name}</p>
</div>
</a>
</div>`;
} else if (!game.usesProxy) {
} else {
gameHtml = `<div class="card" style="padding-top: 5px">
<a href="${game.url}" rel="noopener noreferrer" ${
game.alert ? `onclick="alert('${game.alert}');"` : ""
}>
<a href="${game.url}" rel="noopener noreferrer" ${game.alert ? `onclick="alert('${game.alert}');"` : ""}>
<div class="image-container">
<img loading="lazy" src="${
game.image
}" style="border-radius: 25px">
<img loading="lazy" src="${game.image}" style="border-radius: 25px">
<p class="item-name">${game.name}</p>
</div>
</a>
Expand All @@ -38,6 +30,6 @@ window.addEventListener("load", (event) => {

let searchbar = document.getElementById("searchbar");
if (searchbar)
searchbar.placeholder = `Click here to search through our ${games.length} games!`;
searchbar.placeholder = `Click here or type to search through our ${games.length} games!`;
});
});

0 comments on commit c31dd3e

Please sign in to comment.