This commit is contained in:
SBD
2024-07-11 18:16:19 +03:00
parent ee09e0e907
commit 37d61847ae
3 changed files with 26 additions and 12 deletions

View File

@@ -1817,6 +1817,12 @@ body.n_scroll{
color: #000000;
margin-left: 3px;
}
.tree_documentation_container_first_level_txt.chose{
color: #0C54A0FF;
}
.tree_documentation_container_second_level_txt.chose{
color: #0C54A0FF;
}
.tree_documentation_container_first_level_txt.margin{
margin-left: 24px;
}

View File

@@ -533,8 +533,8 @@ function closeVersionSwitcherOnBody () {
function choseItemTreeDocumentation (el){
let $tree = el.closest(".tree_documentation_container")
let $allChosingElementsTreeThirdLevel = $($tree).find(".element_third_level_content_part_tree")
let $allChosingElementsTreeSecondLevel = $($tree).find(".element_third_level_content_part_tree")
let $allChosingElementsTreeFirstLevel = $($tree).find(".element_third_level_content_part_tree")
let $allChosingElementsTreeSecondLevel = $($tree).find(".tree_documentation_container_second_level_txt")
let $allChosingElementsTreeFirstLevel = $($tree).find(".tree_documentation_container_first_level_txt")
$allChosingElementsTreeThirdLevel.each(function (){
if (el !== this){
this.classList.remove("chose")
@@ -552,11 +552,19 @@ function choseItemTreeDocumentation (el){
})
el.classList.add("chose")
let url = window.location.origin + el.dataset['url']
window.location.href = url
}
function showContentPartTree (el) {
let $parent = el.parentNode
let $content_part = $parent.querySelector(".content_part_tree_documentation_container")
if (!$content_part){
$parent = $parent.parentNode
$content_part = $parent.querySelector(".content_part_tree_documentation_container")
}
let $arrow = $parent.querySelector(".tree_documentation_arrow_img")
$content_part.classList.toggle("hidden")
if ($arrow.style.rotate === '0deg' || $arrow.style.rotate === ''){