documentation page

This commit is contained in:
SBD
2024-07-12 17:41:43 +03:00
parent e586293ae0
commit b5086cbd40
4 changed files with 73 additions and 27 deletions

View File

@@ -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
}
}