{"name":"Ruffle SWF","key":"ruffle","version":"1.0.1","instructions":"Add the widget to the page, and between the filter tags embed a SWF file (add link -> upload repository). When the page is displayed the SWF file should play.","showatto":"1","showplayers":"0","requirecss":"","requirejs":"","shim":"","defaults":"maxwidth=\"1000\",height_ratio=75%|67%|53%","amd":"1","body":"\n\n
\n
\n
\n
","bodyend":"
\n","script":"var link = $('#' + @@AUTOID@@ + \"_link a\").first();\nvar container=$('#' + @@AUTOID@@ + \"_content\");\nvar swfurl= link.attr('href');\nconst ruffle = window.RufflePlayer.newest();\nconst player = ruffle.createPlayer();\nplayer.style.width=\"100%\";\nplayer.style.height=\"100%\";\nplayer.style.position=\"absolute\";\nplayer.style.left=0;\nplayer.style.top=0;\ncontainer.append(player);\nplayer.load(swfurl);","style":"","dataset":"","datasetvars":"","alternate":"","alternateend":""}