Attempt to convert to ES5

This commit is contained in:
alistair3149 2020-02-15 17:55:31 -05:00
commit f6d0b61406
No known key found for this signature in database
GPG key ID: 94D081060FD3DD9C

View file

@ -22,7 +22,8 @@ function SmoothScroll() {
}
}
}
},
}
function ScrollSpy() {
var sections = document.querySelectorAll(".mw-headline");
window.addEventListener("scroll", function() {
@ -49,13 +50,14 @@ function ScrollSpy() {
}
}
});
},
}
function CheckToC() {
if (document.getElementById("toc")) {
SmoothScroll();
ScrollSpy();
}
};
}
if (document.readyState !== "loading") {
CheckToC();