Mute vidéo principale quand on ouvre une popup

This commit is contained in:
nyanloutre 2017-07-19 15:20:35 +02:00
parent ceb7ce4798
commit a5f3ee7888
Signed by: nyanloutre
GPG Key ID: F85D93686A3A9063
1 changed files with 2 additions and 0 deletions

View File

@ -228,6 +228,7 @@
}
$('#youtubeModal').on('show.bs.modal', function (event) {
document.getElementById("masthead-video").muted = false;
var button = $(event.relatedTarget);
var youtube_id = button.data('youtubeid');
var modal = $(this);
@ -238,6 +239,7 @@
});
$('#vimeoModal').on('show.bs.modal', function (event) {
document.getElementById("masthead-video").muted = false;
var button = $(event.relatedTarget);
var vimeo_id = button.data('vimeoid');
var modal = $(this);