documentation page
This commit is contained in:
@@ -602,6 +602,9 @@ function windowScrollDocPage (){
|
|||||||
waitingTop = $(".left_curtain_documentation")[0].getBoundingClientRect().top - 172
|
waitingTop = $(".left_curtain_documentation")[0].getBoundingClientRect().top - 172
|
||||||
$(".left_curtain_documentation").find(".tree_documentation_container").css({height: 'fit-content'})
|
$(".left_curtain_documentation").find(".tree_documentation_container").css({height: 'fit-content'})
|
||||||
maxScroll = $(".documentation_block")[0].getBoundingClientRect().bottom - $(".left_curtain_documentation")[0].offsetHeight - 172
|
maxScroll = $(".documentation_block")[0].getBoundingClientRect().bottom - $(".left_curtain_documentation")[0].offsetHeight - 172
|
||||||
|
if (scroll !== 0){
|
||||||
|
maxScroll = scroll + $(".documentation_block")[0].getBoundingClientRect().bottom - $(".left_curtain_documentation")[0].offsetHeight - 172
|
||||||
|
}
|
||||||
$(".left_curtain_documentation").find(".tree_documentation_container").css({height: 'calc(100vh - 300px)'})
|
$(".left_curtain_documentation").find(".tree_documentation_container").css({height: 'calc(100vh - 300px)'})
|
||||||
}
|
}
|
||||||
let $new_curtain = $($curtain[1])
|
let $new_curtain = $($curtain[1])
|
||||||
@@ -618,6 +621,7 @@ function windowScrollDocPage (){
|
|||||||
$($curtain[0]).css({opacity:0})
|
$($curtain[0]).css({opacity:0})
|
||||||
$($curtain[0]).find(".tree_documentation_container").css({display:'none'})
|
$($curtain[0]).find(".tree_documentation_container").css({display:'none'})
|
||||||
} else if (scroll < waitingTop && waitingTop) {
|
} else if (scroll < waitingTop && waitingTop) {
|
||||||
|
$curtain.find(".tree_documentation_container")[0].innerHTML = $new_curtain.find(".tree_documentation_container")[0].innerHTML
|
||||||
$new_curtain.remove()
|
$new_curtain.remove()
|
||||||
$($curtain[0]).css({opacity:1})
|
$($curtain[0]).css({opacity:1})
|
||||||
$($curtain[0]).find(".tree_documentation_container").css({display:'block'})
|
$($curtain[0]).find(".tree_documentation_container").css({display:'block'})
|
||||||
@@ -625,6 +629,9 @@ function windowScrollDocPage (){
|
|||||||
waitingTop = $(".left_curtain_documentation")[0].getBoundingClientRect().top - 172
|
waitingTop = $(".left_curtain_documentation")[0].getBoundingClientRect().top - 172
|
||||||
$(".left_curtain_documentation").find(".tree_documentation_container").css({height: 'fit-content'})
|
$(".left_curtain_documentation").find(".tree_documentation_container").css({height: 'fit-content'})
|
||||||
maxScroll = $(".documentation_block")[0].getBoundingClientRect().bottom - $(".left_curtain_documentation")[0].offsetHeight - 172
|
maxScroll = $(".documentation_block")[0].getBoundingClientRect().bottom - $(".left_curtain_documentation")[0].offsetHeight - 172
|
||||||
|
if (scroll !== 0){
|
||||||
|
maxScroll = scroll + $(".documentation_block")[0].getBoundingClientRect().bottom - $(".left_curtain_documentation")[0].offsetHeight - 172
|
||||||
|
}
|
||||||
$(".left_curtain_documentation").find(".tree_documentation_container").css({height: 'calc(100vh - 300px)'})
|
$(".left_curtain_documentation").find(".tree_documentation_container").css({height: 'calc(100vh - 300px)'})
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@@ -650,6 +657,9 @@ $(window).scroll(function (){
|
|||||||
waitingTop = $(".left_curtain_documentation")[0].getBoundingClientRect().top - 172
|
waitingTop = $(".left_curtain_documentation")[0].getBoundingClientRect().top - 172
|
||||||
$(".left_curtain_documentation").find(".tree_documentation_container").css({height: 'fit-content'})
|
$(".left_curtain_documentation").find(".tree_documentation_container").css({height: 'fit-content'})
|
||||||
maxScroll = $(".documentation_block")[0].getBoundingClientRect().bottom - $(".left_curtain_documentation")[0].offsetHeight - 172
|
maxScroll = $(".documentation_block")[0].getBoundingClientRect().bottom - $(".left_curtain_documentation")[0].offsetHeight - 172
|
||||||
|
if (scroll !== 0){
|
||||||
|
maxScroll = scroll + $(".documentation_block")[0].getBoundingClientRect().bottom - $(".left_curtain_documentation")[0].offsetHeight - 172
|
||||||
|
}
|
||||||
$(".left_curtain_documentation").find(".tree_documentation_container").css({height: 'calc(100vh - 300px)'})
|
$(".left_curtain_documentation").find(".tree_documentation_container").css({height: 'calc(100vh - 300px)'})
|
||||||
}
|
}
|
||||||
let $new_curtain = $($curtain[1])
|
let $new_curtain = $($curtain[1])
|
||||||
@@ -674,6 +684,9 @@ $(window).scroll(function (){
|
|||||||
waitingTop = $(".left_curtain_documentation")[0].getBoundingClientRect().top - 172
|
waitingTop = $(".left_curtain_documentation")[0].getBoundingClientRect().top - 172
|
||||||
$(".left_curtain_documentation").find(".tree_documentation_container").css({height: 'fit-content'})
|
$(".left_curtain_documentation").find(".tree_documentation_container").css({height: 'fit-content'})
|
||||||
maxScroll = $(".documentation_block")[0].getBoundingClientRect().bottom - $(".left_curtain_documentation")[0].offsetHeight - 172
|
maxScroll = $(".documentation_block")[0].getBoundingClientRect().bottom - $(".left_curtain_documentation")[0].offsetHeight - 172
|
||||||
|
if (scroll !== 0){
|
||||||
|
maxScroll = scroll + $(".documentation_block")[0].getBoundingClientRect().bottom - $(".left_curtain_documentation")[0].offsetHeight - 172
|
||||||
|
}
|
||||||
$(".left_curtain_documentation").find(".tree_documentation_container").css({height: 'calc(100vh - 300px)'})
|
$(".left_curtain_documentation").find(".tree_documentation_container").css({height: 'calc(100vh - 300px)'})
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user