Skip to content

Commit

Permalink
dddd
Browse files Browse the repository at this point in the history
  • Loading branch information
RaTeNo committed May 17, 2022
1 parent 202b05a commit db017be
Show file tree
Hide file tree
Showing 4 changed files with 563 additions and 2 deletions.
1 change: 1 addition & 0 deletions demo_links.html
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@
<li><a href="./text_page.html" target="_blank">Текстовая страница</a></li>
<li><a href="./lekcia.html" target="_blank">Лекция</a></li>
<li><a href="./lekcia2.html" target="_blank">Лекция 2</a></li>
<li><a href="./lekcia3.html" target="_blank">Лекция 2</a></li>
<li><a href="./news.html" target="_blank">Новости</a></li>
<li><a href="./folders.html" target="_blank">База (папки)</a></li>
<li><a href="./files.html" target="_blank">База (файлы)</a></li>
Expand Down
2 changes: 1 addition & 1 deletion dialog3_3.html
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@
</div>

<section class="modal" id="video_modal">
<video class="video-player" width="100%" controlsList="nodownload" controls crossorigin="anonymous">
<video class="video-player video_new" width="100%" controlsList="nodownload" controls crossorigin="anonymous">
<source src="https://thepaciellogroup.github.io/AT-browser-tests/video/ElephantsDream.mp4" type="video/mp4">
<source src="https://thepaciellogroup.github.io/AT-browser-tests/video/ElephantsDream.webm" type="video/webm">
<track src="https://thepaciellogroup.github.io/AT-browser-tests/video/subtitles-en.vtt" label="English subtitles" kind="captions" srclang="en" default></track>
Expand Down
14 changes: 13 additions & 1 deletion js/functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,19 @@ $(() => {
Fancybox.show([{
src: $(this).data('content'),
type: 'inline'
}])
}],
{
on: {
closing: (fancybox, slide) => {
if(fancybox.items[0].src=="#video_modal")
{
video = document.querySelector(".video_new");
video.pause();
video.currentTime = 0;
}
},
},
})
})

$('body').on('click', '.modal .close_btn', function (e) {
Expand Down
Loading

0 comments on commit db017be

Please sign in to comment.