-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9423eb5
commit 12246b4
Showing
1 changed file
with
15 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,22 @@ | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<title>This is the title of the webpage!</title> | ||
</head> | ||
<body> | ||
<p>This is an example paragraph. Anything in the <strong>body</strong> tag will appear on the page, just like this <strong>p</strong> tag and its contents.</p> | ||
</body> | ||
<head> | ||
<title>This is the title of the webpage!</title> | ||
</head> | ||
<body> | ||
<p>This is an example paragraph. Anything in the <strong>body</strong> tag will appear on the page, just like this <strong>p</strong> tag and its contents.</p> | ||
<div id="container"></div> <!-- Add this line --> | ||
</body> | ||
</html> | ||
<script> | ||
window.RufflePlayer = window.RufflePlayer || {}; | ||
window.RufflePlayer = window.RufflePlayer || {}; | ||
|
||
window.addEventListener("DOMContentLoaded", () => { | ||
let ruffle = window.RufflePlayer.newest(); | ||
let player = ruffle.createPlayer(); | ||
let container = document.getElementById("container"); | ||
container.appendChild(player); | ||
player.load("partkam.swf"); | ||
}); | ||
window.addEventListener("DOMContentLoaded", () => { | ||
let ruffle = window.RufflePlayer.newest(); | ||
let player = ruffle.createPlayer(); | ||
let container = document.getElementById("container"); | ||
container.appendChild(player); | ||
player.load("partkam.swf"); | ||
}); | ||
</script> | ||
<script src="ruffle.js"></script> |