2022-07-18 15:18:07 +02:00
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
|
|
|
|
<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>
|
|
|
|
|
2022-07-19 16:26:53 +02:00
|
|
|
<script src="https://cdn.jsdelivr.net/npm/d3@7"></script>
|
2022-07-22 10:51:04 +02:00
|
|
|
|
|
|
|
<script type="javascript" src="https://code.jquery.com/jquery-3.6.0.min.js"> </script>
|
2022-07-19 16:26:53 +02:00
|
|
|
<script src="jquery-csv.js"> </script>
|
2022-07-18 15:18:07 +02:00
|
|
|
<meta charset="utf-8">
|
|
|
|
<title>Track your bike</title>
|
2022-07-22 13:03:03 +02:00
|
|
|
|
2022-07-18 15:18:07 +02:00
|
|
|
</head>
|
|
|
|
<body>
|
2022-08-17 11:32:42 +02:00
|
|
|
<div>
|
|
|
|
<button onclick="showBike()"> Locate your Bike!</button>
|
|
|
|
<button onclick="displayLastRoute()"> Show last travelled route</button>
|
|
|
|
</div>
|
2022-08-02 09:21:23 +02:00
|
|
|
<!-- <button onclick="createlistitem()"> create route</button> -->
|
2022-07-18 16:53:53 +02:00
|
|
|
|
2022-07-22 13:03:03 +02:00
|
|
|
<ul id="list">
|
2022-07-18 15:18:07 +02:00
|
|
|
</ul>
|
|
|
|
|
|
|
|
</div>
|
2022-07-18 16:53:53 +02:00
|
|
|
</li>
|
|
|
|
</ul>
|
2022-08-17 11:32:42 +02:00
|
|
|
<!-- The MAP-->
|
|
|
|
<div style="position: relative; float:left;" id="map"></div>
|
2022-07-18 15:18:07 +02:00
|
|
|
|
|
|
|
<script type="text/javascript" src="lib/orbitdb.js" charset="utf-8"></script>
|
|
|
|
|
|
|
|
<script type="text/javascript" src="lib/ipfs.js" charset="utf-8"></script>
|
|
|
|
|
|
|
|
<script type="text/javascript" src="functions.js"></script>
|
|
|
|
|
|
|
|
<script type="text/javascript" src="map.js"></script>
|
|
|
|
|
2022-07-18 16:53:53 +02:00
|
|
|
<script type="text/javascript" src="execution.js"></script>
|
2022-07-19 16:26:53 +02:00
|
|
|
|
|
|
|
<script type="file" src="new.csv"></script>
|
2022-07-22 10:51:04 +02:00
|
|
|
<script>
|
2022-07-22 13:03:03 +02:00
|
|
|
async function prepare_time(){
|
|
|
|
var currentime = await getCurrentTime();
|
|
|
|
return currentime
|
2022-08-17 16:43:02 +02:00
|
|
|
}
|
2022-07-19 16:26:53 +02:00
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<style> #map { height: 600px; width: 600px; margin: auto }</style>
|
2022-08-17 11:32:42 +02:00
|
|
|
|
|
|
|
<!-- Buttons for Route-->
|
|
|
|
<div class="routes">
|
|
|
|
<button onclick="showRoutes()"> Show Routes </button>
|
|
|
|
</div>
|
|
|
|
<style>
|
2022-07-18 15:18:07 +02:00
|
|
|
|
2022-08-17 11:32:42 +02:00
|
|
|
</style>
|