From 2b0f983ba71e32ec0761a90592052c6a7ab41373 Mon Sep 17 00:00:00 2001
From: avscs <(none)>
Date: Sat, 10 May 2025 16:32:10 -0400
Subject: [PATCH] fix
---
games/flash/index.html | 110 ++++++++++++++++++++++-------------------
1 file changed, 59 insertions(+), 51 deletions(-)
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);
+ });
+ }
+
+