aboutsummaryrefslogtreecommitdiff
path: root/pointless/viewer/viewer.js
diff options
context:
space:
mode:
Diffstat (limited to 'pointless/viewer/viewer.js')
-rw-r--r--pointless/viewer/viewer.js6
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
10class Viewer { 10class 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 });