Skip to content

Commit 485d167

Browse files
committed
Emergancy patch
1 parent 9e3c4fe commit 485d167

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

index.html

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -59,17 +59,9 @@
5959
}
6060
// ReSpec Multipage: https://w3c.github.io/sustainableweb-ig/multipage.html
6161
function addMultipage() {
62-
let truthy = window.location.href.includes('pr-preview');
63-
if (truthy = true) {
64-
document.querySelectorAll('.pageButtons').forEach(e => e.classList.add('hide')); } else {
65-
window.addEventListener('hashchange', onHashChange);
66-
onHashChange(); } }
62+
window.addEventListener('hashchange', onHashChange);
63+
onHashChange(); }
6764
window.addEventListener("load", (event) => {
68-
let truthy = window.location.href.includes('pr-preview');
69-
if (truthy = true) {
70-
document.body.querySelectorAll('details')
71-
.forEach((e) => {(e.hasAttribute('open')) ?
72-
e.removeAttribute('open') : e.setAttribute('open',true); }) }
7365
addMultipage(); });
7466
function hashSection(hash) {
7567
let arrayGrab = Array.from(document.querySelectorAll(hash));

0 commit comments

Comments
 (0)