Skip to content
Snippets Groups Projects
index.html 1.41 KiB
Newer Older
Florent Poittevin's avatar
Florent Poittevin committed
<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>Portal</title>
Florent Poittevin's avatar
Florent Poittevin committed
  <base href="/">

  <meta name="viewport"
        content="width=device-width, initial-scale=1 maximum-scale=1, user-scalable=0"
  >
  <link rel="manifest"
        href="manifest.webmanifest"
  >
  <meta name="theme-color"
        content="#000000"
  >
Florent Poittevin's avatar
Florent Poittevin committed
</head>
<body>
Florent Poittevin's avatar
Florent Poittevin committed
<dlcm-root></dlcm-root>
<noscript>Please enable JavaScript to continue using this application.</noscript>
<script>
  var ua = window.navigator.userAgent;

  var browserUnnsuported;
  var msie = ua.indexOf('MSIE ');
  if (msie > -1) {
    // IE 10 or older => return version number
    browserUnnsuported = "Internet Explorer " + parseInt(ua.substring(msie + 5, ua.indexOf('.', msie)), 10);
  }

  var trident = ua.indexOf('Trident/');
  if (trident > -1) {
    // IE 11 => return version number
    var rv = ua.indexOf('rv:');
    browserUnnsuported = "Internet Explorer " + parseInt(ua.substring(rv + 3, ua.indexOf('.', rv)), 10);
  }

  var edge = ua.indexOf('Edge/');
  if (edge > -1) {
    // Edge (IE 12+) => return version number
    browserUnnsuported = "Edge " + parseInt(ua.substring(edge + 5, ua.indexOf('.', edge)), 10);
  }

  if (browserUnnsuported) {
    alert("Your browser " + browserUnnsuported + " is not supported by this application.\nPlease use a browser more recent like Chrome or Firefox.");
    document.body.style.display = "none";
  }
</script>
Florent Poittevin's avatar
Florent Poittevin committed
</body>
</html>