Update games.js

This commit is contained in:
fowntain
2023-05-10 12:19:43 -04:00
committed by GitHub
parent f5418a662c
commit 16da76da98
+1 -1
View File
@@ -7,7 +7,7 @@ const load = () => {
games.forEach(game => {
const el = document.createElement('div');
el.classList = 'game';
el.innerHTML = `<a href="#" onclick="localStorage.setItem('currentgame', '${game.source}'); window.location.href = 'play';"><img src="${game.image}"><h3>${game.name}</h3><span>${game.desc}</span>`;
el.innerHTML = `<a href="#" onclick="localStorage.setItem('currentgame', '${game.source}'); window.location.href = 'play';"><img src="${game.image}"><h3>${game.name}</h3><span>${game.desc}</span></a>`;
document.querySelector('.games').appendChild(el);
el.addEventListener('click', () => {