Files
KaTeX/website/static/js/404.js
Nathan Clonts 6a06470e99 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>
2018-10-24 22:17:35 -04:00

9 lines
245 B
JavaScript

/* 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);
});
})();