| Server IP : 138.197.176.125 / Your IP : 216.73.216.41 Web Server : Apache/2.4.41 (Ubuntu) System : Linux SuiteCRM-8 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.3.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/crm_easylife/libraries/jquery/lazyYT/ |
Upload File : |
/*!
* lazyyt
* v0.3.1 - 2014-03-07
* Copyright (c) 2014 Tyler Pearson <ty.pearson@gmail.com> (http://tylerp.me); Licensed MIT %>
*/!function(a){"use strict";function b(b){var c=b,d=c.data("width"),e=c.data("height"),f=c.data("youtube-id"),g=c.data("parameters")||"";if("undefined"==typeof d||"undefined"==typeof e||"undefined"==typeof f)throw new Error("lazyYT is missing a required data attribute.");c.css({position:"relative",height:e,width:d,background:"url(https://img.youtube.com/vi/"+f+"/maxresdefault.jpg) center center no-repeat",cursor:"pointer","-webkit-background-size":"cover","-moz-background-size":"cover","-o-background-size":"cover","background-size":"cover"}).html('<p id="lazyYT-title-'+f+'" class="lazyYT-title"></p><div class="lazyYT-button"></div>').addClass("lazyYT-image-loaded"),a.getJSON("https://gdata.youtube.com/feeds/api/videos/"+f+"?v=2&alt=json",function(b){a("#lazyYT-title-"+f).text(b.entry.title.$t)}),c.on("click",function(a){a.preventDefault(),!c.hasClass("lazyYT-video-loaded")&&c.hasClass("lazyYT-image-loaded")&&c.html('<iframe width="'+d+'" height="'+e+'" src="//www.youtube.com/embed/'+f+"?autoplay=1&"+g+'" frameborder="0" allowfullscreen></iframe>').removeClass("lazyYT-image-loaded").addClass("lazyYT-video-loaded")})}a.fn.lazyYT=function(){return this.each(function(){var c=a(this).css("cursor","pointer");b(c)})}}(jQuery);