@awayfl/awayfl-player 0.2.37 → 0.2.39
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/LICENSE +201 -201
- package/README.md +36 -36
- package/awayfl.config.js +85 -85
- package/builtins/playerglobal.json +2752 -2752
- package/builtins/playerglobal_new.json +4169 -4169
- package/bundle/awayfl-player.umd.js +14 -131
- package/bundle/awayfl-player.umd.js.gz +0 -0
- package/bundle/awayfl-player.umd.js.map +1 -1
- package/dist/index.d.ts +8 -8
- package/dist/index.js +9 -9
- package/dist/lib/AVM1Player.d.ts +4 -4
- package/dist/lib/AVM1Player.js +13 -13
- package/dist/lib/AVM2Player.d.ts +4 -4
- package/dist/lib/AVM2Player.js +14 -14
- package/dist/lib/AVMDebugInterface.d.ts +21 -21
- package/dist/lib/AVMDebugInterface.js +279 -279
- package/dist/lib/AVMPlayer.d.ts +6 -6
- package/dist/lib/AVMPlayer.js +27 -27
- package/dist/src/Main.d.ts +1 -1
- package/dist/src/Main.js +19 -19
- package/index.ts +9 -9
- package/lib/AVM1Player.ts +9 -9
- package/lib/AVM2Player.ts +12 -12
- package/lib/AVMDebugInterface.ts +345 -345
- package/lib/AVMPlayer.ts +29 -29
- package/package.json +97 -97
- package/rollup.config.js +30 -30
- package/scripts/copyVersionToIndex.js +33 -33
- package/scripts/initAwayDev_mac.sh +177 -177
- package/scripts/initAwayDev_mac_pnpm.sh +177 -177
- package/scripts/initAwayDev_win.bat +198 -198
- package/scripts/unlinkAwayDev_mac.sh +140 -140
- package/scripts/unlinkAwayDev_mac_pnpm.sh +140 -140
- package/scripts/unlinkAwayDev_win.bat +140 -140
- package/scripts/updateAwayDev_mac.sh +86 -90
- package/scripts/updateAwayDev_win.bat +69 -69
- package/scripts/updateAway_any.bat +73 -73
- package/template/fonts.swf +0 -0
- package/template/game_template.html +85 -0
- package/template/index_template.html +90 -0
- package/template/loader.js +514 -0
- package/tsconfig.json +12 -12
- package/webpack.config.js +496 -496
|
@@ -1,91 +1,87 @@
|
|
|
1
|
-
set -euo pipefail
|
|
2
|
-
|
|
3
|
-
cd $(dirname "$0")
|
|
4
|
-
|
|
5
|
-
function updateIfNeeded () {
|
|
6
|
-
set +e
|
|
7
|
-
UP_TO_DATE=`git pull origin $1 2>/dev/null | grep "Already up to date" | wc -l`
|
|
8
|
-
set -e
|
|
9
|
-
if [[ "$UP_TO_DATE" == 0 ]]; then
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
cd ..
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
cd
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
cd
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
cd
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
cd
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
cd
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
cd
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
cd
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
updateIfNeeded dev
|
|
88
|
-
cd ..
|
|
89
|
-
|
|
90
|
-
read -n 1 -s -r -p "Press any key to continue . . ."
|
|
1
|
+
set -euo pipefail
|
|
2
|
+
|
|
3
|
+
cd $(dirname "$0")
|
|
4
|
+
|
|
5
|
+
function updateIfNeeded () {
|
|
6
|
+
set +e
|
|
7
|
+
UP_TO_DATE=`git pull origin $1 2>/dev/null | grep "Already up to date" | wc -l`
|
|
8
|
+
set -e
|
|
9
|
+
if [[ "$UP_TO_DATE" == 0 ]]; then
|
|
10
|
+
npm run tsc:build
|
|
11
|
+
fi
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
echo [32m Pulls all updates into the "@awayjs" and "@awayfl" directories, and runs tsc:build[0m
|
|
15
|
+
read -n 1 -s -r -p "Press any key to continue"
|
|
16
|
+
cd ..
|
|
17
|
+
cd ..
|
|
18
|
+
|
|
19
|
+
cd @awayjs
|
|
20
|
+
|
|
21
|
+
echo [32m Pull and build "@awayjs/core"[0m
|
|
22
|
+
cd core
|
|
23
|
+
updateIfNeeded dev
|
|
24
|
+
cd ..
|
|
25
|
+
|
|
26
|
+
echo [32m Pull and build "@awayjs/stage"[0m
|
|
27
|
+
cd stage
|
|
28
|
+
updateIfNeeded dev
|
|
29
|
+
cd ..
|
|
30
|
+
|
|
31
|
+
echo [32m Pull and build "@awayjs/view"[0m
|
|
32
|
+
cd view
|
|
33
|
+
updateIfNeeded dev
|
|
34
|
+
cd ..
|
|
35
|
+
|
|
36
|
+
echo [32m Pull and build "@awayjs/renderer"[0m
|
|
37
|
+
cd renderer
|
|
38
|
+
updateIfNeeded dev
|
|
39
|
+
cd ..
|
|
40
|
+
|
|
41
|
+
echo [32m Pull and build "@awayjs/graphics"[0m
|
|
42
|
+
cd graphics
|
|
43
|
+
updateIfNeeded dev
|
|
44
|
+
cd ..
|
|
45
|
+
|
|
46
|
+
echo [32m Pull and build "@awayjs/materials"[0m
|
|
47
|
+
cd materials
|
|
48
|
+
updateIfNeeded dev
|
|
49
|
+
cd ..
|
|
50
|
+
|
|
51
|
+
echo [32m Pull and build "@awayjs/scene"[0m
|
|
52
|
+
cd scene
|
|
53
|
+
updateIfNeeded dev
|
|
54
|
+
cd ..
|
|
55
|
+
|
|
56
|
+
cd ..
|
|
57
|
+
|
|
58
|
+
cd @awayfl
|
|
59
|
+
|
|
60
|
+
echo [32m Pull and build "@awayfl/swf-loader"[0m
|
|
61
|
+
cd swf-loader
|
|
62
|
+
updateIfNeeded dev
|
|
63
|
+
cd ..
|
|
64
|
+
|
|
65
|
+
echo [32m Pull and build "@awayfl/avm1"[0m
|
|
66
|
+
cd avm1
|
|
67
|
+
updateIfNeeded dev
|
|
68
|
+
cd ..
|
|
69
|
+
|
|
70
|
+
echo [32m Pull and build "@awayfl/avm2"[0m
|
|
71
|
+
cd avm2
|
|
72
|
+
updateIfNeeded dev
|
|
73
|
+
cd ..
|
|
74
|
+
|
|
75
|
+
echo [32m Pull and build "@awayfl/playerglobal"[0m
|
|
76
|
+
cd playerglobal
|
|
77
|
+
updateIfNeeded dev
|
|
78
|
+
cd ..
|
|
79
|
+
|
|
80
|
+
echo [32m Pull and build "awayfl-player"[0m
|
|
81
|
+
cd ..
|
|
82
|
+
cd awayfl-player
|
|
83
|
+
updateIfNeeded dev
|
|
84
|
+
cd ..
|
|
85
|
+
|
|
86
|
+
read -n 1 -s -r -p "Press any key to continue . . ."
|
|
91
87
|
exit
|
|
@@ -1,70 +1,70 @@
|
|
|
1
|
-
@ECHO off
|
|
2
|
-
TITLE Update AwayJS Dev Enviroment
|
|
3
|
-
ECHO [32m Pulls all updates into the "@awayjs" and "@awayfl" directories, and runs tsc:build if required[0m
|
|
4
|
-
PAUSE
|
|
5
|
-
|
|
6
|
-
for /f "tokens=* USEBACKQ" %%g in (`git rev-parse --abbrev-ref HEAD`) do (set "branch=%%g")
|
|
7
|
-
|
|
8
|
-
ECHO Current branch: %branch%
|
|
9
|
-
|
|
10
|
-
cd..
|
|
11
|
-
cd..
|
|
12
|
-
cd @awayjs
|
|
13
|
-
|
|
14
|
-
call :process_module awayjs assembly || GOTO handle_fail
|
|
15
|
-
|
|
16
|
-
call :process_module awayjs core || GOTO handle_fail
|
|
17
|
-
|
|
18
|
-
call :process_module awayjs stage || GOTO handle_fail
|
|
19
|
-
|
|
20
|
-
call :process_module awayjs view || GOTO handle_fail
|
|
21
|
-
|
|
22
|
-
call :process_module awayjs renderer || GOTO handle_fail
|
|
23
|
-
|
|
24
|
-
call :process_module awayjs graphics || GOTO handle_fail
|
|
25
|
-
|
|
26
|
-
call :process_module awayjs materials || GOTO handle_fail
|
|
27
|
-
|
|
28
|
-
call :process_module awayjs scene || GOTO handle_fail
|
|
29
|
-
|
|
30
|
-
cd..
|
|
31
|
-
cd @awayfl
|
|
32
|
-
|
|
33
|
-
call :process_module awayfl swf-loader || GOTO handle_fail
|
|
34
|
-
|
|
35
|
-
call :process_module awayfl avm1 || GOTO handle_fail
|
|
36
|
-
|
|
37
|
-
call :process_module awayfl avm2 || GOTO handle_fail
|
|
38
|
-
|
|
39
|
-
call :process_module awayfl playerglobal || GOTO handle_fail
|
|
40
|
-
|
|
41
|
-
cd..
|
|
42
|
-
|
|
43
|
-
call :process_module awayfl awayfl-player || GOTO handle_fail
|
|
44
|
-
|
|
45
|
-
PAUSE
|
|
46
|
-
|
|
47
|
-
EXIT /b
|
|
48
|
-
|
|
49
|
-
:process_module
|
|
50
|
-
ECHO [32m Pull and build @%1/%2[0m
|
|
51
|
-
cd %2
|
|
52
|
-
for /f "tokens=* USEBACKQ" %%g in (`git rev-parse --abbrev-ref HEAD`) do (set "modulebranch=%%g")
|
|
53
|
-
|
|
54
|
-
IF NOT %modulebranch%==%branch% (
|
|
55
|
-
call git stash --include-untracked || ECHO Nothing to stash
|
|
56
|
-
call git pull || EXIT /b 1
|
|
57
|
-
call git checkout %branch% || EXIT /b 1
|
|
58
|
-
call npm run tsc:build
|
|
59
|
-
) ELSE (
|
|
60
|
-
call git pull | findstr /C:"Already up to date." || call npm run tsc:build
|
|
61
|
-
)
|
|
62
|
-
cd..
|
|
63
|
-
|
|
64
|
-
EXIT /b
|
|
65
|
-
|
|
66
|
-
:handle_fail
|
|
67
|
-
EXIT /b 1
|
|
68
|
-
|
|
69
|
-
:end
|
|
1
|
+
@ECHO off
|
|
2
|
+
TITLE Update AwayJS Dev Enviroment
|
|
3
|
+
ECHO [32m Pulls all updates into the "@awayjs" and "@awayfl" directories, and runs tsc:build if required[0m
|
|
4
|
+
PAUSE
|
|
5
|
+
|
|
6
|
+
for /f "tokens=* USEBACKQ" %%g in (`git rev-parse --abbrev-ref HEAD`) do (set "branch=%%g")
|
|
7
|
+
|
|
8
|
+
ECHO Current branch: %branch%
|
|
9
|
+
|
|
10
|
+
cd..
|
|
11
|
+
cd..
|
|
12
|
+
cd @awayjs
|
|
13
|
+
|
|
14
|
+
call :process_module awayjs assembly || GOTO handle_fail
|
|
15
|
+
|
|
16
|
+
call :process_module awayjs core || GOTO handle_fail
|
|
17
|
+
|
|
18
|
+
call :process_module awayjs stage || GOTO handle_fail
|
|
19
|
+
|
|
20
|
+
call :process_module awayjs view || GOTO handle_fail
|
|
21
|
+
|
|
22
|
+
call :process_module awayjs renderer || GOTO handle_fail
|
|
23
|
+
|
|
24
|
+
call :process_module awayjs graphics || GOTO handle_fail
|
|
25
|
+
|
|
26
|
+
call :process_module awayjs materials || GOTO handle_fail
|
|
27
|
+
|
|
28
|
+
call :process_module awayjs scene || GOTO handle_fail
|
|
29
|
+
|
|
30
|
+
cd..
|
|
31
|
+
cd @awayfl
|
|
32
|
+
|
|
33
|
+
call :process_module awayfl swf-loader || GOTO handle_fail
|
|
34
|
+
|
|
35
|
+
call :process_module awayfl avm1 || GOTO handle_fail
|
|
36
|
+
|
|
37
|
+
call :process_module awayfl avm2 || GOTO handle_fail
|
|
38
|
+
|
|
39
|
+
call :process_module awayfl playerglobal || GOTO handle_fail
|
|
40
|
+
|
|
41
|
+
cd..
|
|
42
|
+
|
|
43
|
+
call :process_module awayfl awayfl-player || GOTO handle_fail
|
|
44
|
+
|
|
45
|
+
PAUSE
|
|
46
|
+
|
|
47
|
+
EXIT /b
|
|
48
|
+
|
|
49
|
+
:process_module
|
|
50
|
+
ECHO [32m Pull and build @%1/%2[0m
|
|
51
|
+
cd %2
|
|
52
|
+
for /f "tokens=* USEBACKQ" %%g in (`git rev-parse --abbrev-ref HEAD`) do (set "modulebranch=%%g")
|
|
53
|
+
|
|
54
|
+
IF NOT %modulebranch%==%branch% (
|
|
55
|
+
call git stash --include-untracked || ECHO Nothing to stash
|
|
56
|
+
call git pull || EXIT /b 1
|
|
57
|
+
call git checkout %branch% || EXIT /b 1
|
|
58
|
+
call npm run tsc:build
|
|
59
|
+
) ELSE (
|
|
60
|
+
call git pull | findstr /C:"Already up to date." || call npm run tsc:build
|
|
61
|
+
)
|
|
62
|
+
cd..
|
|
63
|
+
|
|
64
|
+
EXIT /b
|
|
65
|
+
|
|
66
|
+
:handle_fail
|
|
67
|
+
EXIT /b 1
|
|
68
|
+
|
|
69
|
+
:end
|
|
70
70
|
EXIT /b
|
|
@@ -1,74 +1,74 @@
|
|
|
1
|
-
@ECHO off
|
|
2
|
-
TITLE Update AwayJS Dev Enviroment
|
|
3
|
-
ECHO [32m Pulls all updates into the "@awayjs" and "@awayfl" directories, and runs tsc:build if required[0m
|
|
4
|
-
PAUSE
|
|
5
|
-
|
|
6
|
-
IF NOT [%1]==[] (
|
|
7
|
-
set branch=%~1
|
|
8
|
-
ECHO SET %~1
|
|
9
|
-
) ELSE (
|
|
10
|
-
set /p branch= Enter branch name:
|
|
11
|
-
)
|
|
12
|
-
|
|
13
|
-
ECHO Current branch: %branch%
|
|
14
|
-
PAUSE
|
|
15
|
-
cd..
|
|
16
|
-
cd..
|
|
17
|
-
cd @awayjs
|
|
18
|
-
|
|
19
|
-
call :process_module awayjs core || GOTO handle_fail
|
|
20
|
-
|
|
21
|
-
call :process_module awayjs stage || GOTO handle_fail
|
|
22
|
-
|
|
23
|
-
call :process_module awayjs view || GOTO handle_fail
|
|
24
|
-
|
|
25
|
-
call :process_module awayjs renderer || GOTO handle_fail
|
|
26
|
-
|
|
27
|
-
call :process_module awayjs graphics || GOTO handle_fail
|
|
28
|
-
|
|
29
|
-
call :process_module awayjs materials || GOTO handle_fail
|
|
30
|
-
|
|
31
|
-
call :process_module awayjs scene || GOTO handle_fail
|
|
32
|
-
|
|
33
|
-
cd..
|
|
34
|
-
cd @awayfl
|
|
35
|
-
|
|
36
|
-
call :process_module awayfl swf-loader || GOTO handle_fail
|
|
37
|
-
|
|
38
|
-
call :process_module awayfl avm1 || GOTO handle_fail
|
|
39
|
-
|
|
40
|
-
call :process_module awayfl avm2 || GOTO handle_fail
|
|
41
|
-
|
|
42
|
-
call :process_module awayfl playerglobal || GOTO handle_fail
|
|
43
|
-
|
|
44
|
-
cd..
|
|
45
|
-
|
|
46
|
-
call :process_module awayfl awayfl-player || GOTO handle_fail
|
|
47
|
-
|
|
48
|
-
PAUSE
|
|
49
|
-
|
|
50
|
-
EXIT /b
|
|
51
|
-
|
|
52
|
-
:process_module
|
|
53
|
-
ECHO [32m Pull and build @%1/%2[0m
|
|
54
|
-
cd %2
|
|
55
|
-
for /f "tokens=* USEBACKQ" %%g in (`git rev-parse --abbrev-ref HEAD`) do (set "modulebranch=%%g")
|
|
56
|
-
|
|
57
|
-
IF NOT %modulebranch%==%branch% (
|
|
58
|
-
call git stash --include-untracked || ECHO Nothing to stash
|
|
59
|
-
call git pull || EXIT /b 1
|
|
60
|
-
call git checkout %branch% || ECHO Branch %branch% not exist, will used a %modulebranch%
|
|
61
|
-
call npm run tsc:build
|
|
62
|
-
) ELSE (
|
|
63
|
-
call git pull | findstr /C:"Already up to date."
|
|
64
|
-
call npm run tsc:build
|
|
65
|
-
)
|
|
66
|
-
cd..
|
|
67
|
-
|
|
68
|
-
EXIT /b
|
|
69
|
-
|
|
70
|
-
:handle_fail
|
|
71
|
-
EXIT /b 1
|
|
72
|
-
|
|
73
|
-
:end
|
|
1
|
+
@ECHO off
|
|
2
|
+
TITLE Update AwayJS Dev Enviroment
|
|
3
|
+
ECHO [32m Pulls all updates into the "@awayjs" and "@awayfl" directories, and runs tsc:build if required[0m
|
|
4
|
+
PAUSE
|
|
5
|
+
|
|
6
|
+
IF NOT [%1]==[] (
|
|
7
|
+
set branch=%~1
|
|
8
|
+
ECHO SET %~1
|
|
9
|
+
) ELSE (
|
|
10
|
+
set /p branch= Enter branch name:
|
|
11
|
+
)
|
|
12
|
+
|
|
13
|
+
ECHO Current branch: %branch%
|
|
14
|
+
PAUSE
|
|
15
|
+
cd..
|
|
16
|
+
cd..
|
|
17
|
+
cd @awayjs
|
|
18
|
+
|
|
19
|
+
call :process_module awayjs core || GOTO handle_fail
|
|
20
|
+
|
|
21
|
+
call :process_module awayjs stage || GOTO handle_fail
|
|
22
|
+
|
|
23
|
+
call :process_module awayjs view || GOTO handle_fail
|
|
24
|
+
|
|
25
|
+
call :process_module awayjs renderer || GOTO handle_fail
|
|
26
|
+
|
|
27
|
+
call :process_module awayjs graphics || GOTO handle_fail
|
|
28
|
+
|
|
29
|
+
call :process_module awayjs materials || GOTO handle_fail
|
|
30
|
+
|
|
31
|
+
call :process_module awayjs scene || GOTO handle_fail
|
|
32
|
+
|
|
33
|
+
cd..
|
|
34
|
+
cd @awayfl
|
|
35
|
+
|
|
36
|
+
call :process_module awayfl swf-loader || GOTO handle_fail
|
|
37
|
+
|
|
38
|
+
call :process_module awayfl avm1 || GOTO handle_fail
|
|
39
|
+
|
|
40
|
+
call :process_module awayfl avm2 || GOTO handle_fail
|
|
41
|
+
|
|
42
|
+
call :process_module awayfl playerglobal || GOTO handle_fail
|
|
43
|
+
|
|
44
|
+
cd..
|
|
45
|
+
|
|
46
|
+
call :process_module awayfl awayfl-player || GOTO handle_fail
|
|
47
|
+
|
|
48
|
+
PAUSE
|
|
49
|
+
|
|
50
|
+
EXIT /b
|
|
51
|
+
|
|
52
|
+
:process_module
|
|
53
|
+
ECHO [32m Pull and build @%1/%2[0m
|
|
54
|
+
cd %2
|
|
55
|
+
for /f "tokens=* USEBACKQ" %%g in (`git rev-parse --abbrev-ref HEAD`) do (set "modulebranch=%%g")
|
|
56
|
+
|
|
57
|
+
IF NOT %modulebranch%==%branch% (
|
|
58
|
+
call git stash --include-untracked || ECHO Nothing to stash
|
|
59
|
+
call git pull || EXIT /b 1
|
|
60
|
+
call git checkout %branch% || ECHO Branch %branch% not exist, will used a %modulebranch%
|
|
61
|
+
call npm run tsc:build
|
|
62
|
+
) ELSE (
|
|
63
|
+
call git pull | findstr /C:"Already up to date."
|
|
64
|
+
call npm run tsc:build
|
|
65
|
+
)
|
|
66
|
+
cd..
|
|
67
|
+
|
|
68
|
+
EXIT /b
|
|
69
|
+
|
|
70
|
+
:handle_fail
|
|
71
|
+
EXIT /b 1
|
|
72
|
+
|
|
73
|
+
:end
|
|
74
74
|
EXIT /b
|
|
Binary file
|
|
@@ -0,0 +1,85 @@
|
|
|
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
|
+
transition: all 0.5s;
|
|
48
|
+
z-index: 10;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
#progress__root {
|
|
52
|
+
position: absolute;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
#progress__line {
|
|
56
|
+
width: 0;
|
|
57
|
+
height: 100%;
|
|
58
|
+
transition: all 0.5s;
|
|
59
|
+
}
|
|
60
|
+
</style>
|
|
61
|
+
</head>
|
|
62
|
+
|
|
63
|
+
<body>
|
|
64
|
+
<div id="splash__image">
|
|
65
|
+
<div id="progress__root">
|
|
66
|
+
<div id="progress__line"></div>
|
|
67
|
+
</div>
|
|
68
|
+
</div>
|
|
69
|
+
|
|
70
|
+
<script>
|
|
71
|
+
|
|
72
|
+
window.addEventListener("load", () => {
|
|
73
|
+
|
|
74
|
+
INSERT_CODE
|
|
75
|
+
|
|
76
|
+
Loader.init(config);
|
|
77
|
+
|
|
78
|
+
Loader.runPlayer((fill) => { }, (instance) => { })
|
|
79
|
+
|
|
80
|
+
})
|
|
81
|
+
|
|
82
|
+
</script>
|
|
83
|
+
</body>
|
|
84
|
+
|
|
85
|
+
</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>
|