diff --git a/static/js/find_route.js b/static/js/find_route.js new file mode 100644 index 0000000..53b7da3 --- /dev/null +++ b/static/js/find_route.js @@ -0,0 +1,18 @@ +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"); + ph_2.parentElement.children[1].classList.toggle("active"); + em_2.parentElement.children[1].classList.toggle("active"); + if (el.innerHTML === "Скрыть контакт"){ + el.innerHTML = "Открыть контакт" + } else{ + el.innerHTML = "Скрыть контакт" + } + btn_open_chat.classList.toggle("active") +} \ No newline at end of file diff --git a/static/js/user_profile(boris).js b/static/js/user_profile(boris).js index 0d0fda9..0cf2945 100644 --- a/static/js/user_profile(boris).js +++ b/static/js/user_profile(boris).js @@ -249,21 +249,3 @@ function sendMessageEnter (e,id_ticket,sender,receiver){ } -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"); - ph_2.parentElement.children[1].classList.toggle("active"); - em_2.parentElement.children[1].classList.toggle("active"); - if (el.innerHTML === "Скрыть контакт"){ - el.innerHTML = "Открыть контакт" - } else{ - el.innerHTML = "Скрыть контакт" - } - btn_open_chat.classList.toggle("active") -} \ No newline at end of file diff --git a/templates/pages/p_results_find_route.html b/templates/pages/p_results_find_route.html index a03456d..6f6e029 100644 --- a/templates/pages/p_results_find_route.html +++ b/templates/pages/p_results_find_route.html @@ -1,6 +1,10 @@ {% extends "tb_base.html" %} {% load static %} +{% block meta %} + +{% endblock %} + {% block content %}
diff --git a/templates/tb_base.html b/templates/tb_base.html index e95ae44..4fb85dc 100644 --- a/templates/tb_base.html +++ b/templates/tb_base.html @@ -8,10 +8,6 @@ - - - -