change scroll down function

This commit is contained in:
michivonah 2022-12-27 14:13:42 +01:00
parent 782042cd45
commit 3dcf4207a6

View file

@ -406,17 +406,7 @@
}
function scrollDown(){
if(navigator.userAgent.includes('iPhone') || navigator.userAgent.includes('iPad') || navigator.userAgent.includes('Mac')){
//window.scroll(0, 1000);
document.getElementById('about').scrollIntoView({
behavior: 'smooth'
});
}
else{
document.getElementById('about').scrollIntoView({
behavior: 'smooth'
});
}
window.scroll(0, window.innerHeight - 56);
}
function toggleSection(sectionName, type){