Skip to content

Commit

Permalink
add unsupportedBrowser.html page (fixes #702) (#703)
Browse files Browse the repository at this point in the history
images copied from MapStore2/web/client/product/assets/img, html
page copied from MapStore2/web/client/unsupportedBrowser.html and
adapted to point at the right image paths.
  • Loading branch information
landryb authored and f-necas committed May 28, 2024
1 parent cafb62c commit 26807a3
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 0 deletions.
Binary file added assets/img/MapStore2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/main-desktop-browser-logos.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
64 changes: 64 additions & 0 deletions unsupportedBrowser.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no">
<title>MapStore</title>
<style>
body {
margin: 0;
}
#container {
font-family: 'Noto Sans', sans-serif;
display: flex;
flex-direction: column;
align-items: center;
position: absolute;
height: 100%;
width: 100%;
justify-content: center;
}
</style>
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans&display=swap" rel="stylesheet">
</head>
<body>
<div id="container">
<img src="assets/img/MapStore2.png" alt="Mapstore2 Logo">
<h2 class="browserUnsupported">Current Browser is not supported</h2>
<p class="description">These are the ones we support</p>
<img src="assets/img/main-desktop-browser-logos.jpg" width="300" alt="Supported Browser (Chrome, Firefox, Safari, Edge)">
</div>
<script>
switch(navigator.language) {
case "en-US": case "en": {
document.querySelector(".browserUnsupported").innerHTML = "Current Browser is not supported";
document.querySelector(".description").innerHTML = "These are the ones we support";
break;
}
case "it-IT": case "it": {
document.querySelector(".browserUnsupported").innerHTML = "Il tuo browser non è supportato";
document.querySelector(".description").innerHTML = "Questi sono i browser supportati";
break;
}
case "fr-FR": case "fr": {
document.querySelector(".browserUnsupported").innerHTML = "Le navigateur actuel n'est pas pris en charge";
document.querySelector(".description").innerHTML = "Ce sont ceux que nous soutenons";
break;
}
case "de-DE": case "de": {
document.querySelector(".browserUnsupported").innerHTML = "Der aktuelle Browser wird nicht unterstützt";
document.querySelector(".description").innerHTML = "Dies sind diejenigen, die wir unterstützen";
break;
}
case "es-ES": case "es": {
document.querySelector(".browserUnsupported").innerHTML = "El navegador actual no es compatible";
document.querySelector(".description").innerHTML = "Estos son los que apoyamos";
break;
}
}
console.log(window)
</script>
</body>
</html>

0 comments on commit 26807a3

Please sign in to comment.