mirror of
https://github.com/michivonah/website-v2.git
synced 2025-12-22 20:46:29 +01:00
change scroll down function
This commit is contained in:
parent
782042cd45
commit
3dcf4207a6
1 changed files with 1 additions and 11 deletions
12
index.html
12
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){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue