function show_inf_carrier (el) { event.preventDefault() let form = el.form let ph_1 = form[0] let ph_2 = form[1] let em_2 = form[2] let btn_open_chat = form[3] ph_1.parentElement.children[1].classList.toggle("active"); 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" } } function open_chat (user_id){ event.preventDefault() let host = window.location.origin let user_id_ = user_id.toString() let href = host + '/ru/profile/chat/' + user_id_ // window.location.href = host + '/profile/chat/' + user_id window.location.replace(href) }