here_be_dragons/demo/www/index.html

69 lines
3.3 KiB
HTML
Raw Normal View History

2020-09-14 09:46:48 +00:00
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
2020-10-17 20:30:28 +00:00
<link rel="icon" type="image/png" href="assets/favicon.ico" />
2020-09-14 09:46:48 +00:00
<title>Mapgen demo</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css"
integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z" crossorigin="anonymous">
<style>
body {
background-color: lightgrey;
}
2020-09-14 12:30:59 +00:00
canvas {
padding-left: 0;
padding-right: 0;
margin-left: auto;
margin-right: auto;
display: block;
}
2020-09-14 09:46:48 +00:00
</style>
<script src="./bootstrap.js"></script>
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<a class="navbar-brand" href="#">Mapgen demo</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent"
aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto">
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown"
aria-haspopup="true" aria-expanded="false">
Select generator
</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
2020-09-15 06:45:40 +00:00
<a class="dropdown-item" id="cellular-automata-option">Cellular Automata</a>
2020-09-14 09:46:48 +00:00
<a class="dropdown-item" id="simple-rooms-option">Simple Rooms</a>
2020-10-22 20:35:06 +00:00
<a class="dropdown-item" id="bsp-rooms-option">BSP Rooms</a>
2020-09-15 20:33:18 +00:00
<a class="dropdown-item" id="bsp-interior-option">BSP Interior</a>
2020-09-16 09:42:59 +00:00
<a class="dropdown-item" id="drunkard-option">Drunkard Walk</a>
2020-11-03 08:04:33 +00:00
<a class="dropdown-item" id="maze-option">Maze</a>
2020-11-19 20:00:36 +00:00
<a class="dropdown-item" id="voronoi-option">Voronoi Hive</a>
2020-09-15 06:45:40 +00:00
<a class="dropdown-item" id="random-option">Random Generator</a>
2020-09-14 09:46:48 +00:00
</div>
</li>
2020-10-15 20:24:14 +00:00
<input class="form-control mr-sm-2" id="seed" type="search" placeholder="Seed" aria-label="Seed">
2020-09-14 09:46:48 +00:00
</ul>
</div>
2020-10-17 17:22:57 +00:00
<a class="github-button" href="https://github.com/klangner/mapgen.rs" data-icon="octicon-star"
aria-label="Star ntkme/github-buttons on GitHub">Star</a>
2020-09-14 09:46:48 +00:00
</nav>
<canvas id="mapgen-canvas"></canvas>
2020-09-14 12:30:59 +00:00
<div id="map-info" style="text-align: center"></div>
2021-01-14 11:18:31 +00:00
<div id="map-metrics" style="text-align: center"></div>
2020-09-14 09:46:48 +00:00
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"
integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.1/dist/umd/popper.min.js"
integrity="sha384-9/reFTGAW83EW2RDu2S0VKaIzap3H66lZH81PoYlFhbGU+6BZp6G7niu735Sk7lN" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"
integrity="sha384-B4gt1jrGC7Jh4AgTPSdUtOBvfO8shuf57BaghqFfPlYxofvL8/KUEfYiJOMMV+rV" crossorigin="anonymous"></script>
2020-10-17 17:22:57 +00:00
<script async defer src="https://buttons.github.io/buttons.js"></script>
2020-09-14 09:46:48 +00:00
</body>
</html>