(gameName)
| 15 | |
| 16 | // Game navigation |
| 17 | function navigateToGame(gameName) { |
| 18 | if (!gameName) return; |
| 19 | |
| 20 | const isStatic = document.body.hasAttribute("data-static-mode"); |
| 21 | const url = isStatic |
| 22 | ? `/game/${gameName}.html` |
| 23 | : `/?folder=${encodeURIComponent(gameName)}`; |
| 24 | window.location.href = url; |
| 25 | } |
| 26 | |
| 27 | function navigateToPreviousGame() { |
| 28 | const prevBtn = document.getElementById("prev-game-btn"); |
nothing calls this directly
no outgoing calls
no test coverage detected