From feed2b79f25899d4655b1391b2ff58f8147303af Mon Sep 17 00:00:00 2001 From: pacien Date: Thu, 19 Jul 2018 12:32:20 +0200 Subject: Add welcome screen --- pointless/viewer/viewer.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'pointless/viewer/viewer.js') 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 @@ class Viewer { constructor() { + this.welcomeScreen = document.getElementById("welcomeScreen"); this.fileInput = document.getElementById("fileInput"); - this.fileInput.style.display = "block"; + + this.welcomeScreen.style.display = "block"; this._listenForInput(); } load(source) { - this.fileInput.style.display = "none"; + this.welcomeScreen.style.display = "none"; pdfjsLib.getDocument(source).then(function(pdf) { var presentation = new Presentation(pdf); }); -- cgit v1.2.3