planet-wars/mapbuilder/index.html

48 lines
1.2 KiB
HTML
Raw Normal View History

2019-10-20 09:08:13 +00:00
<!DOCTYPE html>
<html>
2019-10-20 10:36:18 +00:00
<head>
2019-10-20 09:08:13 +00:00
<meta charset="utf-8">
<title>Planetwars Mapbuilder</title>
2019-10-20 13:53:23 +00:00
<!-- <link rel="stylesheet" type="text/css" href="./static/res/style.css"> -->
2019-10-20 10:36:18 +00:00
<link rel="shortcut icon" type="image/x-icon" href="./favicon.ico" />
</head>
<body>
<div id="mySidepanel" class="sidepanel">
<a href="javascript:void(0)" class="closebtn" onclick="toggleNav()">&times;</a>
2019-10-20 17:32:05 +00:00
<div class="section">
<span class="title">Grid</span>
2019-10-29 17:30:17 +00:00
<div id="gridConfig">
2019-10-20 17:32:05 +00:00
</div>
2019-10-29 17:30:17 +00:00
<button class="btn" id="addbtn">&#43;</button>
2019-10-20 17:32:05 +00:00
</div>
2019-10-20 10:36:18 +00:00
</div>
2019-10-20 13:53:23 +00:00
<div id="canvasWrapper" class="wrapper">
<canvas id="canvas" class="canvas"></canvas>
</div>
2019-10-29 17:30:17 +00:00
<button id="openbtn" class="openbtn" onclick="toggleNav()">&#9776;</button>
2019-10-20 10:36:18 +00:00
</body>
<script>
var nav_open = false;
/* Set the width of the sidebar to 250px (show it) */
function toggleNav() {
if (nav_open) {
document.getElementById("mySidepanel").style.width = "0";
} else {
2019-10-20 17:32:05 +00:00
document.getElementById("mySidepanel").style.width = "350px";
2019-10-20 10:36:18 +00:00
}
nav_open = !nav_open;
}
</script>
2019-10-20 13:53:23 +00:00
2019-10-20 10:36:18 +00:00
<script src="dist/bundle.js"></script>
</html>