From aa8bed6efba47ff7d605edccd4a304db76da1c44 Mon Sep 17 00:00:00 2001 From: sysadminix Date: Fri, 9 Aug 2024 18:42:48 +0300 Subject: [PATCH 1/2] add tb_base from main --- templates/tb_base.html | 78 ++++++++++++++++++++++-------------------- 1 file changed, 41 insertions(+), 37 deletions(-) diff --git a/templates/tb_base.html b/templates/tb_base.html index 8aacbdf..28047f3 100644 --- a/templates/tb_base.html +++ b/templates/tb_base.html @@ -7,6 +7,7 @@ +{# #} {% if page.description %} @@ -18,7 +19,8 @@ - {% include "inter/meta_OpenGraph.html" %} + + + @@ -76,8 +79,42 @@ function gtag_report_conversion(url) { } -{# #} -{#
#} + + + + + + + + + + + + + @@ -116,7 +153,7 @@ function gtag_report_conversion(url) { init_ws() const beep = new Audio('/static/sounds/beep_2.mp3') </script> - + {% endif %} @@ -147,39 +184,6 @@ function gtag_report_conversion(url) { </head> <body{% if page_type == 'routes' %} onscroll="scroll_ev(event,this)"{% endif %}> - - <div class="popup_wrapper"> - - {% if not user.is_authenticated %} - <div class="popup_content"> - <div class="popup_cross" onclick="setCokie(182,'popup_show','false')"> - <img src="/static/img/svg/cross_popup.svg" alt=""> - </div> - <div class="popup_img"><img src="/static/img/svg/close_gift.svg" alt=""></div> - <div class="popup_title">{% translate "Попробуй бесплатно" %}</div> - <div class="popup_text">{% blocktranslate %} Зарегистрируйся сейчас и получи бонус <br> <span id="poup_text_bold">3 месяца бесплатного пользования!</span> {% endblocktranslate %}</div> - <button class="confirm_profile_btn" onclick="setCokie(182,'popup_show','false', '{% url "registration_page" %}')">{% translate "Зарегистрироваться" %}</button> - </div> - - {% endif %} - - {% if user.is_authenticated %} - <div class="popup_content"> - <div class="popup_cross" onclick="setCokie(182,'first_authorization','true')"> - <img src="/static/img/svg/cross_popup.svg" alt=""> - </div> - <div class="popup_img"> - <img src="/static/img/svg/open_gift.svg" alt=""> - </div> - <div class="popup_title">{% translate "Добро пожаловать!" %}</div> - <div class="popup_text">{% blocktranslate %} Команда Trip With Bonus <br> поздравляет вас с регистрацией и дарит <br> <span id="poup_text_bold">3 месяца бесплатного пользования сервисом</span> {% endblocktranslate %}</div> - <button class="confirm_profile_btn" onclick="setCokie(182,'first_authorization','true')">{% translate "Забрать подарок" %}</button> - <div id="authenticated_img"></div> - </div> - - {% endif %} - </div> - <div class="cookie_block"> <div class="container_content_cookie_block"> <div class="txt_cookie">{% translate "Сайт использует файлы cookie. Просматривая этот сайт, Вы соглашаетесь" %} From aea50ed806089a925d4a5a2d05267c882d811232 Mon Sep 17 00:00:00 2001 From: sysadminix <sa@a3-global.com> Date: Fri, 9 Aug 2024 21:08:02 +0300 Subject: [PATCH 2/2] replace tb_base.html --- templates/tb_base.html | 78 ++++++++++++++++++++---------------------- 1 file changed, 37 insertions(+), 41 deletions(-) diff --git a/templates/tb_base.html b/templates/tb_base.html index 28047f3..8aacbdf 100644 --- a/templates/tb_base.html +++ b/templates/tb_base.html @@ -7,7 +7,6 @@ <html lang="{{ request.LANGUAGE_CODE }}"> <head> <meta charset="UTF-8"> -{# <meta name="viewport" content="width=100%,maximum-scale=5,minimum-scale=1,initial-scale=1">#} <meta name="viewport" content="width=device-width,maximum-scale=1,minimum-scale=1,initial-scale=1,height=device-height"> {% if page.description %} <meta name="description" content="{{ page.description }}"> @@ -19,8 +18,7 @@ <meta name="google-site-verification" content="4V4upJSK2_4MBrr5ZXjcCLw3bBwXc4_gsnKudJAaWqI" /> <meta name="yandex-verification" content="b8a976575e41fbbc" /> - - + {% include "inter/meta_OpenGraph.html" %} <!-- Yandex.Metrika counter --> <script type="text/javascript" > @@ -50,7 +48,6 @@ gtag('config', 'G-2WW2PTG5BM'); </script> - <!-- Google tag (gtag.js) --> <script async src="https://www.googletagmanager.com/gtag/js?id=AW-16654215692"> </script> @@ -79,42 +76,8 @@ function gtag_report_conversion(url) { } </script> - -<!-- TikTok Pixel Code Start --> -<script> -!function (w, d, t) { - w.TiktokAnalyticsObject=t;var ttq=w[t]=w[t]||[];ttq.methods=["page","track","identify","instances","debug","on","off","once","ready","alias","group","enableCookie","disableCookie","holdConsent","revokeConsent","grantConsent"],ttq.setAndDefer=function(t,e){t[e]=function(){t.push([e].concat(Array.prototype.slice.call(arguments,0)))}};for(var i=0;i<ttq.methods.length;i++)ttq.setAndDefer(ttq,ttq.methods[i]);ttq.instance=function(t){for( -var e=ttq._i[t]||[],n=0;n<ttq.methods.length;n++)ttq.setAndDefer(e,ttq.methods[n]);return e},ttq.load=function(e,n){var r="https://analytics.tiktok.com/i18n/pixel/events.js",o=n&&n.partner;ttq._i=ttq._i||{},ttq._i[e]=[],ttq._i[e]._u=r,ttq._t=ttq._t||{},ttq._t[e]=+new Date,ttq._o=ttq._o||{},ttq._o[e]=n||{};n=document.createElement("script") -;n.type="text/javascript",n.async=!0,n.src=r+"?sdkid="+e+"&lib="+t;e=document.getElementsByTagName("script")[0];e.parentNode.insertBefore(n,e)}; - - - ttq.load('CQLLM8BC77UEI2I3MU5G'); - ttq.page(); -}(window, document, 'ttq'); -</script> -<!-- TikTok Pixel Code End --> - -<!-- Meta Pixel Code --> -<script> -!function(f,b,e,v,n,t,s) -{if(f.fbq)return;n=f.fbq=function(){n.callMethod? -n.callMethod.apply(n,arguments):n.queue.push(arguments)}; -if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0'; -n.queue=[];t=b.createElement(e);t.async=!0; -t.src=v;s=b.getElementsByTagName(e)[0]; -s.parentNode.insertBefore(t,s)}(window, document,'script', -'https://connect.facebook.net/en_US/fbevents.js'); -fbq('init', '370775942506737'); -fbq('track', 'PageView'); -</script> -<noscript><img height="1" width="1" style="display:none" -src="https://www.facebook.com/tr?id=370775942506737&ev=PageView&noscript=1" -/></noscript> -<!-- End Meta Pixel Code --> - - - - +{# </header>#} +{#<div class="line_f_header"></div>#} <title> @@ -153,7 +116,7 @@ src="https://www.facebook.com/tr?id=370775942506737&ev=PageView&noscript=1" init_ws() const beep = new Audio('/static/sounds/beep_2.mp3') </script> - + {% endif %} @@ -184,6 +147,39 @@ src="https://www.facebook.com/tr?id=370775942506737&ev=PageView&noscript=1" </head> <body{% if page_type == 'routes' %} onscroll="scroll_ev(event,this)"{% endif %}> + + <div class="popup_wrapper"> + + {% if not user.is_authenticated %} + <div class="popup_content"> + <div class="popup_cross" onclick="setCokie(182,'popup_show','false')"> + <img src="/static/img/svg/cross_popup.svg" alt=""> + </div> + <div class="popup_img"><img src="/static/img/svg/close_gift.svg" alt=""></div> + <div class="popup_title">{% translate "Попробуй бесплатно" %}</div> + <div class="popup_text">{% blocktranslate %} Зарегистрируйся сейчас и получи бонус <br> <span id="poup_text_bold">3 месяца бесплатного пользования!</span> {% endblocktranslate %}</div> + <button class="confirm_profile_btn" onclick="setCokie(182,'popup_show','false', '{% url "registration_page" %}')">{% translate "Зарегистрироваться" %}</button> + </div> + + {% endif %} + + {% if user.is_authenticated %} + <div class="popup_content"> + <div class="popup_cross" onclick="setCokie(182,'first_authorization','true')"> + <img src="/static/img/svg/cross_popup.svg" alt=""> + </div> + <div class="popup_img"> + <img src="/static/img/svg/open_gift.svg" alt=""> + </div> + <div class="popup_title">{% translate "Добро пожаловать!" %}</div> + <div class="popup_text">{% blocktranslate %} Команда Trip With Bonus <br> поздравляет вас с регистрацией и дарит <br> <span id="poup_text_bold">3 месяца бесплатного пользования сервисом</span> {% endblocktranslate %}</div> + <button class="confirm_profile_btn" onclick="setCokie(182,'first_authorization','true')">{% translate "Забрать подарок" %}</button> + <div id="authenticated_img"></div> + </div> + + {% endif %} + </div> + <div class="cookie_block"> <div class="container_content_cookie_block"> <div class="txt_cookie">{% translate "Сайт использует файлы cookie. Просматривая этот сайт, Вы соглашаетесь" %}