File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change 59
59
}
60
60
// ReSpec Multipage: https://w3c.github.io/sustainableweb-ig/multipage.html
61
61
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(); }
67
64
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); }) }
73
65
addMultipage(); });
74
66
function hashSection(hash) {
75
67
let arrayGrab = Array.from(document.querySelectorAll(hash));
You can’t perform that action at this time.
0 commit comments