This commit is contained in:
2023-08-06 13:36:15 +03:00
parent b3bee232c3
commit 9a1ee8d971
3 changed files with 47 additions and 26 deletions

View File

@@ -7,12 +7,18 @@ function show_inf_carrier (el) {
let btn_open_chat = form[3]
ph_1.parentElement.children[1].classList.toggle("active");
ph_2.parentElement.children[1].classList.toggle("active");
em_2.parentElement.children[1].classList.toggle("active");
if (el.innerHTML === "Скрыть контакт"){
el.innerHTML = "Открыть контакт"
} else{
el.innerHTML = "Скрыть контакт"
try {
ph_2.parentElement.children[1].classList.toggle("active");
} catch {
// p
}
em_2.parentElement.children[1].classList.toggle("active");
btn_open_chat.classList.toggle("active")
if (el.style.display === "none"){
el.style.display = ""
} else {
el.style.display = "none"
}
}