mirror of
https://github.com/nunocoracao/blowfish.git
synced 2025-01-23 15:05:38 -06:00
1 line
No EOL
554 B
JavaScript
1 line
No EOL
554 B
JavaScript
function switchHomeLayout(){const t=document.getElementById("page"),e=document.getElementById("profile"),n=document.querySelectorAll("code[id=layout]");e.style.display==="none"?(e.style.display="block",t.style.display="none",n.forEach(function(e){e.innerText="profile"})):(e.style.display="none",t.style.display="block",n.forEach(function(e){e.innerText="page"}))}window.addEventListener("DOMContentLoaded",e=>{document.querySelectorAll("#switch-layout-button").forEach(e=>e.addEventListener("click",function(e){e.preventDefault(),switchHomeLayout()}))}) |