add happy wheels html

This commit is contained in:
2026-05-01 00:27:32 +00:00
parent 23ef46817f
commit 9c199baf48

30
g/hyw.html Normal file
View File

@@ -0,0 +1,30 @@
<!DOCTYPE html >
<script src="https://agi.armorgames.com/ruffle/ruffle.js"></script>
<html lang="en" xml:lang="en">
<head>
<title>Games4 - Happy Wheels</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="shortcut icon" type="image/x-icon" href="../images/favicon.png" />
<link rel="stylesheet" href="../styles.css">
</head>
<body>
<div class="container">
<a href="../index.html"><img src="../images/logo.png" alt="Games4" class="logo"></a>
<div class="game-container">
<script src="https://unpkg.com/@ruffle-rs/ruffle"></script>
<div id="flash-container"></div>
<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("flash-files/HappyWheels.swf"); // Replace with your filename
});
</script>
</div>
</div>
</body>
</html>