PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
Dir : /home/trave494/elintscleaningservices.co.uk/wp-content/themes/porto/js/ |
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 IP: 209.182.202.254 |
Dir : /home/trave494/elintscleaningservices.co.uk/wp-content/themes/porto/js/marquee.min.js |
!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):"undefined"!=typeof exports?module.exports=e(require("jquery")):e(jQuery)}((function(e){e.fn.marquee=function(t){return this.each((function(){var a,n,r,i,s,o=e.extend({},e.fn.marquee.defaults,t),u=e(this),d=3,p="animation-play-state",l=!1,f=function(e,t,a){for(var n=["webkit","moz","MS","o",""],r=0;r<n.length;r++)n[r]||(t=t.toLowerCase()),e.addEventListener(n[r]+t,a,!1)},c=function(){u.timer=setTimeout(k,o.delayBeforeStart)},m={pause:function(){l&&o.allowCss3Support?a.css(p,"paused"):e.fn.pause&&a.pause(),u.data("runningStatus","paused"),u.trigger("paused")},resume:function(){l&&o.allowCss3Support?a.css(p,"running"):e.fn.resume&&a.resume(),u.data("runningStatus","resumed"),u.trigger("resumed")},toggle:function(){m["resumed"===u.data("runningStatus")?"pause":"resume"]()},destroy:function(){clearTimeout(u.timer),u.find("*").addBack().off(),u.html(u.find(".js-marquee:first").html())}};if("string"!=typeof t){var g;e.each(o,(function(e){if(void 0!==(g=u.attr("data-"+e))){switch(g){case"true":g=!0;break;case"false":g=!1}o[e]=g}})),o.speed&&(o.duration=parseInt(u.width(),10)/o.speed*1e3),i="up"===o.direction||"down"===o.direction,o.gap=o.duplicated?parseInt(o.gap):0,u.wrapInner('<div class="js-marquee"></div>');var h=u.find(".js-marquee").css({"margin-right":o.gap,float:"left"});if(o.duplicated&&h.clone(!0).appendTo(u),u.wrapInner('<div style="width:150000px" class="js-marquee-wrapper"></div>'),a=u.find(".js-marquee-wrapper"),i){var y=u.height();a.removeAttr("style"),u.height(y),u.find(".js-marquee").css({float:"none","margin-bottom":o.gap,"margin-right":0}),o.duplicated&&u.find(".js-marquee:last").css({"margin-bottom":0});var v=u.find(".js-marquee:first").height()+o.gap;o.startVisible&&!o.duplicated?(o._completeDuration=(parseInt(v,10)+parseInt(y,10))/parseInt(y,10)*o.duration,o.duration=parseInt(v,10)/parseInt(y,10)*o.duration):o.duration=(parseInt(v,10)+parseInt(y,10))/parseInt(y,10)*o.duration}else s=u.find(".js-marquee:first").width()+o.gap,n=u.width(),o.startVisible&&!o.duplicated?(o._completeDuration=(parseInt(s,10)+parseInt(n,10))/parseInt(n,10)*o.duration,o.duration=parseInt(s,10)/parseInt(n,10)*o.duration):o.duration=(parseInt(s,10)+parseInt(n,10))/parseInt(n,10)*o.duration;if(o.duplicated&&(o.duration=o.duration/2),o.allowCss3Support){var x=document.body||document.createElement("div"),I="marqueeAnimation-"+Math.floor(1e7*Math.random()),w="Webkit Moz O ms Khtml".split(" "),q="animation",S="",b="";if(void 0!==x.style.animation&&(b="@keyframes "+I+" ",l=!0),!1===l)for(var j=0;j<w.length;j++)if(void 0!==x.style[w[j]+"AnimationName"]){var C="-"+w[j].toLowerCase()+"-";q=C+q,p=C+p,b="@"+C+"keyframes "+I+" ",l=!0;break}l&&(S=I+" "+o.duration/1e3+"s "+o.delayBeforeStart/1e3+"s infinite "+o.css3easing,u.data("css3AnimationIsSupported",!0))}var V=function(){a.css("transform","translateY("+("up"===o.direction?y+"px":"-"+v+"px")+")")},B=function(){a.css("transform","translateX("+("left"===o.direction?n+"px":"-"+s+"px")+")")};o.duplicated?(i?o.startVisible?a.css("transform","translateY(0)"):a.css("transform","translateY("+("up"===o.direction?y+"px":"-"+(2*v-o.gap)+"px")+")"):o.startVisible?a.css("transform","translateX(0)"):a.css("transform","translateX("+("left"===o.direction?n+"px":"-"+(2*s-o.gap)+"px")+")"),o.startVisible||(d=1)):o.startVisible?d=2:i?V():B();var k=function(){if(o.duplicated&&(1===d?(o._originalDuration=o.duration,o.duration=i?"up"===o.direction?o.duration+y/(v/o.duration):2*o.duration:"left"===o.direction?o.duration+n/(s/o.duration):2*o.duration,S&&(S=I+" "+o.duration/1e3+"s "+o.delayBeforeStart/1e3+"s "+o.css3easing),d++):2===d&&(o.duration=o._originalDuration,S&&(I+="0",b=e.trim(b)+"0 ",S=I+" "+o.duration/1e3+"s 0s infinite "+o.css3easing),d++)),i?o.duplicated?(d>2&&a.css("transform","translateY("+("up"===o.direction?0:"-"+v+"px")+")"),r={transform:"translateY("+("up"===o.direction?"-"+v+"px":0)+")"}):o.startVisible?2===d?(S&&(S=I+" "+o.duration/1e3+"s "+o.delayBeforeStart/1e3+"s "+o.css3easing),r={transform:"translateY("+("up"===o.direction?"-"+v+"px":y+"px")+")"},d++):3===d&&(o.duration=o._completeDuration,S&&(I+="0",b=e.trim(b)+"0 ",S=I+" "+o.duration/1e3+"s 0s infinite "+o.css3easing),V()):(V(),r={transform:"translateY("+("up"===o.direction?"-"+a.height()+"px":y+"px")+")"}):o.duplicated?(d>2&&a.css("transform","translateX("+("left"===o.direction?0:"-"+s+"px")+")"),r={transform:"translateX("+("left"===o.direction?"-"+s+"px":0)+")"}):o.startVisible?2===d?(S&&(S=I+" "+o.duration/1e3+"s "+o.delayBeforeStart/1e3+"s "+o.css3easing),r={transform:"translateX("+("left"===o.direction?"-"+s+"px":n+"px")+")"},d++):3===d&&(o.duration=o._completeDuration,S&&(I+="0",b=e.trim(b)+"0 ",S=I+" "+o.duration/1e3+"s 0s infinite "+o.css3easing),B()):(B(),r={transform:"translateX("+("left"===o.direction?"-"+s+"px":n+"px")+")"}),u.trigger("beforeStarting"),l){a.css(q,S);var t=b+" { 100% "+function(e){var t=[];for(var a in e)e.hasOwnProperty(a)&&t.push(a+":"+e[a]);return t.push(),"{"+t.join(",")+"}"}(r)+"}",p=a.find("style");0!==p.length?p.filter(":last").html(t):e("head").append("<style>"+t+"</style>"),f(a[0],"AnimationIteration",(function(){u.trigger("finished")})),f(a[0],"AnimationEnd",(function(){k(),u.trigger("finished")}))}else a.animate(r,o.duration,o.easing,(function(){u.trigger("finished"),o.pauseOnCycle?c():k()}));u.data("runningStatus","resumed")};u.on("pause",m.pause),u.on("resume",m.resume),o.pauseOnHover&&(u.on("mouseenter",m.pause),u.on("mouseleave",m.resume)),l&&o.allowCss3Support?k():c()}else e.isFunction(m[t])&&(a||(a=u.find(".js-marquee-wrapper")),!0===u.data("css3AnimationIsSupported")&&(l=!0),m[t]())}))},e.fn.marquee.defaults={allowCss3Support:!0,css3easing:"linear",easing:"linear",delayBeforeStart:1e3,direction:"left",duplicated:!1,duration:5e3,speed:0,gap:20,pauseOnCycle:!1,pauseOnHover:!1,startVisible:!1}})),function(e){e("[data-clone-element]").length&&e("[data-clone-element]").each((function(){var t=e(this),a=t.html(),n=t.attr("data-clone-element");for(let e=0;e<n;e++)t.html(t.html()+a)})),e(".marquee").length&&e.isFunction(e.fn.marquee)&&e(".marquee").marquee({duration:5e3,gap:0,delayBeforeStart:0,direction:"left",duplicated:!0})}(window.jQuery);