-
Notifications
You must be signed in to change notification settings - Fork 161
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
**Ceci ne veut pas dire qu’on retire le support d’Internet Explorer.** Mais bon, en pratique, personne n’a le temps de tester le site sur IE, et pire, personne non plus n’a le temps de reporter les bugs sur IE. Le site marche terriblement mal sur ces navigateurs. Désormais, une *dickbar*¹ est affiché en haut du site indiquant “Le bon fonctionnement du site avec Internet Explorer n'est pas garanti”, avec un lien “En savoir plus” pointant vers https://browsehappy.com. 1. https://daringfireball.net/linked/2011/03/06/dickbar
- Loading branch information
Showing
3 changed files
with
36 additions
and
5 deletions.
There are no files selected for viewing
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
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
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,27 @@ | ||
|
||
<div id="old-browser-warning-container"></div> | ||
|
||
{# The main JavaScript files may cause parse errors on old browsers in the #} | ||
{# future (ES6, ES7, …). It is probably better to keep this script separated. #} | ||
|
||
<script> | ||
|
||
(function () { | ||
var container = document.getElementById("old-browser-warning-container"); | ||
|
||
if (window.ActiveXObject || 'ActiveXObject' in window) { | ||
var more = document.createElement('A'); | ||
more.innerText = 'En savoir plus'; | ||
more.setAttribute('href', 'https://browsehappy.com/?locale=fr'); | ||
|
||
var div = document.createElement('DIV'); | ||
div.className = 'old-browser-warning'; | ||
div.innerText = 'Le bon fonctionnement du site avec Internet Explorer n’est pas garanti • '; | ||
div.appendChild(more); | ||
container.appendChild(div); | ||
|
||
document.body.classList.add('old-browser-warning-shown'); | ||
} | ||
})(); | ||
|
||
</script> |