add impossible quiz 4 testing
This commit is contained in:
BIN
impossiblequiz.swf
Normal file
BIN
impossiblequiz.swf
Normal file
Binary file not shown.
34
index.html
Normal file
34
index.html
Normal file
@@ -0,0 +1,34 @@
|
||||
<!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>
|
||||
Reference in New Issue
Block a user