Skip to content

Commit

Permalink
Update main.html
Browse files Browse the repository at this point in the history
  • Loading branch information
SeaN0X authored Oct 9, 2024
1 parent 038a599 commit dfecd31
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions main.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,20 +50,22 @@

if (game_exists) {
window.RufflePlayer = window.RufflePlayer || {};
window.addEventListener("load", (event) => {
const ruffle = window.RufflePlayer.newest();
const player = ruffle.createPlayer();
const container = document.getElementById("container");
container.appendChild(player);
player.load(`/games/${game}`);
});

const ruffle = window.RufflePlayer.newest();
const player = ruffle.createPlayer();
const container = document.getElementById("container");
container.appendChild(player);
player.load(`/games/${game}`);

} else {
document.getElementById("status").innerText = "O jogo indicado não está disponível.";
}
}



window.addEventListener("load", (event) => {
Load()
}

</script>
<h3 id="status"></h3>
Expand Down

0 comments on commit dfecd31

Please sign in to comment.