File tree 11 files changed +95
-21
lines changed
11 files changed +95
-21
lines changed Original file line number Diff line number Diff line change 14
14
box-shadow : 14px 10px 30px 0px rgba (50 , 50 , 50 , 0.75 );
15
15
width : calc (100% - 40px );
16
16
height : calc (100% - 60px );
17
- position : absolute
17
+ position : absolute;
18
+ /** automatically made visible once game is loaded **/
19
+ display : none;
18
20
}
19
21
.footer {
20
22
position : absolute;
21
23
top : calc (100% - 50px );
22
24
}
25
+ # gjs-loader {
26
+ height : 100% ;
27
+ padding : 10% 0% 0% 30% ;
28
+ }
23
29
</ style >
24
30
< script src ="../../gamejs-2.0.0-alpha.js "> </ script >
25
31
< script >
30
36
< body >
31
37
< div >
32
38
< div id ="gjs-loader ">
33
- Loading...
39
+ < progress max =1 min =0 steps =0.1 > </ progress >
40
+ < br /> Loading...
34
41
</ div >
35
42
< canvas id ="gjs-canvas "> </ canvas >
36
43
< p class ="footer ">
Original file line number Diff line number Diff line change 14
14
box-shadow : 14px 10px 30px 0px rgba (50 , 50 , 50 , 0.75 );
15
15
width : calc (100% - 40px );
16
16
height : calc (100% - 60px );
17
- position : absolute
17
+ position : absolute;
18
+ /** automatically made visible once game is loaded **/
19
+ display : none;
18
20
}
19
21
.footer {
20
22
position : absolute;
21
23
top : calc (100% - 50px );
22
24
}
25
+ # gjs-loader {
26
+ height : 100% ;
27
+ padding : 10% 0% 0% 30% ;
28
+ }
23
29
</ style >
24
30
< script src ="../../gamejs-2.0.0-alpha.js "> </ script >
25
31
< script >
30
36
< body >
31
37
< div >
32
38
< div id ="gjs-loader ">
33
- Loading...
39
+ < progress max =1 min =0 steps =0.1 > </ progress >
40
+ < br /> Loading...
34
41
</ div >
35
42
< canvas id ="gjs-canvas "> </ canvas >
36
43
< p class ="footer ">
Original file line number Diff line number Diff line change 14
14
box-shadow : 14px 10px 30px 0px rgba (50 , 50 , 50 , 0.75 );
15
15
width : calc (100% - 40px );
16
16
height : calc (100% - 60px );
17
- position : absolute
17
+ position : absolute;
18
+ /** automatically made visible once game is loaded **/
19
+ display : none;
18
20
}
19
21
.footer {
20
22
position : absolute;
21
23
top : calc (100% - 50px );
22
24
}
25
+ # gjs-loader {
26
+ height : 100% ;
27
+ padding : 10% 0% 0% 30% ;
28
+ }
23
29
</ style >
24
30
< script src ="../../gamejs-2.0.0-alpha.js "> </ script >
25
31
< script >
30
36
< body >
31
37
< div >
32
38
< div id ="gjs-loader ">
33
- Loading...
39
+ < progress max =1 min =0 steps =0.1 > </ progress >
40
+ < br /> Loading...
34
41
</ div >
35
42
< canvas id ="gjs-canvas "> </ canvas >
36
43
< p class ="footer ">
Original file line number Diff line number Diff line change 14
14
box-shadow : 14px 10px 30px 0px rgba (50 , 50 , 50 , 0.75 );
15
15
width : calc (100% - 40px );
16
16
height : calc (100% - 60px );
17
- position : absolute
17
+ position : absolute;
18
+ /** automatically made visible once game is loaded **/
19
+ display : none;
18
20
}
19
21
.footer {
20
22
position : absolute;
21
23
top : calc (100% - 50px );
22
24
}
25
+ # gjs-loader {
26
+ height : 100% ;
27
+ padding : 10% 0% 0% 30% ;
28
+ }
23
29
</ style >
24
30
< script src ="../../gamejs-2.0.0-alpha.js "> </ script >
25
31
< script >
30
36
< body >
31
37
< div >
32
38
< div id ="gjs-loader ">
33
- Loading...
39
+ < progress max =1 min =0 steps =0.1 > </ progress >
40
+ < br /> Loading...
34
41
</ div >
35
42
< canvas id ="gjs-canvas "> </ canvas >
36
43
< p class ="footer ">
Original file line number Diff line number Diff line change 14
14
box-shadow : 14px 10px 30px 0px rgba (50 , 50 , 50 , 0.75 );
15
15
width : calc (100% - 40px );
16
16
height : calc (100% - 60px );
17
- position : absolute
17
+ position : absolute;
18
+ /** automatically made visible once game is loaded **/
19
+ display : none;
18
20
}
19
21
.footer {
20
22
position : absolute;
21
23
top : calc (100% - 50px );
22
24
}
25
+ # gjs-loader {
26
+ height : 100% ;
27
+ padding : 10% 0% 0% 30% ;
28
+ }
23
29
</ style >
24
30
< script src ="../../gamejs-2.0.0-alpha.js "> </ script >
25
31
< script >
30
36
< body >
31
37
< div >
32
38
< div id ="gjs-loader ">
33
- Loading...
39
+ < progress max =1 min =0 steps =0.1 > </ progress >
40
+ < br /> Loading...
34
41
</ div >
35
42
< canvas id ="gjs-canvas "> </ canvas >
36
43
< p class ="footer ">
Original file line number Diff line number Diff line change 14
14
box-shadow : 14px 10px 30px 0px rgba (50 , 50 , 50 , 0.75 );
15
15
width : calc (100% - 40px );
16
16
height : calc (100% - 60px );
17
- position : absolute
17
+ position : absolute;
18
+ /** automatically made visible once game is loaded **/
19
+ display : none;
18
20
}
19
21
.footer {
20
22
position : absolute;
21
23
top : calc (100% - 50px );
22
24
}
25
+ # gjs-loader {
26
+ height : 100% ;
27
+ padding : 10% 0% 0% 30% ;
28
+ }
23
29
</ style >
24
30
< script src ="../../gamejs-2.0.0-alpha.js "> </ script >
25
31
< script >
30
36
< body >
31
37
< div >
32
38
< div id ="gjs-loader ">
33
- Loading...
39
+ < progress max =1 min =0 steps =0.1 > </ progress >
40
+ < br /> Loading...
34
41
</ div >
35
42
< canvas id ="gjs-canvas "> </ canvas >
36
43
< p class ="footer ">
Original file line number Diff line number Diff line change 14
14
box-shadow : 14px 10px 30px 0px rgba (50 , 50 , 50 , 0.75 );
15
15
width : calc (100% - 40px );
16
16
height : calc (100% - 60px );
17
- position : absolute
17
+ position : absolute;
18
+ /** automatically made visible once game is loaded **/
19
+ display : none;
18
20
}
19
21
.footer {
20
22
position : absolute;
21
23
top : calc (100% - 50px );
22
24
}
25
+ # gjs-loader {
26
+ height : 100% ;
27
+ padding : 10% 0% 0% 30% ;
28
+ }
23
29
</ style >
24
30
< script src ="../../gamejs-2.0.0-alpha.js "> </ script >
25
31
< script >
30
36
< body >
31
37
< div >
32
38
< div id ="gjs-loader ">
33
- Loading...
39
+ < progress max =1 min =0 steps =0.1 > </ progress >
40
+ < br /> Loading...
34
41
</ div >
35
42
< canvas id ="gjs-canvas "> </ canvas >
36
43
< p class ="footer ">
Original file line number Diff line number Diff line change 14
14
box-shadow : 14px 10px 30px 0px rgba (50 , 50 , 50 , 0.75 );
15
15
width : calc (100% - 40px );
16
16
height : calc (100% - 60px );
17
- position : absolute
17
+ position : absolute;
18
+ /** automatically made visible once game is loaded **/
19
+ display : none;
18
20
}
19
21
.footer {
20
22
position : absolute;
21
23
top : calc (100% - 50px );
22
24
}
25
+ # gjs-loader {
26
+ height : 100% ;
27
+ padding : 10% 0% 0% 30% ;
28
+ }
23
29
</ style >
24
30
< script src ="../../gamejs-2.0.0-alpha.js "> </ script >
25
31
< script >
30
36
< body >
31
37
< div >
32
38
< div id ="gjs-loader ">
33
- Loading...
39
+ < progress max =1 min =0 steps =0.1 > </ progress >
40
+ < br /> Loading...
34
41
</ div >
35
42
< canvas id ="gjs-canvas "> </ canvas >
36
43
< p class ="footer ">
Original file line number Diff line number Diff line change 14
14
box-shadow : 14px 10px 30px 0px rgba (50 , 50 , 50 , 0.75 );
15
15
width : calc (100% - 40px );
16
16
height : calc (100% - 60px );
17
- position : absolute
17
+ position : absolute;
18
+ /** automatically made visible once game is loaded **/
19
+ display : none;
18
20
}
19
21
.footer {
20
22
position : absolute;
21
23
top : calc (100% - 50px );
22
24
}
25
+ # gjs-loader {
26
+ height : 100% ;
27
+ padding : 10% 0% 0% 30% ;
28
+ }
23
29
</ style >
24
30
< script src ="../../gamejs-2.0.0-alpha.js "> </ script >
25
31
< script >
30
36
< body >
31
37
< div >
32
38
< div id ="gjs-loader ">
33
- Loading...
39
+ < progress max =1 min =0 steps =0.1 > </ progress >
40
+ < br /> Loading...
34
41
</ div >
35
42
< canvas id ="gjs-canvas "> </ canvas >
36
43
< p class ="footer ">
Original file line number Diff line number Diff line change 14
14
box-shadow : 14px 10px 30px 0px rgba (50 , 50 , 50 , 0.75 );
15
15
width : calc (100% - 40px );
16
16
height : calc (100% - 60px );
17
- position : absolute
17
+ position : absolute;
18
+ /** automatically made visible once game is loaded **/
19
+ display : none;
18
20
}
19
21
.footer {
20
22
position : absolute;
21
23
top : calc (100% - 50px );
22
24
}
25
+ # gjs-loader {
26
+ height : 100% ;
27
+ padding : 10% 0% 0% 30% ;
28
+ }
23
29
</ style >
24
30
< script src ="../../gamejs-2.0.0-alpha.js "> </ script >
25
31
< script >
30
36
< body >
31
37
< div >
32
38
< div id ="gjs-loader ">
33
- Loading...
39
+ < progress max =1 min =0 steps =0.1 > </ progress >
40
+ < br /> Loading...
34
41
</ div >
35
42
< canvas id ="gjs-canvas "> </ canvas >
36
43
< p class ="footer ">
Original file line number Diff line number Diff line change @@ -163,10 +163,14 @@ exports.init = function() {
163
163
canvas . focus ( ) ;
164
164
}
165
165
// remove loader if any;
166
- var $loader = document . getElementById ( 'gjs-loader' ) ;
166
+ var $loader = document . getElementById ( LOADER_ID ) ;
167
167
if ( $loader ) {
168
168
$loader . style . display = "none" ;
169
169
}
170
+ var $displaySurface = document . getElementById ( CANVAS_ID ) ;
171
+ if ( $displaySurface ) {
172
+ $displaySurface . style . display = 'block' ;
173
+ }
170
174
// hook into resize
171
175
window . addEventListener ( "resize" , onResize , false ) ;
172
176
return ;
You can’t perform that action at this time.
0 commit comments