From 9c369270718a788f2d097498ed9ce167f6d6610a Mon Sep 17 00:00:00 2001 From: SheetJS Date: Mon, 18 Aug 2014 12:28:45 -0400 Subject: [PATCH] added file input to web demo (fixes #97) --- index.html | 43 ++++++++++++++++++++++++++++++++++++++++--- test_files | 2 +- 2 files changed, 41 insertions(+), 4 deletions(-) diff --git a/index.html b/index.html index 9291d68..3cf817a 100644 --- a/index.html +++ b/index.html @@ -32,7 +32,8 @@ Output Format: JSON
FORMULAE
--> -
Drop an XLSX or XLSM or XLSB file here to see sheet data.
+
Drop an XLSX or XLSM or XLSB file here to see sheet data
+

... or click here to select a file


Advanced Demo Options:
@@ -59,12 +60,14 @@ if(!use_worker) { document.getElementsByName("useworker")[0].checked = false; } -var transferable = true; +var transferable = use_worker; if(!transferable) { document.getElementsByName("xferable")[0].disabled = true; document.getElementsByName("xferable")[0].checked = false; } +var wtf_mode = false; + function fixdata(data) { var o = "", l = 0, w = 10240; for(; l diff --git a/test_files b/test_files index a4ce64a..c126cab 160000 --- a/test_files +++ b/test_files @@ -1 +1 @@ -Subproject commit a4ce64aaca4f8750ba9f249ba24f6ebd502dbd15 +Subproject commit c126cabd50c9056205ce8762f851f5c3dbe33910