попап в конце видео

remotes/origin/feature/end-video-popup-28-05-19
gzbender 7 years ago
parent 331a12f0f7
commit ef2c7b62cd
  1. 1
      apps/school/templates/school/livelesson_detail.html
  2. 2
      web/src/js/modules/content.js

@ -28,7 +28,6 @@
webkitallowfullscreen mozallowfullscreen allowfullscreen> webkitallowfullscreen mozallowfullscreen allowfullscreen>
</iframe> </iframe>
<span>Если видео не загрузилось, - уменьшите качество видео или <a href="#" onclick="location.reload();">обновите страницу</a></span> <span>Если видео не загрузилось, - уменьшите качество видео или <a href="#" onclick="location.reload();">обновите страницу</a></span>
<!--<iframe class="lesson__chat_frame" src="https://vimeo.com/live-chat/{{ livelesson.stream_index }}" frameborder="0"></iframe>-->
<comments obj-type="live-lesson" obj-id="{{ livelesson.id }}" :is-chat="true"></comments> <comments obj-type="live-lesson" obj-id="{{ livelesson.id }}" :is-chat="true"></comments>
{% else %} {% else %}
{% if livelesson.cover %} {% if livelesson.cover %}

@ -33,7 +33,7 @@ $(document).ready(function () {
const player = new Vimeo.Player(this); const player = new Vimeo.Player(this);
player.on('pause', function(data) { player.on('pause', function(data) {
if(data.percent == 1){ if(data.percent == 1){
getVideoPopup($iframe).show().animate({opacity: 1}, 100); getVideoPopup($iframe).show().animate({opacity: 1}, 200);
if (document.fullscreenElement){ if (document.fullscreenElement){
document.exitFullscreen(); document.exitFullscreen();
} }

Loading…
Cancel
Save