UNPKG

@awayfl/awayfl-player

Version:

Flash Player emulator for executing SWF files (published for FP versions 6 and up) in javascript

91 lines (74 loc) 1.68 kB
<!DOCTYPE html> <head> <meta charset="utf-8"> <meta http-equiv="content-type" content="text/html; charset=UTF8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-status-bar-style" content="#382C2A"> <meta name="viewport" content="height=device-height, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no, minimal-ui" /> <title>INSERT_TITLE</title> <script type="text/javascript" src="./js/loader.js"></script> <style> * { margin: 0; padding: 0; } canvas { outline: none } html, body, #container { margin: 0; overflow: hidden; width: 100%; height: 100%; background-color: white; } #splash { position: absolute; visibility: hidden; z-index: 10; } #splash__image { position: absolute; background-size: cover; background-position: center; background-repeat: no-repeat; background-image: url("INSERT_SPLASHSCREEN"); visibility: visible; z-index: 10; } #progress__root { position: absolute; } #progress__line { width: 0; height: 100%; transition: all 0.5s; } #loading__image { position: absolute; background-size: contain; background-position: center; background-repeat: no-repeat; } </style> </head> <body> <div id="splash__image"> <div id="progress__root"> <div id="progress__line"></div> </div> <div id="loading__image"></div> </div> <script> window.addEventListener("load", () => { INSERT_CODE Loader.init(config); Loader.runPlayer((fill) => { }, (instance) => { }) }) </script> </body> </html>