2019-04-22 05:19:31 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<title>World Map Generator</title>
|
|
|
|
<link rel='stylesheet' href="{{ url_for('static', filename='style.css') }}">
|
|
|
|
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
|
|
|
</head>
|
|
|
|
<body class='container-fluid'>
|
|
|
|
<div class='row'>
|
|
|
|
<main class='col d-flex justify-content-center align-items-center'>
|
|
|
|
<!-- <canvas id='board'></canvas> -->
|
2019-05-29 13:16:37 +00:00
|
|
|
<img src='' id='map' width='80%'>
|
2019-04-22 05:19:31 +00:00
|
|
|
|
|
|
|
<div class='spinner-border text-primary' role='status' id='spinner'>
|
|
|
|
<span class='sr-only'>Loading...</span>
|
|
|
|
</div>
|
|
|
|
</main>
|
|
|
|
|
|
|
|
<aside class='col-3 px-4 bg-dark text-light text-center py-3'>
|
|
|
|
<h3>World Map Generator</h3>
|
|
|
|
|
2019-04-26 08:44:43 +00:00
|
|
|
<div class='panel px-4 pb-3'>
|
2019-04-22 05:19:31 +00:00
|
|
|
<form class='mt-5' id='map-settings'>
|
2019-04-22 07:57:20 +00:00
|
|
|
{% for k, v in parameters.items() %}
|
|
|
|
<div class='form-group'>
|
|
|
|
<label name='{{ k }}'>{{ k | replace('_', ' ') | title }}</label>
|
2019-05-16 05:26:13 +00:00
|
|
|
{% if v["type"] == "bool" %}
|
|
|
|
<input id='{{ k }}' name='{{ k }}'
|
|
|
|
type='checkbox'
|
|
|
|
class='form-control'>
|
|
|
|
{% else %}
|
|
|
|
<input id='{{ k }}' name='{{ k }}'
|
|
|
|
type="number"
|
|
|
|
class='form-control'
|
|
|
|
min='{{ v["min"] }}' value='{{ v["default"] }}' max='{{ v["max"] }}' step='{{ v["step"] }}'>
|
|
|
|
{% endif %}
|
2019-04-22 07:57:20 +00:00
|
|
|
{% if v["description"] %}
|
|
|
|
<small class="form-text text-muted">{{ v["description"] }}</small>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
2019-04-22 05:19:31 +00:00
|
|
|
|
|
|
|
<button type="submit" class="btn btn-primary">Generate</button>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</aside>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
|
|
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
|
|
|
|
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
|
|
|
|
<script src="{{ url_for('static', filename='script.js') }}"></script>
|
|
|
|
</body>
|
|
|
|
</html>
|