-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
1 parent
b3434fb
commit 1a41362
Showing
3 changed files
with
64 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |