2021-05-06 23:51:42 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<!-- <script type="text/javascript" src="jquery.js"></script>
|
|
|
|
<script type="text/javascript" src="client.js"></script> -->
|
|
|
|
<title>SheetJS Spreadsheet Conversion Service</title>
|
|
|
|
<link rel="icon" type="image/png" href="//sheetjs.com/logo.png" />
|
|
|
|
<link rel="stylesheet" type="text/css" href="style.css" />
|
|
|
|
<link rel="preconnect" href="https://fonts.gstatic.com">
|
|
|
|
<link href="https://fonts.googleapis.com/css2?family=Roboto&display=swap" rel="stylesheet">
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<style>
|
|
|
|
a {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
<div id="root">
|
|
|
|
<!-- <div class="headerBar">
|
|
|
|
<img src="assets/logo.png" class="logo" alt="logo" />
|
|
|
|
<h2 class="title">SheetJS Spreadsheet Conversion Service</h2>
|
|
|
|
</div>
|
|
|
|
<div class="container">
|
|
|
|
<div class="bar">
|
|
|
|
<div id="proxy" class="barSection" style="border-right: solid #B5B5B5 1px;">
|
|
|
|
<h2>Proxy</h2>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div id="upload" class="barSection">
|
|
|
|
<h2>Upload</h2>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="save" class="barSection" style="border-left: solid #B5B5B5 1px;">
|
|
|
|
<h2>Save</h2>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="demo">
|
|
|
|
<div class="demoContent proxy">
|
|
|
|
<h2>Proxy</h2>
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<div class="testButtons">
|
|
|
|
<p>
|
|
|
|
Send a request to /api/data to convert the spreadsheet at
|
|
|
|
`url` to a simpler format
|
|
|
|
</p>
|
|
|
|
<b>Parameters:</b>
|
|
|
|
<p>
|
|
|
|
- url=<url> the url to request
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
- N=<idx> the sheet index to use (-1 returns a list of sheet names in the workbook)
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
- t=<type> export type: "json" for json, "html" for html, default is CSV
|
|
|
|
</p>
|
|
|
|
<br/>
|
2017-04-16 08:17:21 +00:00
|
|
|
|
2021-05-06 23:51:42 +00:00
|
|
|
<b>Examples:</b>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="demoContent upload">
|
|
|
|
<h2>
|
|
|
|
Read a file
|
|
|
|
</h2>
|
|
|
|
<p>
|
|
|
|
using /api/upload
|
|
|
|
</p>
|
|
|
|
<form method="POST" action="api/upload" enctype="multipart/form-data">
|
|
|
|
<input type="hidden" name="N" value="0" />
|
|
|
|
<label class="button1" for="file">
|
|
|
|
<input
|
|
|
|
name="file"
|
|
|
|
type="file"
|
|
|
|
onChange={handleFileSelect}
|
|
|
|
/>
|
|
|
|
Choose file
|
|
|
|
</label>
|
|
|
|
<label for="t">Export type</label>
|
|
|
|
<select name="t" id="t">
|
|
|
|
<option value="csv" selected>CSV</option>
|
|
|
|
<option value="json">Array of arrays</option>
|
|
|
|
<option value="html">HTML TABLE</option>
|
|
|
|
</select>
|
2017-04-16 08:17:21 +00:00
|
|
|
|
2021-05-06 23:51:42 +00:00
|
|
|
<input class="button1" type="submit" value="Click here to upload!" />
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<div class="demoContent save">
|
|
|
|
Save
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div> -->
|
|
|
|
</div>
|
|
|
|
<script type="text/javascript">
|
|
|
|
var _gaq = _gaq || [];
|
|
|
|
_gaq.push(["_setAccount", "UA-36810333-1"]);
|
|
|
|
_gaq.push(["_setDomainName", "sheetjs.com"]);
|
|
|
|
_gaq.push(["_setAllowLinker", true]);
|
|
|
|
_gaq.push(["_trackPageview"]);
|
2017-04-16 08:17:21 +00:00
|
|
|
|
2021-05-06 23:51:42 +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);
|
|
|
|
})();
|
|
|
|
</script>
|
|
|
|
</body>
|
2017-04-16 08:17:21 +00:00
|
|
|
</html>
|