2024-05-16 16:52:34 +02:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
|
|
<title>Traque -- {{name}} | Client conscrit</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>
|
|
|
|
|
|
|
|
<style type="text/css">
|
|
|
|
#map { height: 600px; }
|
|
|
|
#codes {
|
|
|
|
position: fixed;
|
|
|
|
bottom: 0px;
|
|
|
|
z-index: 10000;
|
|
|
|
background-color: white;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
|
2024-05-22 15:54:49 +02:00
|
|
|
<script type="text/javascript" src="/utils.js"></script>
|
2024-05-16 16:52:34 +02:00
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div id="map"></div><br/>
|
|
|
|
|
|
|
|
<div id="codes"></div>
|
|
|
|
<div id="thanks">
|
|
|
|
<a href="https://dgnum.eu"><img src="/dgnum-logo.png" height=50px /></a><br/>
|
|
|
|
<span style="font-size: 0.8em">Merci à la <a href="https://dgnum.eu">Délégation Générale NUMérique de l'ENS</a>, qui héberge ce site.</span>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
2024-06-02 16:14:44 +02:00
|
|
|
id = "{{id}}";
|
|
|
|
name = "{{name}}";
|
2024-06-05 16:50:13 +02:00
|
|
|
dbg = {{dbg}};
|
2024-05-16 16:52:34 +02:00
|
|
|
|
2024-05-22 15:54:49 +02:00
|
|
|
setup_map();
|
2024-06-10 09:43:35 +02:00
|
|
|
setup_map_self();
|
2024-06-05 16:50:13 +02:00
|
|
|
// {{#if gpslog}}setup_geoLoc();{{/if}}
|
2024-05-16 16:52:34 +02:00
|
|
|
|
2024-05-22 15:54:49 +02:00
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
|
|
// EVENT LISTENNING
|
2024-05-16 16:52:34 +02:00
|
|
|
|
2024-06-05 16:50:13 +02:00
|
|
|
function self_state_hook(state){
|
|
|
|
var code_buttons = "";
|
|
|
|
if(state.Conscrit.invisibility_codes > 0)//onclick="socket.emit('useCode', 'invisibility')"
|
|
|
|
code_buttons += `<button>
|
|
|
|
Invisibilité
|
|
|
|
</button>`;
|
|
|
|
if(state.Conscrit.blur_codes > 0)//onclick="socket.emit('useCode', 'blurred')"
|
|
|
|
code_buttons += `<button>
|
|
|
|
Brouillage
|
|
|
|
</button>`;
|
|
|
|
document.getElementById(`codes`).innerHTML = code_buttons;
|
|
|
|
};
|
2024-05-16 16:52:34 +02:00
|
|
|
|
2024-06-05 16:50:13 +02:00
|
|
|
setup_evtlisten_common();
|
2024-05-16 16:52:34 +02:00
|
|
|
</script>
|
|
|
|
</body>
|
|
|
|
</html>
|