shin-neo-lyrical-tokarev/views/partials/ruffle_player.hbs

26 lines
723 B
Handlebars
Raw Permalink Normal View History

2024-11-16 16:53:05 -05:00
<script>
window.RufflePlayer = window.RufflePlayer || {};
window.addEventListener("DOMContentLoaded", () => {
let ruffle = window.RufflePlayer.newest();
let player = ruffle.createPlayer();
player.config = {
backgroundColor: "#000000"
}
let container = document.getElementById("ruffle_container");
container.appendChild(player);
player.load({
url: {{file}},
metadata: {
backgroundColor: "#000000"
}
});
});
</script>
<script src="/public/script/ruffle/ruffle.js"></script>
<style>
:root{
--splash-screen-background: black;
--ruffle-orange: #20d6c7;
}
</style>