aboutsummaryrefslogtreecommitdiff
path: root/pointless/viewer/viewer.js
blob: 00c6f764276df53931db39ba4b025863811b9665 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
 * viewer.js
 * Part of Pointless Viewer, a Beamer presentation viewer
 * Copyright 2018 Pacien TRAN-GIRARD
 * License: GNU GPL v3
 */

"use strict";

var params = function() {
  var queryDict = {};
  location.search.substr(1).split("&").forEach(function(item) {
    var pair = item.split("=");
    queryDict[pair[0]] = pair[1];
  });
  return queryDict;
}();

if (window.opener == null) {
  pdfjsLib.getDocument(params["file"]).then(function(pdf) {
    var presentation = new Presentation(pdf);
  });
}