diff options
author | pacien | 2018-07-19 12:32:20 +0200 |
---|---|---|
committer | pacien | 2018-07-19 12:32:20 +0200 |
commit | feed2b79f25899d4655b1391b2ff58f8147303af (patch) | |
tree | c154c369cf24624271fbf76ece78c33d7005eb24 /pointless/viewer/viewer.js | |
parent | 8931cc9418be09206de86f6081b61d591ce8e862 (diff) | |
download | beamer-viewer-feed2b79f25899d4655b1391b2ff58f8147303af.tar.gz |
Add welcome screen
Diffstat (limited to 'pointless/viewer/viewer.js')
-rw-r--r-- | pointless/viewer/viewer.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pointless/viewer/viewer.js b/pointless/viewer/viewer.js index 78035ee..9e92c2c 100644 --- a/pointless/viewer/viewer.js +++ b/pointless/viewer/viewer.js | |||
@@ -9,13 +9,15 @@ | |||
9 | 9 | ||
10 | class Viewer { | 10 | class Viewer { |
11 | constructor() { | 11 | constructor() { |
12 | this.welcomeScreen = document.getElementById("welcomeScreen"); | ||
12 | this.fileInput = document.getElementById("fileInput"); | 13 | this.fileInput = document.getElementById("fileInput"); |
13 | this.fileInput.style.display = "block"; | 14 | |
15 | this.welcomeScreen.style.display = "block"; | ||
14 | this._listenForInput(); | 16 | this._listenForInput(); |
15 | } | 17 | } |
16 | 18 | ||
17 | load(source) { | 19 | load(source) { |
18 | this.fileInput.style.display = "none"; | 20 | this.welcomeScreen.style.display = "none"; |
19 | pdfjsLib.getDocument(source).then(function(pdf) { | 21 | pdfjsLib.getDocument(source).then(function(pdf) { |
20 | var presentation = new Presentation(pdf); | 22 | var presentation = new Presentation(pdf); |
21 | }); | 23 | }); |