From: Andreas Gal Date: Fri, 10 Jun 2011 01:06:01 +0000 (-0700) Subject: add ?file= parameter to test.html X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=76cb96f1cd7cfdd32e3cd190f8b7a8719679cac5;p=pdf.js.git add ?file= parameter to test.html --- diff --git a/test.html b/test.html index 09ccf62..f78f22c 100644 --- a/test.html +++ b/test.html @@ -52,7 +52,8 @@ function load() { pageDisplay = document.getElementById("pageNumber"); infoDisplay = document.getElementById("info"); pageNum = parseInt(queryParams().page) || 1; - open("compressed.tracemonkey-pldi-09.pdf"); + fileName = queryParams().file || "compressed.tracemonkey-pldi-09.pdf"; + open(fileName); } function open(url) {