Add first-class <noscript/> support to Supported Games page. Also fix css issue where the game title did not display a cursor:pointer when hovered.

This commit is contained in:
Chris Wilson
2023-10-02 21:40:31 -04:00
parent 6b48f9aac5
commit 4c06d1193a
3 changed files with 48 additions and 2 deletions

View File

@@ -1,4 +1,5 @@
window.addEventListener('load', () => {
document.getElementById('js-enabled').style.display = 'block';
const gameHeaders = document.getElementsByClassName('collapse-toggle');
Array.from(gameHeaders).forEach((header) => {
const gameName = header.getAttribute('data-game');

View File

@@ -24,6 +24,10 @@
cursor: pointer;
}
#games h2 .game-name{
cursor: pointer;
}
#games p.collapsed{
display: none;
}
@@ -51,3 +55,7 @@
#games #page-controls button{
margin-left: 0.5rem;
}
#games #js-enabled{
display: none;
}