@awayfl/awayfl-player 0.2.38 → 0.2.40

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- console.debug("AwayFL-Player - 0.2.38");
1
+ console.debug("AwayFL-Player - 0.2.40");
2
2
  export { AVMPlayer } from "./lib/AVMPlayer";
3
3
  export { AVM1Player } from "./lib/AVM1Player";
4
4
  export { AVM2Player } from "./lib/AVM2Player";
package/index.ts CHANGED
@@ -1,4 +1,4 @@
1
- console.debug("AwayFL-Player - 0.2.38");
1
+ console.debug("AwayFL-Player - 0.2.40");
2
2
 
3
3
  export {AVMPlayer} from "./lib/AVMPlayer";
4
4
  export {AVM1Player} from "./lib/AVM1Player";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awayfl/awayfl-player",
3
- "version": "0.2.38",
3
+ "version": "0.2.40",
4
4
  "description": "Flash Player emulator for executing SWF files (published for FP versions 6 and up) in javascript",
5
5
  "main": "bundle/awayfl-player.umd.js",
6
6
  "module": "dist/index.js",
Binary file
@@ -0,0 +1,91 @@
1
+ <!DOCTYPE html>
2
+
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta http-equiv="content-type" content="text/html; charset=UTF8">
6
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
7
+ <meta name="apple-mobile-web-app-capable" content="yes">
8
+ <meta name="apple-mobile-web-app-status-bar-style" content="#382C2A">
9
+ <meta name="viewport"
10
+ content="height=device-height, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no, minimal-ui" />
11
+ <title>INSERT_TITLE</title>
12
+
13
+ <script type="text/javascript" src="./js/loader.js"></script>
14
+ <style>
15
+ * {
16
+ margin: 0;
17
+ padding: 0;
18
+ }
19
+
20
+ canvas {
21
+ outline: none
22
+ }
23
+
24
+ html,
25
+ body,
26
+ #container {
27
+ margin: 0;
28
+ overflow: hidden;
29
+ width: 100%;
30
+ height: 100%;
31
+ background-color: white;
32
+ }
33
+
34
+ #splash {
35
+ position: absolute;
36
+ visibility: hidden;
37
+ z-index: 10;
38
+ }
39
+
40
+ #splash__image {
41
+ position: absolute;
42
+ background-size: contain;
43
+ background-position: center;
44
+ background-repeat: no-repeat;
45
+ background-image: url("INSERT_SPLASHSCREEN");
46
+ visibility: visible;
47
+ z-index: 10;
48
+ }
49
+
50
+ #progress__root {
51
+ position: absolute;
52
+ }
53
+
54
+ #progress__line {
55
+ width: 0;
56
+ height: 100%;
57
+ transition: all 0.5s;
58
+ }
59
+ #loading__image {
60
+ position: absolute;
61
+ background-size: contain;
62
+ background-position: center;
63
+ background-repeat: no-repeat;
64
+ }
65
+ </style>
66
+ </head>
67
+
68
+ <body>
69
+ <div id="splash__image">
70
+ <div id="progress__root">
71
+ <div id="progress__line"></div>
72
+ </div>
73
+ <div id="loading__image"></div>
74
+ </div>
75
+
76
+ <script>
77
+
78
+ window.addEventListener("load", () => {
79
+
80
+ INSERT_CODE
81
+
82
+ Loader.init(config);
83
+
84
+ Loader.runPlayer((fill) => { }, (instance) => { })
85
+
86
+ })
87
+
88
+ </script>
89
+ </body>
90
+
91
+ </html>
@@ -0,0 +1,90 @@
1
+ <!DOCTYPE html>
2
+ <!--[if lt IE 7 ]> <html lang="en" class="ie6" <% if(htmlWebpackPlugin.files.manifest) { %> manifest="<%= htmlWebpackPlugin.files.manifest %>"<% } %>> <![endif]-->
3
+ <!--[if IE 7 ]> <html lang="en" class="ie7" <% if(htmlWebpackPlugin.files.manifest) { %> manifest="<%= htmlWebpackPlugin.files.manifest %>"<% } %>> <![endif]-->
4
+ <!--[if IE 8 ]> <html lang="en" class="ie8" <% if(htmlWebpackPlugin.files.manifest) { %> manifest="<%= htmlWebpackPlugin.files.manifest %>"<% } %>> <![endif]-->
5
+ <!--[if IE 9 ]> <html lang="en" class="ie9" <% if(htmlWebpackPlugin.files.manifest) { %> manifest="<%= htmlWebpackPlugin.files.manifest %>"<% } %>> <![endif]-->
6
+ <!--[if (gt IE 9)|!(IE)]><!-->
7
+ <html lang="en" class="" <% if(htmlWebpackPlugin.files.manifest) { %> manifest="<%= htmlWebpackPlugin.files.manifest %>"
8
+ <% } %>>
9
+ <!--<![endif]-->
10
+
11
+ <head>
12
+ <meta charset="utf-8">
13
+ <title><%= htmlWebpackPlugin.options.title || 'Webpack App'%></title><% if (htmlWebpackPlugin.files.favicon) { %>
14
+ <link rel="shortcut icon" href="<%= htmlWebpackPlugin.files.favicon%>">
15
+ <% } if (htmlWebpackPlugin.options.mobile) { %>
16
+ <meta name="viewport" content="width=device-width, initial-scale=1">
17
+ <% } for (var css in htmlWebpackPlugin.files.css) { %>
18
+ <link href="<%= htmlWebpackPlugin.files.css[css] %>" rel="stylesheet">
19
+ <% } if (htmlWebpackPlugin.options.baseHref) { %>
20
+ <base href="<%= htmlWebpackPlugin.options.baseHref %>" /><% } %>
21
+ </head>
22
+
23
+ <body>
24
+ <style>
25
+ html {
26
+ height: 100%;
27
+ }
28
+
29
+ body {
30
+ font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
31
+ font-size: 13px;
32
+ line-height: 1.5;
33
+ color: #666;
34
+ -webkit-background-size: cover;
35
+ -moz-background-size: cover;
36
+ -o-background-size: cover;
37
+ background-size: cover;
38
+ }
39
+
40
+ #examples {
41
+ padding: 0px 20px 20px 20px;
42
+ }
43
+
44
+ a {
45
+ color: #999;
46
+ text-decoration: none;
47
+ }
48
+
49
+ a:hover,
50
+ a:active,
51
+ a:focus {
52
+ text-decoration: none;
53
+ outline: none;
54
+ color: #d1382f;
55
+ }
56
+ </style>
57
+
58
+
59
+ <% if (htmlWebpackPlugin.options.unsupportedBrowser) { %>
60
+ <style>
61
+ .unsupported-browser {
62
+ display: none;
63
+ }
64
+ </style>
65
+ <div class="unsupported-browser">
66
+ Sorry, your browser is not supported. Please upgrade to
67
+ the latest version or switch your browser to use this site.
68
+ See <a href="http://outdatedbrowser.com/">outdatedbrowser.com</a>
69
+ for options.
70
+ </div>
71
+ <% } %>
72
+
73
+
74
+
75
+ <!-- EXAMPLES -->
76
+ <div id="examples">
77
+ <h1><%= htmlWebpackPlugin.options.title %></h1>
78
+ <% for (var game in htmlWebpackPlugin.options.games) { %>
79
+ <a href="<%= htmlWebpackPlugin.options.baseHref %><%= htmlWebpackPlugin.options.games[game].path %>"
80
+ class="" title="<%= htmlWebpackPlugin.options.games[game].name %>"><%= htmlWebpackPlugin.options.games[game].name %></br></a>
81
+ <% } %>
82
+ </div>
83
+
84
+
85
+
86
+
87
+
88
+ </body>
89
+
90
+ </html>