added current code
This commit is contained in:
parent
557558acc6
commit
41e5e9b032
39 changed files with 2431 additions and 215 deletions
44
templates/index.html.hbs
Normal file
44
templates/index.html.hbs
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="/static/css/bootstrap.min.css"/>
|
||||
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.8.0/dist/leaflet.css"
|
||||
integrity="sha512-hoalWLoI8r4UszCkZ5kL8vayOGVae1oxXe/2A4AO6J9+580uKHDO3JdHb7NzwwzK5xr/Fs0W40kiNHxM9vyTtQ=="
|
||||
crossorigin=""/>
|
||||
<script src="https://unpkg.com/leaflet@1.8.0/dist/leaflet.js"
|
||||
integrity="sha512-BB3hKbKWOc9Ez/TAwyWxNXeoV9c1v6FIeYiBieIWkpLjauysF18NzgR1MBNBXf8/KABdlkX68nAhlwcDFLGPCQ=="
|
||||
crossorigin=""></script>
|
||||
<script src="/static/js/leaflet-color-markers.js"></script>
|
||||
<style>
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<nav class="navbar bg-secondary">
|
||||
<h1>FaPra OSM Ocean Routing</h1>
|
||||
</nav>
|
||||
</header>
|
||||
<div class="container-fluid d-flex flex-column min-vh-100">
|
||||
<div class="flex-grow-1 row">
|
||||
<div class="col-3">
|
||||
<form class="" id="queryform">
|
||||
<div class="form group">
|
||||
<label for="from">From</label>
|
||||
<input type="text" class="form-control" name="from" id="from">
|
||||
</div>
|
||||
<div class="form group">
|
||||
<label for="to">To</label>
|
||||
<input type="text" class="form-control" name="to" id="to">
|
||||
</div>
|
||||
|
||||
</form>
|
||||
<button class="btn btn-primary" onclick="get_route()">Submit</button>
|
||||
<button class="btn btn-primary" onclick="get_random_route()">Random Route</button>
|
||||
<p>Route Cost: <input class="form-control " type="text" id="routecost" readonly></p>
|
||||
</div>
|
||||
<div id="map" class="col-9"></div>
|
||||
<script type="text/javascript" src="/static/js/script.js"></script>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue