Quelle: YouTube > Bayrischer Rundfunk > Gut zu wissen <script> jQuery(document).ready(function() { loadYT(); //play button for devices jQuery(".youtube-embed-play").on("click",function(){ jQuery(this).css("background-image","none"); loadYTframe(jQuery(this).parent(),1); }); }); jQuery(window).resize(function() { loadYT(); }); jQuery(window).scroll(function() { loadYT(); }); function loadYT(){ jQuery('.youtube-embed').each(function(){ var topOfWin=jQuery(window).scrollTop(); var topOfVid=jQuery(this).offset().top; var vidH=jQuery(this).height(); var winH = window.innerHeight ? window.innerHeight : jQuery(window).height(); var winW = window.innerWidth ? window.innerWidth : jQuery(window).width(); var divImg=jQuery(this).find('.youtube-embed-image'); //thumb load if (topOfWin>topOfVid-(winH*2) && (topOfWin