Create index.html

This commit is contained in:
sky 2023-09-28 08:45:45 -04:00 committed by GitHub
parent 01df2d5e86
commit 388340328f

27
papasburgeria/index.html Normal file
View File

@ -0,0 +1,27 @@
<html>
<head>
<script src="/js/all.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Papas Burgeria</title>
<style>html{background-color:#000;}</style>
</head>
<body>
<div id="ruffle" width="100%" height="100%"></div>
<script src="https://unpkg.com/@ruffle-rs/ruffle"></script>
<script>
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("papasburgeria.swf");
});
</script>
</body>
</html>