mapcomplete/theme.html

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

121 lines
5 KiB
HTML
Raw Normal View History

2021-12-21 18:35:31 +01:00
<!DOCTYPE html>
<!-- WARNING: index.html serves as a template. If you want to change something, change it there -->
<html lang="en">
<head>
<meta charset="UTF-8">
<meta content="width=device-width, initial-scale=1.0, user-scalable=no" name="viewport">
<link href="./css/mobile.css" rel="stylesheet"/>
<link href="./css/openinghourstable.css" rel="stylesheet"/>
<link href="./css/tagrendering.css" rel="stylesheet"/>
<link href="css/ReviewElement.css" rel="stylesheet"/>
<link href="./css/index-tailwind-output.css" rel="stylesheet"/>
<link href="./css/wikipedia.css" rel="stylesheet"/>
<meta content="website" property="og:type">
<!-- THEME-SPECIFIC -->
<!-- Every theme gets their own html page, this is created by a script; this part will be removed except for the index -->
<title>MapComplete</title>
<link href="./assets/svg/add.svg" rel="icon" sizes="any" type="image/svg+xml">
<meta content="./assets/SocialImage.png" property="og:image">
<meta content="MapComplete - editable, thematic maps with OpenStreetMap" property="og:title">
<meta content="MapComplete is a platform to visualize OpenStreetMap on a specific topic and to easily contribute data back to it."
property="og:description">
2022-03-10 16:26:25 +01:00
<link href="./assets/generated/images/assets_svg_mapcomplete_logo512.png" rel="apple-touch-icon" sizes="512x512">
<link href="./assets/generated/images/assets_svg_mapcomplete_logo384.png" rel="apple-touch-icon" sizes="384x384">
<link href="./assets/generated/images/assets_svg_mapcomplete_logo192.png" rel="apple-touch-icon" sizes="192x192">
<link href="./assets/generated/images/assets_svg_mapcomplete_logo180.png" rel="apple-touch-icon" sizes="180x180">
<link href="./assets/generated/images/assets_svg_mapcomplete_logo152.png" rel="apple-touch-icon" sizes="152x152">
<link href="./assets/generated/images/assets_svg_mapcomplete_logo144.png" rel="apple-touch-icon" sizes="144x144">
<link href="./assets/generated/images/assets_svg_mapcomplete_logo128.png" rel="apple-touch-icon" sizes="128x128">
<link href="./assets/generated/images/assets_svg_mapcomplete_logo120.png" rel="apple-touch-icon" sizes="120x120">
<link href="./assets/generated/images/assets_svg_mapcomplete_logo96.png" rel="apple-touch-icon" sizes="96x96">
<link href="./assets/generated/images/assets_svg_mapcomplete_logo72.png" rel="apple-touch-icon" sizes="72x72">
2021-12-21 18:35:31 +01:00
<!-- THEME-SPECIFIC-END-->
2023-05-25 10:46:32 +02:00
2021-12-21 18:35:31 +01:00
</head>
<body>
2023-05-25 10:46:32 +02:00
<div class="h-full" id="maindiv">
<div id="default-main h-full">
2023-05-25 15:52:23 +02:00
<div class="w-full h-screen flex flex-col items-center justify-between p-8">
2023-05-25 10:46:32 +02:00
<div class="w-full h-full flex flex-col items-center">
2023-06-04 23:58:29 +02:00
2023-05-25 15:52:23 +02:00
<div id="default-title">
Loading MapComplete, hang on...
</div>
2023-06-04 23:58:29 +02:00
2023-05-25 15:52:23 +02:00
<p class="text-xl" id="descriptions-while-loading">
<!-- DESCRIPTION START -->
MapComplete is an easy to use map viewer and map editor
<!-- DESCRIPTION END -->
</p>
<p>
Made with OpenStreetMap
</p>
2023-05-25 10:46:32 +02:00
</div>
2023-06-04 23:58:29 +02:00
2023-05-25 10:46:32 +02:00
<!-- IMAGE-START -->
2023-06-04 23:58:29 +02:00
<img class="p-8 h-32 w-32 self-start" src="./assets/svg/add.svg">
2023-05-25 10:46:32 +02:00
<!-- IMAGE-END -->
</div>
2022-02-04 16:22:22 +01:00
</div>
2021-12-21 18:35:31 +01:00
</div>
2023-06-04 23:58:29 +02:00
<div id="belowmap" class="absolute top-0 left-0" style="z-index: -1;">Below</div>
2021-12-21 18:35:31 +01:00
2023-04-13 23:40:28 +02:00
<script>
2022-02-04 16:22:22 +01:00
2023-05-25 10:46:32 +02:00
let lang = ((navigator.languages && navigator.languages[0]) || navigator.language || navigator.userLanguage || 'en').substr(0, 2);
function filterLangs(maindiv) {
2023-04-13 23:40:28 +02:00
let foundLangs = 0
2023-05-25 10:46:32 +02:00
for (const child of Array.from(maindiv.children)) {
if (child.attributes.lang?.value === lang) {
foundLangs++
2023-04-13 23:40:28 +02:00
}
}
2023-05-25 10:46:32 +02:00
if (foundLangs === 0) {
2023-04-13 23:40:28 +02:00
lang = "en"
}
2023-05-25 10:46:32 +02:00
for (const child of Array.from(maindiv.children)) {
2023-04-13 23:40:28 +02:00
const childLang = child.attributes.lang
2023-05-25 10:46:32 +02:00
if (childLang === undefined) {
2023-04-13 23:40:28 +02:00
continue
}
2023-05-25 10:46:32 +02:00
if (childLang.value === lang) {
2023-04-13 23:40:28 +02:00
continue
}
child.parentElement.removeChild(child)
2023-05-25 10:46:32 +02:00
}
2023-04-13 23:40:28 +02:00
}
2023-05-25 10:46:32 +02:00
2023-05-25 13:19:42 +02:00
filterLangs(document.getElementById("descriptions-while-loading"))
2023-05-25 10:46:32 +02:00
filterLangs(document.getElementById("default-title"))
2023-04-13 23:40:28 +02:00
</script>
2021-12-21 18:35:31 +01:00
2023-05-25 10:46:32 +02:00
<script src="./index.ts" type="module"></script>
2021-12-21 18:35:31 +01:00
<script async data-goatcounter="https://pietervdvn.goatcounter.com/count" src="//gc.zgo.at/count.js"></script>
2022-05-13 01:20:08 +02:00
<script>
window.addEventListener('load', () => {
if ('serviceWorker' in navigator) {
// register service worker
navigator.serviceWorker.register('/service-worker.js').then(
() => {
2022-06-02 02:59:34 +02:00
console.log('Service worker registration successful');
2022-05-13 01:20:08 +02:00
},
err => {
2022-06-02 02:59:34 +02:00
console.error('Service worker registration failed', err)
2022-05-13 01:20:08 +02:00
});
} else {
console.log("Service workers are not supported")
}
});
</script>
2021-12-21 18:35:31 +01:00
</body>
</html>