mirror of
https://github.com/Fluffy-Bean/GameExpo23.git
synced 2025-05-18 17:34:52 +00:00
6 lines
180 B
JavaScript
6 lines
180 B
JavaScript
function keepRatio() {
|
|
let games = document.querySelectorAll(".game-box");
|
|
games.forEach((game) => {
|
|
game.style.height = (game.offsetWidth * 1.5) + "px";
|
|
});
|
|
}
|