Fenetre modale plus grande
This commit is contained in:
parent
8e0200037d
commit
0d5e57f6be
1 changed files with 2 additions and 2 deletions
|
@ -161,7 +161,7 @@
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<div class="modal fade" id="youtubeModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
|
<div class="modal fade" id="youtubeModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
|
||||||
<div class="modal-dialog" role="document">
|
<div class="modal-dialog modal-lg" role="document">
|
||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||||
|
@ -218,7 +218,7 @@
|
||||||
var button = $(event.relatedTarget);
|
var button = $(event.relatedTarget);
|
||||||
var youtube_id = button.data('youtubeid');
|
var youtube_id = button.data('youtubeid');
|
||||||
var modal = $(this);
|
var modal = $(this);
|
||||||
modal.find('.modal-body iframe')[0].src = 'https://www.youtube.com/embed/' + youtube_id + "?modestbranding=1&rel=0&controls=0&showinfo=0&html5=1&autoplay=1";
|
modal.find('.modal-body iframe')[0].src = 'https://www.youtube.com/embed/' + youtube_id + "?modestbranding=1&rel=0&html5=1&autoplay=1";
|
||||||
$('#youtubeModal' + ' button.close').click(function () {
|
$('#youtubeModal' + ' button.close').click(function () {
|
||||||
$('#youtubeModal' + ' iframe').attr('src', "");
|
$('#youtubeModal' + ' iframe').attr('src', "");
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue