pageControl

126

pageControl -

const pages=document.querySelectorAll("[data-page]");function changePage(e){pages.forEach(e=>{e.style.display="none"}),document.querySelector(`[data-page="${e}"]`).style.display="block"}

Comments

Submit
0 Comments