Website custom 404 page (#1748)

* initial 404 page

* improve styles

* update formula & alignment on 404 page

* attempt to redirect all bad URLs to 404 page

* try 301 to force redirect to 404.html

* try loading static resources with absolute path

* fix some absolute paths

* style & content improvements

* reduce equation font size for really narrow screens

* revert changes (?) to browserslistrc

* Update website/static/static/404.css

Co-Authored-By: kokopelli314 <nacclonts@Gmail.com>

* Update website/static/static/404.css

Co-Authored-By: kokopelli314 <nacclonts@Gmail.com>

* Update website/static/static/404.css

Co-Authored-By: kokopelli314 <nacclonts@Gmail.com>
This commit is contained in:
Nathan Clonts
2018-10-24 20:17:35 -06:00
committed by Kevin Barabash
parent 4dd0e2cdca
commit 6a06470e99
4 changed files with 158 additions and 0 deletions

8
website/static/js/404.js Normal file
View File

@@ -0,0 +1,8 @@
/* eslint-disable no-var */
/* global katex: false */
(function() {
var tex = document.getElementsByClassName("tex");
Array.prototype.forEach.call(tex, function(el) {
katex.render(el.getAttribute("data-expr"), el);
});
})();