Skip to content
Snippets Groups Projects
Commit 1376a550 authored by Zachary Wartell's avatar Zachary Wartell
Browse files

-deprecated toc module

parent 945819f1
No related branches found
No related tags found
No related merge requests found
...@@ -27,6 +27,29 @@ ...@@ -27,6 +27,29 @@
function onload_Body() { console.log("function onload_Body()");} function onload_Body() { console.log("function onload_Body()");}
window.onload_Body = onload_Body; window.onload_Body = onload_Body;
window.addEventListener("hashchange", (event) =>
{
/*
alert(
`"hashchange"
location: ${document.location}, event: ${JSON.stringify(event)}`,);
*/
console.log(event);
let split = event.newURL.split("#");
let e = document.getElementById(split[1]);
console.log("split:",split,split[1]);
if (e !== null)
{
console.log("e:",e);
e.scrollIntoView();
}
// if (event.target instanceof HTMLElement)
// {
// document.getElementById(event.newURL.split("#")[1]).scrollIntoView();
// console.log("2:",event.newURL.split("#")[1]);
// }
});
const c = document.getElementById("cursor"); const c = document.getElementById("cursor");
if (c !== null) c.scrollIntoView(); if (c !== null) c.scrollIntoView();
</script> </script>
...@@ -1230,8 +1253,6 @@ ...@@ -1230,8 +1253,6 @@
<ul> <ul>
<li> https://jquery.org/, Copyright jQuery Foundation and other <li> https://jquery.org/, Copyright jQuery Foundation and other
contributors, MIT license </li> contributors, MIT license </li>
<li> http://projects.jga.me/toc/, Copyright Greg Allen 2014,&nbsp; MIT
License </li>
</ul> </ul>
</section> </section>
<section><h1 class="Appendix" id="Git_Server_Access">Git Server Access</h1> <section><h1 class="Appendix" id="Git_Server_Access">Git Server Access</h1>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment