-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
33 lines (30 loc) · 1.02 KB
/
index.html
File metadata and controls
33 lines (30 loc) · 1.02 KB
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
33
<!DOCTYPE html>
<html>
<head>
<style>
html, body { margin: 0; padding: 0; width: 100%; height: 100%; overflow: hidden; }
#flash-embed { width: 100%; height: 100%; }
</style>
<title>Scratch 2 - Solarium Team</title>
<link rel="icon" type="image/x-icon" href="source/favicon.ico">
</head>
<body>
<object>
<embed id="flash-embed" src="scratch/Scratch.swf" />
</object>
<script src="ruffle/ruffle.js"></script>
<script>
function resizeFlash() {
const flashEmbed = document.getElementById('flash-embed');
flashEmbed.style.width = window.innerWidth + 'px';
flashEmbed.style.height = window.innerHeight + 'px';
}
window.addEventListener('resize', resizeFlash);
resizeFlash(); // Initial call to set dimensions on load
document.addEventListener("DOMContentLoaded", () => {
const flashEmbed = document.getElementById('flash-embed');
flashEmbed.start();
});
</script>
</body>
</html>