/* Functions needed to small screen navigation */ // Set the width of the sidebar to 250px */ function openNav() { document.getElementById("sidebar").style.width = "250px"; document.getElementById("hamgurBtn").style.visibility = "hidden"; } // Set the width of the sidebar to 0 */ function closeNav() { document.getElementById("sidebar").style.width = "0"; document.getElementById("hamgurBtn").style.visibility = "visible"; } // to swap classes for staff posts var counter= document.querySelectorAll('.staff'); for (let i = 1; i <= counter.length; i += 3) { counter[i].classList.remove('staff'); counter[i].classList.add('staffSwap'); }