From cf5a404b46628f24070825d952e4224ebe80a548 Mon Sep 17 00:00:00 2001 From: borissedw Date: Fri, 11 Aug 2023 19:02:26 +0300 Subject: [PATCH] 0.0.108 --- static/css/styles(boris).css | 36 +++++++++++++++++++++++ static/js/check_new_messages.js | 7 +++-- static/js/global_js.js | 4 +-- templates/blocks/profile/b_subscribe.html | 35 +++++++++++++++++++++- 4 files changed, 76 insertions(+), 6 deletions(-) diff --git a/static/css/styles(boris).css b/static/css/styles(boris).css index 8465d67..f73ac56 100644 --- a/static/css/styles(boris).css +++ b/static/css/styles(boris).css @@ -977,4 +977,40 @@ position: relative; top: 19px; left: 18px; +} + +/*subscribe*/ + +.state_subscribe{ + font-size: 16px; + color: #000000; + padding-bottom: 20px; +} + +.state_subscribe > a{ + font-size: 16px; + color: #FF613A; + text-decoration: none; +} + +.container_subscribe{ + width: 33%; +} + +.first-decr-subscribe{ + width: 100%; + text-align: center; + font-size: 24px; + font-weight: 700; + color: #000000; +} + +.price_subscribe{ + color: #FF613A; +} + +.period_subscribe{ + font-weight: 500; + font-size: 16px; + color: #000000; } \ No newline at end of file diff --git a/static/js/check_new_messages.js b/static/js/check_new_messages.js index d8e05b2..d6f239f 100644 --- a/static/js/check_new_messages.js +++ b/static/js/check_new_messages.js @@ -15,7 +15,7 @@ function funcFocus(){ inp.focus() } } else{ - check_new_messages_timeout(60000) + check_new_messages_timeout(long_timeout) } } @@ -25,7 +25,8 @@ function funcFocus(){ var check_msg = null var it = 0 - +var short_timeout = 5000 +var long_timeout = 60000 // function initial_function (){ // var it_set_func = 0 @@ -33,7 +34,7 @@ var it = 0 // check_new_messages_timeout(60000,it_set_func,it_func) // } -function check_new_messages_timeout(timeout_time=1000){ +function check_new_messages_timeout(timeout_time=short_timeout){ let window = document.querySelector(".container-messages") diff --git a/static/js/global_js.js b/static/js/global_js.js index b5ae68a..036b1ca 100644 --- a/static/js/global_js.js +++ b/static/js/global_js.js @@ -7,9 +7,9 @@ function getNewMessageSession(){ let new_timeout_time; if (window_messages !== null){ // check_new_messages(window) - new_timeout_time = 1000 + new_timeout_time = short_timeout } else { - new_timeout_time = 60000 + new_timeout_time = long_timeout } if (check_msg !== null){ clearInterval(check_msg) diff --git a/templates/blocks/profile/b_subscribe.html b/templates/blocks/profile/b_subscribe.html index e7c20a7..a066c5f 100644 --- a/templates/blocks/profile/b_subscribe.html +++ b/templates/blocks/profile/b_subscribe.html @@ -1 +1,34 @@ -
Моя подписка
\ No newline at end of file +{% load static %} + +
+ Подписка +
+ +
+ + + +
+ Для того, чтобы воспользоваться сервисом - оформите подписку +
+ +
+ + +
+
+
+
+ Лайт +
+
+ 2 $ +
+
+ Период: 24 часа +
+
+
+
\ No newline at end of file