From 82304a304301136bc2be29118830185faac78c5e Mon Sep 17 00:00:00 2001 From: ruehlef Date: Wed, 16 Aug 2023 15:09:34 -0400 Subject: [PATCH] Update collapse.js --- script/collapse.js | 1 + 1 file changed, 1 insertion(+) diff --git a/script/collapse.js b/script/collapse.js index 7829e0b..9f983dc 100755 --- a/script/collapse.js +++ b/script/collapse.js @@ -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); }