docs.sheetjs.com/docz/static/systemjs/systemjs.html

77 lines
2.2 KiB
HTML
Raw Permalink Normal View History

2022-08-07 01:57:38 +00:00
<!DOCTYPE html>
2022-10-20 18:47:20 +00:00
<!-- sheetjs (C) 2013-present SheetJS https://sheetjs.com -->
2022-08-07 01:57:38 +00:00
<!-- vim: set ts=2: -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
2023-06-25 09:36:58 +00:00
<meta name="robots" content="noindex">
2022-08-07 01:57:38 +00:00
<title>SheetJS Live Demo</title>
<style>
#drop{
2022-08-08 06:59:57 +00:00
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
2022-08-07 01:57:38 +00:00
}
#b64data{
2022-08-08 06:59:57 +00:00
width:100%;
2022-08-07 01:57:38 +00:00
}
a { text-decoration: none }
</style>
</head>
<body>
<pre>
2022-10-20 18:47:20 +00:00
<b><a href="https://sheetjs.com">SheetJS Data Preview Live Demo</a></b>
2022-08-07 01:57:38 +00:00
(Base64 text works back to IE6; drag and drop works back to IE10)
Output Format: <select name="format" onchange="setfmt()">
<option value="csv" selected> CSV</option>
<option value="json"> JSON</option>
<option value="form"> FORMULAE</option>
<option value="html"> HTML</option>
</select><br />
<div id="drop">Drop a spreadsheet file here to see sheet data</div>
<input type="file" name="xlfile" id="xlf" /> ... or click here to select a file
<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 />
<b>Advanced Demo Options:</b>
</pre>
<pre id="out"></pre>
<div id="htmlout"></div>
<br />
<script src="https://cdnjs.cloudflare.com/ajax/libs/systemjs/0.20.16/system.js"></script>
<script>
2022-08-08 06:59:57 +00:00
SystemJS.config({
meta: {
'xlsx': {
exports: 'XLSX'
}
},
map: {
'xlsx': 'https://cdn.sheetjs.com/xlsx-latest/package/dist/xlsx.full.min.js',
'fs': '',
'crypto': '',
'stream': ''
}
});
2022-08-07 01:57:38 +00:00
SystemJS.import('main.js');
</script>
<script type="text/javascript">
/* eslint no-use-before-define:0 */
2022-08-08 06:59:57 +00:00
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-36810333-1']);
_gaq.push(['_trackPageview']);
2022-08-07 01:57:38 +00:00
2022-08-08 06:59:57 +00:00
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
2022-08-07 01:57:38 +00:00
</script>
</body>
</html>