forked from selenite-cc/selenite-old
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
28 lines (25 loc) · 849 Bytes
/
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
<html>
<head>
<script src="/js/all.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Age of War</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("Age of War.swf");
});
</script>
</body>
</html>