From 632ff3c812953a75266f4e2ca057e38561e8ce27 Mon Sep 17 00:00:00 2001 From: ArtemB Date: Thu, 25 Jul 2024 17:19:45 +0300 Subject: [PATCH] 1.1.44 setTimeout for popup display --- static/js/global_js.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/static/js/global_js.js b/static/js/global_js.js index ca6b9c1..9d084c5 100644 --- a/static/js/global_js.js +++ b/static/js/global_js.js @@ -228,7 +228,9 @@ function checkStateCookie () { document.querySelector(".cookie_block").classList.add("show") } if (!window.document.cookie.includes("popup_show=false")){ - document.querySelector(".popup_wrapper").classList.add("show") + setTimeout(() => { + document.querySelector('.popup_wrapper').classList.add('show'); + }, 15000); } if(!window.document.cookie.includes("first_authorization=true") && window.document.getElementById('authenticated_img')){ document.querySelector(".popup_wrapper").classList.add("show")