File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -24,11 +24,17 @@ function beginSequentialMode() {
24
24
25
25
function drawLayout ( ) {
26
26
if ( screen . width > 768 || window . orientation == - 90 || window . orientation == 90 )
27
- drawHorizontalLayout ( ) ;
27
+ setTimeout ( function ( ) {
28
+ drawHorizontalLayout ( ) ;
29
+ drawPoints ( ) ;
30
+ setSVGPaths ( ) ;
31
+ } , 250 ) ;
28
32
else
29
- drawVerticalLayout ( ) ;
30
- drawPoints ( ) ;
31
- setSVGPaths ( ) ;
33
+ setTimeout ( function ( ) {
34
+ drawVerticalLayout ( ) ;
35
+ drawPoints ( ) ;
36
+ setSVGPaths ( ) ;
37
+ } , 250 ) ;
32
38
}
33
39
34
40
function drawHorizontalLayout ( ) {
@@ -38,7 +44,6 @@ function drawHorizontalLayout() {
38
44
document . getElementById ( 'phone_container' ) . style . left = '0px' ;
39
45
textContainer . style . left = phoneFrame . offsetWidth + 30 + "px" ;
40
46
textContainer . style . top = '15%' ;
41
- document . body . style . backgroundColor = "red" ;
42
47
}
43
48
44
49
function drawVerticalLayout ( ) {
@@ -49,7 +54,6 @@ function drawVerticalLayout() {
49
54
phoneContainer . style . left = ( window . innerWidth - phoneFrame . offsetWidth ) / 2 + 'px' ;
50
55
phoneContainer . style . bottom = '0px' ;
51
56
textContainer . style . left = textContainer . style . top = '5%' ;
52
- document . body . style . backgroundColor = "yellow" ;
53
57
}
54
58
55
59
function drawPoints ( ) {
You can’t perform that action at this time.
0 commit comments