mirror of
https://github.com/LorenEteval/Furious.git
synced 2026-10-11 16:58:11 +03:00
73 lines
2.1 KiB
HTML
73 lines
2.1 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta
|
|
http-equiv="Content-Security-Policy"
|
|
content="default-src 'none'; script-src 'self' qrc: blob:; style-src 'self' 'unsafe-inline'; connect-src https://tiles.openfreemap.org; img-src data: blob: https://tiles.openfreemap.org; font-src data: https://tiles.openfreemap.org; worker-src blob:; child-src blob:"
|
|
>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<link rel="stylesheet" href="maplibre-gl.css">
|
|
<style>
|
|
html, body, #map {
|
|
width: 100%;
|
|
height: 100%;
|
|
margin: 0;
|
|
overflow: hidden;
|
|
background: transparent;
|
|
}
|
|
|
|
:root {
|
|
--endpoint-attribution-background: rgb(255 255 255 / 92%);
|
|
--endpoint-attribution-foreground: #202020;
|
|
}
|
|
|
|
:root[data-theme="dark"] {
|
|
--endpoint-attribution-background: rgb(24 30 39 / 92%);
|
|
--endpoint-attribution-foreground: #f5f5f5;
|
|
}
|
|
|
|
.endpoint-marker {
|
|
width: 20px;
|
|
height: 20px;
|
|
box-sizing: border-box;
|
|
border: 3px solid white;
|
|
border-radius: 50%;
|
|
background: var(--endpoint-accent, #0f7bff);
|
|
box-shadow: 0 1px 5px rgb(0 0 0 / 45%);
|
|
}
|
|
|
|
.maplibregl-canvas:focus,
|
|
.maplibregl-canvas:focus-visible {
|
|
outline: none;
|
|
}
|
|
|
|
.maplibregl-ctrl-attrib.maplibregl-compact {
|
|
max-width: calc(100% - 20px);
|
|
color: var(--endpoint-attribution-foreground) !important;
|
|
background-color: var(--endpoint-attribution-background) !important;
|
|
box-shadow: 0 1px 4px rgb(0 0 0 / 24%);
|
|
}
|
|
|
|
.maplibregl-ctrl-attrib a {
|
|
color: inherit !important;
|
|
}
|
|
|
|
.maplibregl-ctrl-attrib.maplibregl-compact-show
|
|
.maplibregl-ctrl-attrib-button {
|
|
background-color: transparent !important;
|
|
}
|
|
|
|
:root[data-theme="dark"] .maplibregl-ctrl-attrib-button {
|
|
filter: invert(1) brightness(1.7);
|
|
}
|
|
</style>
|
|
<script src="qrc:///qtwebchannel/qwebchannel.js"></script>
|
|
<script src="maplibre-gl.js"></script>
|
|
</head>
|
|
<body>
|
|
<div id="map" aria-label="Approximate location map"></div>
|
|
<script src="EndpointMap.js"></script>
|
|
</body>
|
|
</html>
|