Improved backgrounds, builds, readability, roundings and Added lists properly
Update .gitignore, compile.cmd, and 20 more files...
This commit is contained in:
10
htdocs/js/anchor-fix.js
Normal file
10
htdocs/js/anchor-fix.js
Normal file
@@ -0,0 +1,10 @@
|
||||
// This script is required due to Chromium's dogshit and random ability to jump to anchors when reloading pages.
|
||||
|
||||
document.addEventListener("DOMContentLoaded", function () {
|
||||
if (window.location.hash) {
|
||||
const eAnchor = document.querySelector(window.location.hash);
|
||||
if (eAnchor) {
|
||||
eAnchor.scrollIntoView();
|
||||
}
|
||||
}
|
||||
});
|
Reference in New Issue
Block a user