-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
32 lines (29 loc) · 1.04 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<!DOCTYPE html>
<html>
<head>
<script src='../root.js'></script>
<script src="./ruffle.js"></script>
<title>Happy Wheels | Annotate</title>
</head>
<body style="margin: 0px">
<div id="container" style="width: 100vw; height: 100vh;"></div>
<script type="text/javascript">
function play() {
const ruffle = window.RufflePlayer.newest();
const player = ruffle.createPlayer();
player.config = {
"contextMenu": "off",
"autoplay": true,
"warnOnUnsupportedContent": false,
"allowScriptAccess": true
}
const container = document.getElementById('container');
container.appendChild(player);
player.style.cssText = 'width:100%; height: 100%;';
player.style.display = 'block';
player.load("./happywheels.swf");
}
play();
</script>
</body>
</html>