diff --git a/wwwroot/app.js b/wwwroot/app.js index a623583..7a9a1a9 100644 --- a/wwwroot/app.js +++ b/wwwroot/app.js @@ -177,7 +177,7 @@ function renderResults() { row.innerHTML = ` ${idx + 1} - ${r.screenshotUrl ? `${r.name}` : ''} + ${r.screenshotUrl ? `${r.name}` : ''}
${r.name}
${r.genre ? `
${r.genre}
` : ''} @@ -194,6 +194,9 @@ function renderResults() { tbody.appendChild(row); }); container.appendChild(table); + container.querySelectorAll(".clickable-thumb").forEach(img => { + img.addEventListener("click", () => openLightbox(img.src, img.alt)); + }); } function setupHandlers() {