diff --git a/games/flash/index.html b/games/flash/index.html index e660723b..d5ad70da 100644 --- a/games/flash/index.html +++ b/games/flash/index.html @@ -1,56 +1,64 @@ - - - Flash Player - - - -
- - + - - \ No newline at end of file + function load(game) { + window.RufflePlayer = window.RufflePlayer || {}; + window.addEventListener("load", (event) => { + const ruffle = window.RufflePlayer.newest(); + const player = ruffle.createPlayer(); + const container = document.getElementById("ruffle"); + player.id = "player"; + player.style.width = "100%"; + player.style.height = "100%"; + container.appendChild(player) + player.load(game); + }); + } + + + +