planet-wars/mapbuilder/index.html

48 lines
1.2 KiB
HTML
Raw Normal View History

2019-10-20 11:08:13 +02:00
<!DOCTYPE html>
<html>
2019-10-20 12:36:18 +02:00
<head>
2019-10-20 11:08:13 +02:00
<meta charset="utf-8">
<title>Planetwars Mapbuilder</title>
2019-10-20 15:53:23 +02:00
<!-- <link rel="stylesheet" type="text/css" href="./static/res/style.css"> -->
2019-10-20 12:36:18 +02: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 19:32:05 +02:00
<div class="section">
<span class="title">Grid</span>
2019-10-29 18:30:17 +01:00
<div id="gridConfig">
2019-10-20 19:32:05 +02:00
</div>
2019-10-29 18:30:17 +01:00
<button class="btn" id="addbtn">&#43;</button>
2019-10-20 19:32:05 +02:00
</div>
2019-10-20 12:36:18 +02:00
</div>
2019-10-20 15:53:23 +02:00
<div id="canvasWrapper" class="wrapper">
<canvas id="canvas" class="canvas"></canvas>
</div>
2019-10-29 18:30:17 +01:00
<button id="openbtn" class="openbtn" onclick="toggleNav()">&#9776;</button>
2019-10-20 12:36:18 +02: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 19:32:05 +02:00
document.getElementById("mySidepanel").style.width = "350px";
2019-10-20 12:36:18 +02:00
}
nav_open = !nav_open;
}
</script>
2019-10-20 15:53:23 +02:00
2019-10-20 12:36:18 +02:00
<script src="dist/bundle.js"></script>
</html>