diff options
Diffstat (limited to 'pointless/viewer/screen.js')
-rw-r--r-- | pointless/viewer/screen.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pointless/viewer/screen.js b/pointless/viewer/screen.js index 9ba4574..4f5e5bf 100644 --- a/pointless/viewer/screen.js +++ b/pointless/viewer/screen.js | |||
@@ -19,6 +19,7 @@ class Screen { | |||
19 | this.pageTurnCount = 0; | 19 | this.pageTurnCount = 0; |
20 | 20 | ||
21 | this._registerListeners(); | 21 | this._registerListeners(); |
22 | this._hideWelcomeScreen(); | ||
22 | } | 23 | } |
23 | 24 | ||
24 | setPage(page) { | 25 | setPage(page) { |
@@ -36,6 +37,11 @@ class Screen { | |||
36 | }); | 37 | }); |
37 | } | 38 | } |
38 | 39 | ||
40 | _hideWelcomeScreen() { | ||
41 | const welcomeScreen = this.window.document.getElementById("welcomeScreen"); | ||
42 | welcomeScreen.style.display = "none"; | ||
43 | } | ||
44 | |||
39 | _getScreenSize(ratio) { | 45 | _getScreenSize(ratio) { |
40 | const windowRatio = this.window.innerWidth / this.window.innerHeight; | 46 | const windowRatio = this.window.innerWidth / this.window.innerHeight; |
41 | const horizontalScaleFactor = ratio / windowRatio; | 47 | const horizontalScaleFactor = ratio / windowRatio; |