Skip to content

Commit e8c034e

Browse files
committed
scra
1 parent cc58a85 commit e8c034e

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

projects/scratch2/data/Scratch.swf

2.31 MB
Binary file not shown.

projects/scratch2/index.html

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<html>
2+
<head>
3+
<title>Scratch</title>
4+
</head>
5+
<body>
6+
<script src="https://unpkg.com/@ruffle-rs/ruffle"></script>
7+
<script src="https://unpkg.com/@ruffle-rs/ruffle"></script>
8+
9+
<div id="flash-container"></div>
10+
11+
<script>
12+
window.addEventListener("load", () => {
13+
const ruffle = window.RufflePlayer.newest();
14+
const player = ruffle.createPlayer();
15+
document.getElementById("flash-container").appendChild(player);
16+
player.load("data/Scratch.swf");
17+
});
18+
</script>
19+
20+
</body>
21+
</html>

0 commit comments

Comments
 (0)