1
Fork 0

Kick off IE11 users

This commit is contained in:
Jake Howard 2022-04-15 21:44:16 +01:00
parent 6e2cf75583
commit a06b409e02
Signed by: jake
GPG key ID: 57AFB45680EDD477
4 changed files with 21 additions and 0 deletions

View file

@ -10,6 +10,9 @@
{{ partial "favicon.html" }} {{ partial "favicon.html" }}
<!-- Intentionally early, to prevent the rest of the page rendering -->
{{ partial "script_async.html" "js/ie11-deterrent.js" }}
{{ partial "style.html" "scss/style.scss" }} {{ partial "style.html" "scss/style.scss" }}
{{ partial "style.html" "css/font-awesome.css" }} {{ partial "style.html" "css/font-awesome.css" }}

11
package-lock.json generated
View file

@ -9,6 +9,7 @@
"version": "1.0.0", "version": "1.0.0",
"dependencies": { "dependencies": {
"@fortawesome/fontawesome-free": "5.15.3", "@fortawesome/fontawesome-free": "5.15.3",
"@ledge/is-ie-11": "^7.0.0",
"bootstrap": "4.6.1", "bootstrap": "4.6.1",
"elevator.js": "1.0.1", "elevator.js": "1.0.1",
"jquery": "3.6.0", "jquery": "3.6.0",
@ -103,6 +104,11 @@
"node": ">=6" "node": ">=6"
} }
}, },
"node_modules/@ledge/is-ie-11": {
"version": "7.0.0",
"resolved": "https://registry.npmjs.org/@ledge/is-ie-11/-/is-ie-11-7.0.0.tgz",
"integrity": "sha512-+GYssT+YJ41STf0D/rgPgDDLf88cUKkRZhlh4+P7+JNl5ZhA4Pji1x8WRHrOA1ttaZCk1ootFW1WvRaGom5rmw=="
},
"node_modules/@types/color-name": { "node_modules/@types/color-name": {
"version": "1.1.1", "version": "1.1.1",
"resolved": "https://registry.npmjs.org/@types/color-name/-/color-name-1.1.1.tgz", "resolved": "https://registry.npmjs.org/@types/color-name/-/color-name-1.1.1.tgz",
@ -7654,6 +7660,11 @@
"resolved": "https://registry.npmjs.org/@fortawesome/fontawesome-free/-/fontawesome-free-5.15.3.tgz", "resolved": "https://registry.npmjs.org/@fortawesome/fontawesome-free/-/fontawesome-free-5.15.3.tgz",
"integrity": "sha512-rFnSUN/QOtnOAgqFRooTA3H57JLDm0QEG/jPdk+tLQNL/eWd+Aok8g3qCI+Q1xuDPWpGW/i9JySpJVsq8Q0s9w==" "integrity": "sha512-rFnSUN/QOtnOAgqFRooTA3H57JLDm0QEG/jPdk+tLQNL/eWd+Aok8g3qCI+Q1xuDPWpGW/i9JySpJVsq8Q0s9w=="
}, },
"@ledge/is-ie-11": {
"version": "7.0.0",
"resolved": "https://registry.npmjs.org/@ledge/is-ie-11/-/is-ie-11-7.0.0.tgz",
"integrity": "sha512-+GYssT+YJ41STf0D/rgPgDDLf88cUKkRZhlh4+P7+JNl5ZhA4Pji1x8WRHrOA1ttaZCk1ootFW1WvRaGom5rmw=="
},
"@types/color-name": { "@types/color-name": {
"version": "1.1.1", "version": "1.1.1",
"resolved": "https://registry.npmjs.org/@types/color-name/-/color-name-1.1.1.tgz", "resolved": "https://registry.npmjs.org/@types/color-name/-/color-name-1.1.1.tgz",

View file

@ -14,6 +14,7 @@
}, },
"dependencies": { "dependencies": {
"@fortawesome/fontawesome-free": "5.15.3", "@fortawesome/fontawesome-free": "5.15.3",
"@ledge/is-ie-11": "^7.0.0",
"bootstrap": "4.6.1", "bootstrap": "4.6.1",
"elevator.js": "1.0.1", "elevator.js": "1.0.1",
"jquery": "3.6.0", "jquery": "3.6.0",

View file

@ -0,0 +1,6 @@
const { isIE11 } = require('@ledge/is-ie-11');
if (isIE11()) {
// Stop using internet explorer!
window.location.assign('https://stopinternetexplorer.com/');
}