window.RufflePlayer = window.RufflePlayer || {};
window.addEventListener(«load», (event) => {
const ruffle = window.RufflePlayer.newest();
const player = ruffle.createPlayer();
const container = document.getElementById(«container»);
container.appendChild(player);
player.load({
url: «/wp-content/uploads/swf/C1/T3/iat.swf»,
backgroundColor: «#000»,
});
player.style.width = «800px»;
player.style.height = «600px»;
});