From e148c60d707f4044553ff1ee3cabacab10c938a7 Mon Sep 17 00:00:00 2001 From: SBD Date: Thu, 11 Jan 2024 19:37:39 +0300 Subject: [PATCH] add cookie 3 --- static/js/global_js.js | 4 ++-- templates/tb_base.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/static/js/global_js.js b/static/js/global_js.js index 4276d47..ce92a7e 100644 --- a/static/js/global_js.js +++ b/static/js/global_js.js @@ -152,8 +152,8 @@ function scroll_ev (event,el){ } function checkStateCookie () { - if (window.document.cookie.includes("allow_cookie=true")){ - document.querySelector(".cookie_block").classList.remove("show") + if (!window.document.cookie.includes("allow_cookie=true")){ + document.querySelector(".cookie_block").classList.add("show") } } diff --git a/templates/tb_base.html b/templates/tb_base.html index 56760a6..6fac227 100644 --- a/templates/tb_base.html +++ b/templates/tb_base.html @@ -59,7 +59,7 @@ -