LIL-714 improvements

remotes/origin/editis_13-01-19
nikita 7 years ago
parent a570919437
commit af5d1a1d8c
  1. 2
      project/templates/blocks/video.html
  2. 4
      web/src/js/modules/popup.js

@ -1,7 +1,7 @@
<div class="section section_video">
<div class="section__center center center_sm" style="text-align: center;">
<div class="title">Пробный урок</div>
<img class="main-video-preview" style="width: 640px; height: 360px;"
<img class="main-video-preview js-video-modal" style="width: 640px; height: 360px; cursor: pointer" data-video-url="{{ config.MAIN_PAGE_VIDEO_URL }}" data-trial-lesson="1"
src="{{ config.MAIN_PAGE_VIDEO_PREVIEW_IMG.url }}"/>
<a href="#" class="btn js-video-modal btn_stroke-black" style="margin: 20px;"
data-video-url="{{ config.MAIN_PAGE_VIDEO_URL }}" data-trial-lesson="1">Смотреть бесплатно</a>

@ -48,7 +48,7 @@ $(document).ready(function () {
return;
}
if(! emailValid(email)){
$error.text('Пожалуйста, укажите коректную почту');
$error.text('Пожалуйста, укажите корректную почту');
return;
}
const $loader = popup.find('.loading-loader');
@ -102,7 +102,7 @@ $(document).ready(function () {
const channel = $(e.target).data('channel');
const player = e.detail.player;
let timeout = null;
const interval = 1000 * 10;// 60 * 2; // 2 min
const interval = 1000 * 60; // 1 min
const pauseVideo = () => {
timeout = setTimeout(() => {
clearTimeout(timeout);

Loading…
Cancel
Save