61 lines
1.7 KiB
HTML
61 lines
1.7 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>Traque | Client vieilleux</title>
|
|
|
|
<!-- LEAFLET INCLUDE -->
|
|
<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>
|
|
|
|
<!-- SOCKET.IO INCLUDE -->
|
|
<script src="/socket.io/socket.io.js"></script>
|
|
|
|
<style type="text/css">
|
|
#map { height: 600px; }
|
|
#below {
|
|
position: fixed;
|
|
bottom: 0px;
|
|
z-index: 10000;
|
|
background-color: white;
|
|
width: 100%;
|
|
}
|
|
</style>
|
|
|
|
<script type="text/javascript" src="/utils.js"></script>
|
|
</head>
|
|
<body>
|
|
<div id="map"></div><br/>
|
|
|
|
<div id="below">
|
|
<input type="number" id="color" min="-1" value="0"/><button id="setColor">Set color</button><br/>
|
|
</div>
|
|
|
|
<script type="text/javascript">
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
// SETUP MAP
|
|
|
|
setup_map();
|
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
// UPDATE MAP
|
|
|
|
id = "%ID"; // %ID will be replaced by the real id.
|
|
socket = io({rejectUnauthorized: false, auth: {id: id, type:"vieux"}});
|
|
setup_socket_common();
|
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
// SETTINGS -- State
|
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
// GEOLOCALISATION
|
|
|
|
setup_geoLoc();
|
|
</script>
|
|
</body>
|
|
</html>
|