diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index ad328ca..b1c1992 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -10,6 +10,9 @@ {{ partial "favicon.html" }} + + {{ partial "script_async.html" "js/ie11-deterrent.js" }} + {{ partial "style.html" "scss/style.scss" }} {{ partial "style.html" "css/font-awesome.css" }} diff --git a/package-lock.json b/package-lock.json index b0b11cc..22f5d84 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,6 +9,7 @@ "version": "1.0.0", "dependencies": { "@fortawesome/fontawesome-free": "5.15.3", + "@ledge/is-ie-11": "^7.0.0", "bootstrap": "4.6.1", "elevator.js": "1.0.1", "jquery": "3.6.0", @@ -103,6 +104,11 @@ "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": { "version": "1.1.1", "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", "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": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/@types/color-name/-/color-name-1.1.1.tgz", diff --git a/package.json b/package.json index 9087e1f..ec0d6ee 100644 --- a/package.json +++ b/package.json @@ -14,6 +14,7 @@ }, "dependencies": { "@fortawesome/fontawesome-free": "5.15.3", + "@ledge/is-ie-11": "^7.0.0", "bootstrap": "4.6.1", "elevator.js": "1.0.1", "jquery": "3.6.0", diff --git a/static/src/js/ie11-deterrent.js b/static/src/js/ie11-deterrent.js new file mode 100644 index 0000000..392d476 --- /dev/null +++ b/static/src/js/ie11-deterrent.js @@ -0,0 +1,6 @@ +const { isIE11 } = require('@ledge/is-ie-11'); + +if (isIE11()) { + // Stop using internet explorer! + window.location.assign('https://stopinternetexplorer.com/'); +}