Files
Site-Web/fun/Flash/Advent.html
T
2026-05-16 11:10:19 +02:00

41 lines
963 B
HTML
Executable File

<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<title>Star Wars</title>
<script src="../ruffle/ruffle.js"></script>
<style>
body {
background-color: #282a36;
margin: 0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
#game-container {
width: 100%;
height: 100%;
}
</style>
</head>
<body>
<!-- IMPORTANT: allowfullscreen must be here -->
<div id="game-container" allowfullscreen></div>
<script>
const ruffle = window.RufflePlayer.newest();
const player = ruffle.createPlayer();
// Enable Ruffle fullscreen API
player.style.width = "100%";
player.style.height = "100%";
document.getElementById("game-container").appendChild(player);
player.load("AdventCalendar.swf");
</script>
</body>
</html>