-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmap.html
More file actions
29 lines (29 loc) · 1.18 KB
/
map.html
File metadata and controls
29 lines (29 loc) · 1.18 KB
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
<!DOCTYPE html>
<html>
<head>
<title>Map Editor</title>
<meta charset="utf-8">
<script src="map.js"></script>
<script src="event.js"></script>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<h1>Map Editor</h1>
<textarea id="main" rows="10" cols="100" oninput="boot()" placeholder="Paste your main file here, ie the entire map JSON text."></textarea><br>
<div id="event-list"></div>
<button onclick="push()">↑ Push Changes ↑</button>
<h1>Event Editor</h1>
<textarea id="json" rows="10" cols="100" oninput="load()" placeholder="This is where you can manage individual events." readonly></textarea><br>
<span>Safe Mode: <input type="checkbox" id="safemode" onchange="toggleSafeMode()" checked></input></span><br>
<h2>Events</h2>
<table id="events" align="center"></table>
<button onclick="addRow()">Add Event</button>
</body>
<script>
const MAP_JSON = document.getElementById('main');
const MAP_EVENTS = document.getElementById('event-list');
const EVENTS_GUI = document.getElementById('events');
const EVENTS_JSON = document.getElementById('json');
const EVENTS_JSON_SAFEMODE = document.getElementById('safemode');
</script>
</html>