2017-08-05 06:32:57 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<!-- xlsx.js (C) 2013-present SheetJS http://sheetjs.com -->
|
|
|
|
<!-- vim: set ts=2: -->
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
2017-08-19 23:06:34 +00:00
|
|
|
<title>SheetJS Live Demo</title>
|
2017-08-05 06:32:57 +00:00
|
|
|
<style>
|
|
|
|
#drop{
|
|
|
|
border:2px dashed #bbb;
|
|
|
|
-moz-border-radius:5px;
|
|
|
|
-webkit-border-radius:5px;
|
|
|
|
border-radius:5px;
|
|
|
|
padding:25px;
|
|
|
|
text-align:center;
|
|
|
|
font:20pt bold,"Vollkorn";color:#bbb
|
|
|
|
}
|
|
|
|
#b64data{
|
|
|
|
width:100%;
|
|
|
|
}
|
2017-08-19 23:06:34 +00:00
|
|
|
a { text-decoration: none }
|
2017-08-05 06:32:57 +00:00
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body>
|
2017-08-19 23:06:34 +00:00
|
|
|
<pre>
|
|
|
|
<b><a href="http://sheetjs.com">SheetJS Data Preview Live Demo</a></b>
|
|
|
|
(Base64 text works back to IE6; drag and drop works back to IE10)
|
|
|
|
|
|
|
|
<a href="https://github.com/SheetJS/js-xlsx">Source Code Repo</a>
|
|
|
|
<a href="https://github.com/SheetJS/js-xlsx/issues">Issues? Something look weird? Click here and report an issue</a>
|
|
|
|
Output Format: <select name="format" onchange="setfmt()">
|
2017-08-05 06:32:57 +00:00
|
|
|
<option value="csv" selected> CSV</option>
|
|
|
|
<option value="json"> JSON</option>
|
|
|
|
<option value="form"> FORMULAE</option>
|
2017-08-19 23:06:34 +00:00
|
|
|
<option value="html"> HTML</option>
|
2017-08-05 06:32:57 +00:00
|
|
|
</select><br />
|
|
|
|
<div id="drop">Drop a spreadsheet file here to see sheet data</div>
|
2017-08-19 23:06:34 +00:00
|
|
|
<input type="file" name="xlfile" id="xlf" /> ... or click here to select a file
|
|
|
|
|
2017-08-05 06:32:57 +00:00
|
|
|
<textarea id="b64data">... or paste a base64-encoding here</textarea>
|
|
|
|
<input type="button" id="dotext" value="Click here to process the base64 text" onclick="b64it();"/><br />
|
2017-08-19 23:06:34 +00:00
|
|
|
<b>Advanced Demo Options:</b>
|
|
|
|
Use Web Workers: (when available) <input type="checkbox" name="useworker" checked>
|
|
|
|
Use readAsBinaryString: (when available) <input type="checkbox" name="userabs" checked>
|
|
|
|
</pre>
|
2017-08-05 06:32:57 +00:00
|
|
|
<pre id="out"></pre>
|
2017-08-19 23:06:34 +00:00
|
|
|
<div id="htmlout"></div>
|
2017-08-05 06:32:57 +00:00
|
|
|
<br />
|
|
|
|
<script>
|
|
|
|
var XW = {
|
|
|
|
/* worker message */
|
|
|
|
msg: 'xlsx',
|
|
|
|
/* worker scripts */
|
2017-08-19 23:06:34 +00:00
|
|
|
worker: './xlsxworker.js'
|
2017-08-05 06:32:57 +00:00
|
|
|
};
|
|
|
|
</script>
|
2017-09-24 23:40:09 +00:00
|
|
|
<script src="require.js"></script>
|
|
|
|
<script>
|
|
|
|
require.config({
|
|
|
|
baseUrl: ".",
|
|
|
|
name: "app",
|
|
|
|
paths: {
|
|
|
|
xlsx: "xlsx.full.min"
|
|
|
|
}
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
<script src="app.js"></script>
|
2017-08-05 06:32:57 +00:00
|
|
|
</body>
|
|
|
|
</html>
|