Skip to content

Commit 4cdf4eb

Browse files
authoredFeb 8, 2025··
You can now link other versions of the game
1 parent 02c744a commit 4cdf4eb

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed
 

‎scripts/script.js

+8-1
Original file line numberDiff line numberDiff line change
@@ -89,5 +89,12 @@ function loadGameDetails(jsonPath) {
8989
ageVal.title = "Age Restriction";
9090
movementContainer.appendChild(ageVal);
9191
}
92+
if (game.otherversion && game.otherlink) {
93+
const otherStr = document.createElement("img");
94+
otherStr.src = "../images/otherversions.png";
95+
otherStr.title = "This game has another version - " + game.otherversion;
96+
otherStr.onclick = () => window.location.href = game.otherlink;
97+
movementContainer.appendChild(otherStr);
98+
}
9299
});
93-
}
100+
}

0 commit comments

Comments
 (0)
Please sign in to comment.