0
Cart
Profile
€
Currency
лв.
kn
Kč
kr
€
Ft
kr
kr
zł
£
lei
Дин
kr
₺
$
En
bg
Home
Kineticmall Blog
Kineticmall Blog
KineticMall - Get In, Get Done and Move On!
19/09/2017
Read more ...
Showing 1 to 1 of 1 (1 Pages)
autoPlayYouTubeModal(); //FUNCTION TO GET AND AUTO PLAY YOUTUBE VIDEO FROM DATATAG function autoPlayYouTubeModal() { var trigger = $("body").find('[data-toggle="modal"]'); trigger.click(function () { var theModal = $(this).data("target"), videoSRC = $(this).attr("data-theVideo"), videoSRCauto = videoSRC + "?autoplay=1"; $(theModal + ' iframe').attr('src', videoSRCauto); $(theModal + ' button.close').click(function () { $(theModal + ' iframe').attr('src', videoSRC); }); }); }