Skip to content

Commit

Permalink
Update collapse.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ruehlef committed Aug 16, 2023
1 parent 44958b9 commit 82304a3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions script/collapse.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ for (i = 0; i < coll.length; i++) {
/* code to make hash work in safari, i.e. jump to correct seminar series */
window.onload = function() {
if(location.hash != "") {
await new Promise(r => setTimeout(r, 2000));
const element = document.getElementById(location.hash.substring(1));
element.scrollIntoView(true);
}
Expand Down

0 comments on commit 82304a3

Please sign in to comment.