window.$ = (query,el=document)=>{ return el.querySelector(query); }; window.$all = (query,el=document)=>{ return [...el.querySelectorAll(query)]; }; { let url = encodeURIComponent(window.location.href), title = encodeURIComponent($('#share_title').innerText.trim()), desc = encodeURIComponent($('#share_desc').innerText.trim()); $all('.shareables').forEach((dom)=>{ dom.innerHTML = `
`; }); } $('#footnotes_container').appendChild($('.footnotes')); $('#show_feetnotes_button').onclick = ()=>{ $('#show_feetnotes_button').style.display = 'none'; $('#shown_feetnotes').style.display = 'block'; $('.footnotes').style.display = 'block'; }; $all('.footnotes a[rev="footnote"]').forEach((a)=>{ a.setAttribute('target','_self'); });