-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
30 lines (25 loc) · 901 Bytes
/
index.html
File metadata and controls
30 lines (25 loc) · 901 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!DOCTYPE html>
<html>
<head>
<title> Read Excel File</title>
<script src="https://unpkg.com/browse/read-excel-file@5.8.6/bundle/read-excel-file.min.js"></script>
</head>
<body>
<div style="margin: auto; width: 50%;margin-top: 80px; padding: 30px; background-color: #dedede;">
<h2>Excel to JSON Converter</h2>
<input type="file" id="input" />
<br>In GitHub zit deze repo<br>
<textarea name="json-data" id="json-data" rows="25" style="width: 100%;"></textarea>
<br><br>
<button id="dl-json">Download JSON file</button>
</div>
<script>
var input = document.getElementById('input');
input.addEventListener('change', function () {
readXLsxFile(input.files[0]).then(function(data) {
console.log(data);
});
})
</script>
</body>
</html>