var hasSmoothScroll='scrollBehavior' in document.documentElement.style; if(hasSmoothScroll){document.querySelectorAll('.smooth').forEach(anchor => {anchor.addEventListener('click',function(e){e.preventDefault();document.querySelector(this.getAttribute('href')).scrollIntoView({behavior:'smooth'});});});}