34 lines
1.2 KiB
HTML
34 lines
1.2 KiB
HTML
<!DOCTYPE html >
|
|
<script src="https://agi.armorgames.com/ruffle/ruffle.js"></script>
|
|
|
|
<html lang="en" xml:lang="en">
|
|
<head>
|
|
<title>SWF Runner</title>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
<link rel="shortcut icon" type="image/x-icon" href="images/bitbot.png" />
|
|
<style type="text/css" media="screen">
|
|
body { margin:0; padding:0; overflow:hidden; }
|
|
#flashContent { width:100%; height:100%; }
|
|
</style>
|
|
|
|
</head>
|
|
<body>
|
|
<!-- 1. Load the Ruffle library -->
|
|
<script src="https://unpkg.com/@ruffle-rs/ruffle"></script>
|
|
|
|
<!-- 2. The container where your Flash will live -->
|
|
<div id="flash-container"></div>
|
|
|
|
<!-- 3. The script to "embed" your file -->
|
|
<script>
|
|
window.RufflePlayer = window.RufflePlayer || {};
|
|
window.addEventListener("load", (event) => {
|
|
const ruffle = window.RufflePlayer.newest();
|
|
const player = ruffle.createPlayer();
|
|
const container = document.getElementById("flash-container");
|
|
container.appendChild(player);
|
|
player.load("impossiblequiz.swf"); // Replace with your filename
|
|
});
|
|
</script>
|
|
</body>
|
|
</html> |