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

26 lines
723 B
Handlebars

<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>