-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathload_map.html
45 lines (43 loc) · 1.13 KB
/
load_map.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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Demo and Map Viewer</title>
<style>
body {
background: #ccc;
font-family: sans-serif;
}
h1 {
font-size: 16pt;
}
.game {
position: absolute;
top: 500px;
left: 0px;
margin: 0px;
border: 0;
width: 100%;
height: 100%;
overflow: hidden;
display: block;
}
</style>
<script src="enable-threads.js"></script>
</head>
<body onload="OnLoad();">
<canvas class="game" id="canvas" oncontextmenu="event.preventDefault();"></canvas>
<h1 id="renderdemos">Render Demo</h1>
<form action='#' onsubmit="() => { return false; }">
<input type='file' id='DemoFileInput'>
<input type='button' id='DemoFileLoad' value='Load' onclick='LoadDemoFile();'>
</form>
<h1 id="rendermap">Render Map</h1>
<form action='#' onsubmit="() => { return false; }">
<input type='file' id='MapFileInput'>
<input type='button' id='MapFileLoad' value='Load' onclick='LoadMapFile();'>
</form>
<script src="load_map.js"></script>
</body>
</html>