Soon Soon: Difference between revisions
From GameBrew
More actions
Blanked the page Tags: Blanking Manual revert |
No edit summary |
||
| Line 1: | Line 1: | ||
{{#tag:html| | |||
<div id='ruffle'></div> | |||
<script src='https://e9x.github.io/ruffle-example/ruffle.js'></script> | |||
<script> | |||
var swfobject = {}; | |||
swfobject.embedSWF = function(url, cont, width, height){ | |||
var ruffle = window.RufflePlayer.newest(), | |||
player = Object.assign(document.getElementById(cont).appendChild(ruffle.createPlayer()), { | |||
width: width, | |||
height: height, | |||
style: 'width: ' + width + 'px; height: ' + height + 'px', | |||
}); | |||
player.load({ url: url }); | |||
} | |||
swfobject.embedSWF('https://e9x.github.io/ruffle-example/1on1soccer_24.swf', 'ruffle', 500, 500); | |||
}} | |||
Revision as of 14:24, 30 September 2023