PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
Dir : /home/trave494/newcrypto.kerihosting.com/wp-content/plugins/wp2speed/lib/asset/ |
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/newcrypto.kerihosting.com/wp-content/plugins/wp2speed/lib/asset/custom.js |
function hpp_fixVideoSource(a){"undefined"!=typeof mejs&&(mejs.i18n.language&&mejs.i18n.language("vi"),a("video source[data-src],audio source[data-src]").each(function(){a(this).attr("src",a(this).data("src")),a(this).removeAttr("data-src"),a(this).mediaelementplayer({pluginPath:"https://cdnjs.com/libraries/mediaelement/",shimScriptAccess:"always"})}),setTimeout(function(){a(".mejs-container video").each(function(){a(this).closest(".mejs-container").height(a(this).height())})},500))}function hpp_delay_video(a){_HWIO._addjs("https://www.youtube.com/iframe_api"),a("body").on("click",".start-video",function(){var b="v"+Math.random().toString(36).substring(7),c=a(this).closest(".yt-video-place"),d=3*c.width()/5,e=document.createElement("div"),f=a("#hpp_mPlayNxt");c.height(d),a(this).closest(".video-fit.video").removeClass("lazy-vd"),0==f.length?(f=a('<div id="hpp_mPlayNxt"></div>'),f.html('<div class="cover"></div><div class="yt-video-place embed-responsive">'+c.html()+"</div>"),f.find(".start-video").click(function(){f.data("pl").playVideo(),f.hide(),c[0].scrollIntoView()}),f.hide().appendTo("body")):f.find("img:eq(0)").attr("src",c.find("img:eq(0)").attr("src")),c.empty().append(e);var g=function(){if("object"==typeof YT)var a=new YT.Player(e,{height:d+"px",width:"100%",videoId:c.data("yt-url").replace(/\?.+/g,"").replace("https://www.youtube.com/embed/",""),controls:1,loop:1,events:{onReady:function(a){a.target.playVideo(),f.data("pl",a.target);var b=a.target;setTimeout(function(){b.playVideo()},1e3)},onStateChange:function(b){window.ytevt=b,b.data==YT.PlayerState.ENDED&&a.seekTo(0)}}});else c.html('<iframe id="'+b+'" allowfullscreen frameborder="0" width="100%" style="height:'+d+'px !important" src="'+c.data("yt-url")+'"></iframe>')};"object"==typeof YT?g():_HWIO.waitForExist(g,"YT")})}function hpp_run_lazy(a){var b=function(){this.setAttribute("src",this.getAttribute("data-src")),this.removeAttribute("data-src")};a(".h-lazy,.lazyload").addClass("lazy").removeClass("h-lazy lazyload"),a("iframe[data-src]:not(.lazy)").each(b),a("img[srcset]").each(function(){this.removeAttribute("srcset")}),a("script[data-src]").each(b),setTimeout(function(){a('img.lazyloaded[src*="data:image"]').addClass("lazy")},1e3)}_HWIO.events={},_HWIO.addEvent=function(a,b,c,d){this.events[a]||(this.events[a]={callback:[]}),"function"==typeof b&&this.events[a].callback.push({func:b,args:c}),d&&this.events[a]&&this.events[a].fired&&(c=c||{},this.events[a].args&&(c=_HWIO.assign(this.events[a].args,c)),this.fireEvent(a,c,1))},_HWIO.fireEvent=function(a,b,c){var d=this;this.events[a]?(_HWIO.events[a].args||(_HWIO.events[a].args={}),this.events[a].callback.forEach(function(a){var e;c&&a.executed||(a.executed=1,e={},(b||a.args)&&(e=_HWIO.assign({},b||{},a.args||{})),a.func.bind(d)(e))}),void 0!==this.events[a]&&(this.events[a].fired=1)):this.events[a]={fired:1,callback:[]}},_HWIO.hasEvent=function(a){return void 0!==this.events[a]},_HWIO.removeEvent=function(a){this.events[a]&&delete this.events[a]},_HWIO.isFireEvent=function(a){return!(!this.events[a]||!this.events[a].fired)},_HWIO.observer={data:{},init:function(){var a=this;"undefined"!=typeof MutationObserver?(this.observer=new MutationObserver(function(b){b.forEach(function(b){var c,d=jQuery(b.target).attr("id");if(!d&&(c=jQuery(b.target).attr("class")))for(var e in c=c.split(/[\s]+/g))if(a.data["done_observe_"+c[e]]){d=c[e];break}d&&a.data["done_observe_"+d]&&(a.data["done_observe_"+d].done||(_HWIO.fireEvent("observe_"+d,{mutation:b}),_log("\ttrigger success",d)))})}),_log("observer.init")):_log("%c not support Observer","color:red")},track:function(a,b,c,d){function e(){return"string"==typeof a?jQuery(a).get(0):a}var f=this;this.observer||this.init(),"string"!=typeof a||d||(d=a),b=b||{childList:!0,attributes:!0},"string"==typeof d?d=d.replace(/^(\.|\#)/g,""):(d=("hw"+Math.random()).replace(".",""),e()&&e().classList.add(d)),_HWIO.waitForExist(function(){var a=e();a&&f.observer.observe(a,b),_log("set observe",d,a?"success":"error")},e,1e3,10,"wait_observe_"+d),this.data["done_observe_"+d]={done:0,callback:function(a){void 0!==a&&(f.data["done_observe_"+d].done=a)}},_HWIO.addEvent("observe_"+d,function(a){c(a,f.data["done_observe_"+d].callback)},b)},is_support:function(){return"undefined"!=typeof MutationObserver}},function(a){var b;jQuery(window).height(),jQuery(window).scroll(function(){b&&window.clearTimeout(b),b=window.setTimeout(function(){a.hpp_on_scroll&&a.hpp_on_scroll()},500)})}(window),function(a){var b=a(window);a.fn.visible=function(a,c,d){if(!(this.length<1)){var e=this.length>1?this.eq(0):this,f=e.get(0),g=b.width(),h=b.height(),d=d||"both",i=!0!==c||f.offsetWidth*f.offsetHeight;if("function"==typeof f.getBoundingClientRect){var j=f.getBoundingClientRect(),k=j.top>=0&&j.top<h,l=j.bottom>0&&j.bottom<=h,m=j.left>=0&&j.left<g,n=j.right>0&&j.right<=g,o=a?k||l:k&&l,p=a?m||n:m&&n;if("both"===d)return i&&o&&p;if("vertical"===d)return i&&o;if("horizontal"===d)return i&&p}else{var q=b.scrollTop(),r=q+h,s=b.scrollLeft(),t=s+g,u=e.offset(),v=u.top,w=v+e.height(),x=u.left,y=x+e.width(),z=!0===a?w:v,A=!0===a?v:w,B=!0===a?y:x,C=!0===a?x:y;if("both"===d)return!!i&&r>=A&&z>=q&&t>=C&&B>=s;if("vertical"===d)return!!i&&r>=A&&z>=q;if("horizontal"===d)return!!i&&t>=C&&B>=s}}}}(jQuery),function(a,b){"object"==typeof exports&&"undefined"!=typeof module?module.exports=b():"function"==typeof define&&define.amd?define(b):(a=a||self,function(){var c=a.Cookies,d=a.Cookies=b();d.noConflict=function(){return a.Cookies=c,d}}())}(this,function(){"use strict";function a(a){for(var b=1;b<arguments.length;b++){var c=arguments[b];for(var d in c)a[d]=c[d]}return a}var b={read:function(a){return a.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(a){return encodeURIComponent(a).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};return function c(d,e){function f(b,c,f){if("undefined"!=typeof document){"number"==typeof(f=a({},e,f)).expires&&(f.expires=new Date(Date.now()+864e5*f.expires)),f.expires&&(f.expires=f.expires.toUTCString()),b=encodeURIComponent(b).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape),c=d.write(c,b);var g="";for(var h in f)f[h]&&(g+="; "+h,!0!==f[h]&&(g+="="+f[h].split(";")[0]));return document.cookie=b+"="+c+g}}return Object.create({set:f,get:function(a){if("undefined"!=typeof document&&(!arguments.length||a)){for(var c=document.cookie?document.cookie.split("; "):[],e={},f=0;f<c.length;f++){var g=c[f].split("="),h=g.slice(1).join("=");'"'===h[0]&&(h=h.slice(1,-1));try{var i=b.read(g[0]);if(e[i]=d.read(h,i),a===i)break}catch(a){}}return a?e[a]:e}},remove:function(b,c){f(b,"",a({},c,{expires:-1}))},withAttributes:function(b){return c(this.converter,a({},this.attributes,b))},withConverter:function(b){return c(a({},this.converter,b),this.attributes)}},{attributes:{value:Object.freeze(e)},converter:{value:Object.freeze(d)}})}(b,{path:"/"})}),_HWIO.cookies_enabled=function(){var a=!!navigator.cookieEnabled;return void 0!==navigator.cookieEnabled||a||(document.cookie="testcookie",a=-1!=document.cookie.indexOf("testcookie")),a},_HWIO.data.gencss&&_HWIO.readyjs(function(){var a={found:$('style[id="critical-css"][name]').length,key:$('meta[name="critical-css-name"]').attr("content")};if(_HWIO.cookies_enabled()&&(!document.referrer||-1!==document.referrer.indexOf(location.hostname))&&!instr(location.href,["?hpp-gen-critical=","&hpp-gen-critical=","/page/"])&&!a.found&&!navigator.webdriver){a.key||(a.key=$('style[id="critical-css"][name]').attr("name")),a.key0=a.key.split("-"),a.key0.pop(),a.key0=a.key0.join("-"),a.name=-1!==a.key.indexOf("page-")?a.key:a.key0;var b,c=Cookies.get("hpp_gen_css")||{},d=Array.from(document.body.classList).filter(function(a){return 0==a.indexOf("postid-")||0==a.indexOf("page-id-")}),e=0;if("string"==typeof c&&(c=JSON.parse(c)),b=c[a.name]?1:0,d.length&&(e=d[0].replace(/^(postid-|page-id-)/g,"")),!b&&!instr(location.href,["?__hq=no-cache","&__hq=no-cache"]))return void(location.href+=(-1!==location.href.indexOf("?")?"&":"?")+"__hq=no-cache-"+ +new Date);c[a.name]||(c[a.name]=1,Cookies.set("hpp_gen_css",JSON.stringify(c),{expires:1})),$.ajax({url:_HWIO.ajax.ajax_url,method:"POST",data:{action:"hpp_generate_css",nonce:+new Date,url:location.href.replace(/\?(gclid|fbclid|utm_source|__hq)=.*/g,"").split("#")[0],client_ip:"",name:a.key,name0:a.key0,post_id:e,fetch:b},success:function(a){a.error?_log("[error_generate_css]",a):a.data.css&&_log("fetch css for this page success"),window.history.pushState({},"",location.pathname)},error:function(a){window.history.pushState({},"",location.pathname),_log("%c failed ajax","color:red")}}),b?_log("%c wait css","color:pink"):_log("%c generating css","color:red")}}),_HWIO.readyjs(function(a){void 0===a&&(a=jQuery),setTimeout(function(){a(document).trigger("ready"),a(window).trigger("load")}),hpp_run_lazy(a),hpp_fixVideoSource(a),hpp_delay_video(a); /*next-js*/ }),jQuery(document).ajaxSuccess(function(a,b,c){hpp_run_lazy(jQuery)}),document.addEventListener("lazyloaded",function(a){"iframe"==a.target.tagName.toLowerCase()&&a.target.getAttribute("src")&&-1!==a.target.getAttribute("src").indexOf("www.google.com/maps/embed")&&a.target.setAttribute("src",a.target.getAttribute("src")+"&__tm"+Math.random())}),document.querySelectorAll("iframe").forEach(function(a){a.style.setProperty("display","initial")}),window.dispatchEvent(new Event("resize")); /*end-js*/ function initContactForm() { if(initContactForm.init || typeof wpcf7=='undefined' || typeof wpcf7.supportHtml5=='undefined') return; if($( 'div.wpcf7' ).length) initContactForm.init=1;else return; $( 'div.wpcf7 > form' ).each( function() { var $form = $( this ); wpcf7.initForm( $form ); if ( wpcf7.cached ) { wpcf7.refill( $form ); } } ); } initContactForm(); _HWIO.readyjs(function(){ if( typeof wpcf7!='undefined' ){ document.dispatchEvent(new Event("DOMContentLoaded")); document.dispatchEvent(new Event("wpcf7grecaptchaexecuted")); } } );