Video Iframes
-
Hi Rogier,
This code worked on github in version 2.1.5.3 cookieconfig.js and cookieconfig.min.js:
//reset video height adjustments $('.cmplz-video').each(function (i, obj) { $(this).height('inherit'); }); //iframes $('.cmplz-iframe').each(function (i, obj) { var src = $(this).data('src-cmplz'); $(this).attr('src', src); //fitvids needs to be reinitialized, if it is used. if (jQuery.fn.fitVids && $(this).parent().hasClass('cmplz-video')) { $(this).parent().fitVids(); } });Pushed version 2.1.5 on repo has changed code and doesn’t work anymore:
//some video specific actions $('.cmplz-video').each(function (i, obj) { //reset video height adjustments $(this).height('inherit'); //fitvids needs to be reinitialized, if it is used. if (jQuery.fn.fitVids) { $(this).fitVids(); } }); //iframes $('.cmplz-iframe').each(function (i, obj) { var src = $(this).data('src-cmplz'); $(this).attr('src', src); });
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
The topic ‘Video Iframes’ is closed to new replies.