diff --git a/apps/school/templates/blocks/schedule_item.html b/apps/school/templates/blocks/schedule_item.html index 593d0426..4de76462 100644 --- a/apps/school/templates/blocks/schedule_item.html +++ b/apps/school/templates/blocks/schedule_item.html @@ -7,7 +7,7 @@
{{ school_schedule }} {% if not is_purchased and request.user_agent.is_mobile and school_schedule.trial_lesson %} - Пробный урок + Пробный урок {% endif %}
{% if is_purchased and live_lesson %} @@ -25,7 +25,7 @@ {% endif %} {% endif %} {% if not is_purchased and not request.user_agent.is_mobile and school_schedule.trial_lesson and not is_drawing_camp %} - Пробный урок + Пробный урок {% endif %} diff --git a/project/templates/blocks/video.html b/project/templates/blocks/video.html index c0eebf5a..2d1fcada 100644 --- a/project/templates/blocks/video.html +++ b/project/templates/blocks/video.html @@ -1,10 +1,10 @@
Пробный урок
- Смотреть бесплатно -
Много развивающих видео на нашем YouTube канале
+ data-video-url="{{ config.MAIN_PAGE_VIDEO_URL|safe }}" data-trial-lesson="1">Смотреть бесплатно +
Много развивающих видео на нашем YouTube канале
diff --git a/web/src/js/modules/popup.js b/web/src/js/modules/popup.js index f1960d57..c774c6ef 100644 --- a/web/src/js/modules/popup.js +++ b/web/src/js/modules/popup.js @@ -81,7 +81,7 @@ $(document).ready(function () { channel = 'youtube'; } if(url.indexOf('youtube.com') > -1 && url.indexOf('watch') > -1){ - const m = /[?&]v=([a-zA-Z\d]+)(&.)?/.exec(url); + const m = /[?&]v=([^&]+)(&.+)?$/.exec(url); channel = 'youtube'; videoId = m && m[1]; }