Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
akac97 authored Jan 17, 2024
1 parent a5b01cd commit e1d62b6
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,18 @@
<html>
<head>
<title>Bush Shootout</title>
<script src="https://unpkg.com/@ruffle-rs/ruffle"></script>
<script src="https://unpkg.com/@ruffle-rs/ruffle/dist/ruffle.js"></script>
</head>
<body>
<script>
let player = ruffle.createPlayer();
player.config = {
autoplay: "on",
// Add any other configurations here...
};
window.addEventListener("DOMContentLoaded", function () {
let RufflePlayer = window.RufflePlayer;
let player = RufflePlayer.newest().createPlayer();
player.config = {
autoplay: "on",
// Add any other configurations here...
};

document.addEventListener("DOMContentLoaded", function () {
let element = document.createElement("div");
element.id = "flashContent";
document.body.appendChild(element);
Expand Down

0 comments on commit e1d62b6

Please sign in to comment.