1var slideWrapper=$(".calcslider"),iframes=slideWrapper.find('.embed-player'),lazyImages=slideWrapper.find('.slide-image'),lazyCounter=0;function postMessageToPlayer(player,command){if(player==null||command==null)return;player.contentWindow.postMessage(JSON.stringify(command),"*");} 2function playPauseVideo(slick,control){var currentSlide,slideType,startTime,player,video;currentSlide=slick.find(".slick-current");slideType=currentSlide.attr("class").split(" ")[1];player=currentSlide.find("iframe").get(0);startTime=currentSlide.data("video-start");if(slideType==="vimeo"){switch(control){case"play":if((startTime!=null&&startTime>0)&&!currentSlide.hasClass('started')){currentSlide.addClass('started');postMessageToPlayer(player,{"method":"setCurrentTime","value":startTime});} 3postMessageToPlayer(player,{"method":"play","value":1});break;case"pause":postMessageToPlayer(player,{"method":"pause","value":1});break;}}else if(slideType==="youtube"){switch(control){case"play":postMessageToPlayer(player,{"event":"command","func":"mute"});postMessageToPlayer(player,{"event":"command","func":"playVideo"});break;case"pause":postMessageToPlayer(player,{"event":"command","func":"pauseVideo"});break;}}else if(slideType==="video"){video=currentSlide.children("video").get(0);if(video!=null){if(control==="play"){video.play();}else{video.pause();}}}} 4function resizePlayer(iframes,ratio){if(!iframes[0])return;var win=$(".calcslider"),width=win.width(),playerWidth,height=win.height(),playerHeight,ratio=ratio||16/9;iframes.each(function(){var current=$(this);if(width/ratio<height){playerWidth=Math.ceil(height*ratio);current.width(playerWidth).height(height).css({left:(width-playerWidth)/2,top:0});}else{playerHeight=Math.ceil(width/ratio);current.width(width).height(playerHeight).css({left:0,top:(height-playerHeight)/2});}});} 5slideWrapper.on("init",function(slick){slick=$(slick.currentTarget);setTimeout(function(){playPauseVideo(slick,"play");},1000);resizePlayer(iframes,16/9);});slideWrapper.on("beforeChange",function(event,slick){slick=$(slick.$slider);playPauseVideo(slick,"pause");});slideWrapper.on("afterChange",function(event,slick){slick=$(slick.$slider);playPauseVideo(slick,"play");});slideWrapper.on("lazyLoaded",function(event,slick,image,imageSource){lazyCounter++;if(lazyCounter===lazyImages.length){lazyImages.addClass('show');}});slideWrapper.slick({infinite:true,slidesToShow:1,slidesToScroll:1,arrows:true,dots:true,autoplay:true,autoplaySpeed:4000,cssEase:"cubic-bezier(0.87, 0.03, 0.41, 0.9)",prevArrow:'<button class="PrevArrow" role="button" aria-label="Previous"></button>',nextArrow:'<button class="NextArrow" role="button" aria-label="next" ></button>',responsive:[{breakpoint:1200,settings:{slidesToShow:1,slidesToScroll:1}},{breakpoint:1008,settings:{slidesToShow:1,slidesToScroll:1}},{breakpoint:800,settings:{slidesToShow:1,slidesToScroll:1}},{breakpoint:400,settings:{slidesToShow:1,slidesToScroll:1}}]});$(window).on("resize.slickVideoPlayer",function(){resizePlayer(iframes,16/9);}); 6;;;
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.