-
Notifications
You must be signed in to change notification settings - Fork 0
/
frommapfile.html
26 lines (26 loc) · 938 Bytes
/
frommapfile.html
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
<!DOCTYPE html>
<html>
<head>
<link href="sotesmap.css" rel="stylesheet" type="text/css">
<style>
</style>
<script src="sotesconsts.js" type="text/javascript"></script>
<script src="sotesmapfile.js" type="text/javascript"></script>
<script>
const FR = new FileReader
const convert = () => {
FR.readAsArrayBuffer(document.querySelector('input').files[0])
}
FR.onload = () => {
window.map = MapFile.displayData(document.querySelector('section'), FR.result)
}
</script>
</head>
<body>
<input type="file" onchange="convert()" />
<hr>
<section>
<div class="lds-default"><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div></div>
</section>
</body>
</html>