mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-10 05:28:41 +00:00
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:
committed by
Kevin Barabash
parent
4dd0e2cdca
commit
6a06470e99
8
website/static/js/404.js
Normal file
8
website/static/js/404.js
Normal 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);
|
||||
});
|
||||
})();
|
Reference in New Issue
Block a user