From 3dcf4207a6632fab7af90becc51b8662d43ae72a Mon Sep 17 00:00:00 2001 From: michivonah Date: Tue, 27 Dec 2022 14:13:42 +0100 Subject: [PATCH] change scroll down function --- index.html | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/index.html b/index.html index 59a42e7..2be8dfa 100644 --- a/index.html +++ b/index.html @@ -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){