0.0.140 routes

This commit is contained in:
SBD
2025-02-01 14:07:30 +03:00
parent 70dd911445
commit 293b7c9f6f
13 changed files with 188 additions and 15 deletions

View File

@@ -116,14 +116,19 @@ function highlightRoute(el) {
request.ajaxRequest()
}
function respondBtnClickEvent(el) {
function respondBtnClickEvent(el, authentificated) {
if (!el) return;
let $parent = el.closest(".w_route_card")
let $responde_cont = $parent.querySelector(".respond_route_cont")
if (window.innerWidth < 1160) $responde_cont = $parent.querySelector(".respond_route_cont.mobile")
if (authentificated !== 'False') {
let $parent = el.closest(".w_route_card")
let $responde_cont = $parent.querySelector(".respond_route_cont")
if (window.innerWidth < 1160) $responde_cont = $parent.querySelector(".respond_route_cont.mobile")
$(el).fadeOut(500);
sleep(500).then(() => {
$($responde_cont).fadeIn(500);
})
$(el).fadeOut(500);
sleep(500).then(() => {
$($responde_cont).fadeIn(500);
})
} else {
$(".b_login_modal").addClass('open');
$("body")[0].style.overflow = "hidden";
}
}