{"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":"<script src=\"https://unpkg.com/@ruffle-rs/ruffle\"></script>\n<!-- responsive container -->\n<div style=\"width: 100%; max-width: @@maxwidth@@px;\">\n<div  id=\"@@AUTOID@@_content\" style=\"width: 100%;  padding-bottom: @@height_ratio@@;position:relative;display:block;\"></div>\n</div>\n<div id=\"@@AUTOID@@_link\" style=\"display: none\">","bodyend":"</div>\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":""}