GameExpo23/GameExpo/website/static/js/games.js
2023-06-11 20:44:00 +01:00

6 lines
180 B
JavaScript

function keepRatio() {
let games = document.querySelectorAll(".game-box");
games.forEach((game) => {
game.style.height = (game.offsetWidth * 1.5) + "px";
});
}