MCPcopy Create free account
hub / github.com/CodeClash-ai/CodeClash / navigateToGame

Function navigateToGame

codeclash/viewer/static/js/app.js:17–25  ·  view source on GitHub ↗
(gameName)

Source from the content-addressed store, hash-verified

15
16// Game navigation
17function 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
27function navigateToPreviousGame() {
28 const prevBtn = document.getElementById("prev-game-btn");

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected