documentation page
This commit is contained in:
@@ -531,7 +531,12 @@ function closeVersionSwitcherOnBody () {
|
||||
let $arrow = document.querySelector(".documentation_switcher_arrow_picture")
|
||||
$version_switcher_container_content.addClass("hidden")
|
||||
$(".documentation_version_switcher").css({borderBottom: '1px solid #CCCED1FF'})
|
||||
$($arrow).animate({rotate: '180deg'},200)
|
||||
if ($arrow.style.rotate !== '180deg'){
|
||||
$($arrow).animate({rotate: '180deg'},200)
|
||||
} else {
|
||||
$($arrow).animate({rotate: '0deg'},200)
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -609,7 +614,19 @@ function chooseVersionComplete (el) {
|
||||
let url = el.dataset['url']
|
||||
let title = el.dataset['title']
|
||||
let $parent = el.closest(".documentation_version")
|
||||
let $cur_selected = $parent.querySelector(".documentation_version_txt")
|
||||
let $cur_selected = $parent.querySelector(".cur_documentation_version")
|
||||
let $cont = el.closest(".documentation_switcher_content_part")
|
||||
let $cont_parent = $cont.closest(".documentation_version_switcher")
|
||||
$cont_parent.style.borderBottom = '1px solid #CCCED1FF'
|
||||
$cont.classList.add("hidden")
|
||||
$cur_selected.innerHTML = title
|
||||
window.location.href = window.location.origin + url
|
||||
}
|
||||
|
||||
function breadCrumbGo (el){
|
||||
if (el.dataset){
|
||||
let url = el.dataset['url']
|
||||
window.location.href = window.location.origin + url
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user