* Browser errors were logged to the console
This commit is contained in:
Aditya Telange 2020-09-17 14:57:20 +05:30
parent d3517dadbf
commit db1ec959aa
No known key found for this signature in database
GPG Key ID: 82E844EF3DA99E77
1 changed files with 2 additions and 0 deletions

View File

@ -22,7 +22,9 @@
document.getElementById('menu').scrollLeft = localStorage.getItem("menu-scroll-position"); document.getElementById('menu').scrollLeft = localStorage.getItem("menu-scroll-position");
} }
} }
{{if in site.Params.mainSections .Type }}
hljs.initHighlightingOnLoad(); hljs.initHighlightingOnLoad();
{{end }}
document.querySelectorAll('a[href^="#"]').forEach(anchor => { document.querySelectorAll('a[href^="#"]').forEach(anchor => {
anchor.addEventListener("click", function (e) { anchor.addEventListener("click", function (e) {
e.preventDefault(); e.preventDefault();