Fix File
•
/
home
/
sportsfe...
/
httpdocs
/
clone
/
wp-conte...
/
plugins
/
themify-...
/
assets
•
File:
scripts.js
•
Content:
(($,e,t)=>{"use strict";const o={};o.windowLoad=()=>{let o=!1;const i=e.matchMedia("only screen and (max-width: 760px)").matches,n=(e,o,i)=>{(0===i||isNaN(i))&&(i=1);const n=new Date;n.setTime(n.getTime()+864e5*i);const s="expires="+n.toUTCString();t.cookie=e+"="+o+";"+s+";SameSite=strict;path=/"},s=e=>{"undefined"!=typeof Themify&&Themify.lazyScroll(Themify.convert(e.querySelectorAll("[data-lazy]")).reverse(),!0)},a=(e,o)=>{const i=e+"=",n=decodeURIComponent(t.cookie).split(";");for(let e=0,t=n.length;e<t;++e){let t=n[e];while(" "===t.charAt(0))t=t.substring(1);if(0===t.indexOf(i))return t.substring(i.length,t.length)}return void 0===o&&(o=""),o},p=(e,t,o)=>{"none"===t?o&&o(e):(e.addEventListener("animationend",(function(){this.classList.remove("animated"),this.style.animationName="",o&&o(this)}),{passive:!0,once:!0}),e.classList.add("animated"),e.style.animationName=t)},l=e=>{const t=e.getAttribute("data-style");if("classic"===t||"fullscreen"===t){const t=e.parentNode.getElementsByClassName("mfp-close")[0];t&&t.click()}else"slide-out"===t&&(e=>{const t=e.closest(".themify-popup");t&&p(t,t.getAttribute("data-animation-exit"),(e=>{e.style.display="none"}))})(e)},c=e=>{const t=e.getElementsByClassName("themify-popup-close");for(let o=t.length-1;o>-1;--o)t[o].dataset.init||t[o].addEventListener("click",(t=>{t.preventDefault(),l(e)})),t[o].dataset.init=1},r=i=>{const r=i.id.replace("themify-popup-",""),f=1*a("themify-popup-"+r,0)||0,m=i.getAttribute("data-limit-count");if(m&&f>=m)return;n("themify-popup-"+r,f+1,parseInt(i.getAttribute("data-cookie-expiration")));const u=i.getAttribute("data-style"),h=i.getAttribute("data-auto-close");if("classic"===u||"fullscreen"===u){if(!0===o||t.body.classList.contains("themify-popup-showing"))return;o=!0;const n=i.getAttribute("data-animation-exit"),a="themify-popup-showing themify-popup-style-"+u+" themify-popup-showing-"+r+" tf-popup-position-"+i.getAttribute("data-position"),l=()=>{$.magnificPopup.open({closeOnBgClick:"fullscreen"!==u&&"no"!==i.getAttribute("data-close-overlay"),enableEscapeKey:"yes"===i.getAttribute("data-enableescapekey"),removalDelay:"none"===n?0:1e3,items:{src:i,type:"inline"},callbacks:{open(){const n=this.content[0].getElementsByClassName("mfp-close")[0];n.classList.add("themify-popup-close"),this.contentContainer[0].appendChild(n),c(i),t.body.classList.add(...a.split(" ")),this.content[0].style.display="block",s(this.contentContainer[0]),p(this.contentContainer[0],i.getAttribute("data-animation"),(e=>{s(e)})),e.dispatchEvent(new Event("resize")),o=!1},beforeClose(){p(this.contentContainer[0],n,(e=>{e.style.display="none";const t=e.querySelectorAll("video,audio");for(let e=t.length-1;e>-1;--e)t[e].paused||t[e].pause()}))},close(){t.body.classList.remove(...a.split(" "))}}})};"function"==typeof $.fn.magnificPopup?l():$.getScript(themifyPopup.assets+"/lightbox.min.js",l)}else if("slide-out"===u){const o="onorientationchange"in window?"orientationchange":"resize",n=e=>{const t=e.classList;let o="",i="";t.contains("bottom-center")||t.contains("top-center")?(o="margin-left",i=getComputedStyle(e).getPropertyValue("width")):(t.contains("center-left")||t.contains("center-right"))&&(o="margin-top",i=getComputedStyle(e).getPropertyValue("height")),""!==o&&(i=parseFloat(i),e.style.setProperty(o,i/2*-1+"px"))};let a=i.querySelector(":scope > button.themify-popup-close");a||(a=t.createElement("button"),a.className="themify-popup-close",a.textContent="x",i.appendChild(a),c(i)),i.style.display="block",n(i);let l=null;e.addEventListener(o,(()=>{l&&cancelAnimationFrame(l),l=requestAnimationFrame((()=>{n(i)}))}),{passive:!0}),s(i),p(i,i.getAttribute("data-animation"),(e=>{s(e)}))}else i.style.display="block";h&&setTimeout((()=>{l(i)}),1e3*h)},f=t.getElementsByClassName("themify-popup"),m=[],u=[];"undefined"!=typeof themifyPopup&&"1"===themifyPopup.count_views&&n("themify_popup_page_view",a("themify_popup_page_view",1)+1,1),t.body.addEventListener("click",(e=>{if(!e.target)return;let o="A"===e.target.tagName?e.target:e.target.closest("a");if(o){const i=o.getAttribute("href");if(i&&0===i.indexOf("#themify-popup-")){const o=t.getElementById(i.replace("#",""));o&&(e.preventDefault(),r(o))}}}));for(let e=f.length-1;e>-1;--e){let t=f[e],o=t.getAttribute("data-trigger"),n=t.getAttribute("data-display");!1===i&&"mobile"===n||!0===i&&"desktop"===n||("default"===o||"pageview"===o?r(t):"timedelay"===o?setTimeout((()=>{r(t)}),1e3*t.getAttribute("data-time-delay")):"scroll"===o?u.push({el:t,px:"px"===t.getAttribute("data-scroll-on"),pos:t.getAttribute("data-scroll-position")}):"exit"===o&&m.push(t))}if(void 0!==u[0]){let o=null;const i=()=>{const e=t.documentElement,o=t.body,i="scrollTop",n="scrollHeight";return(e[i]||o[i])/((e[n]||o[n])-e.clientHeight)*100},n=function(){o&&cancelAnimationFrame(o),o=requestAnimationFrame((()=>{const e=i();for(let t=u.length-1;t>-1;--t)(!0===u[t].px&&this.scrollY>u[t].pos||!1===u[t].px&&e>u[t].pos)&&(r(u[t].el),u.splice(t,1));0===u.length&&this.removeEventListener("scroll",n,{passive:!0})}))};e.addEventListener("scroll",n,{passive:!0})}if(void 0!==m[0]){const i="ontouchstart"in e||navigator.msMaxTouchPoints>0?"touchstart":"mousemove",n=100,s=function(t){if(!0!==o){if(t.touches){const e=t.touches[0].clientY+n;this.addEventListener("touchend",(t=>{if(t.changedTouches[0].clientY>e)for(let e=m.length-1;e>-1;--e)r(m[e]),m.splice(e,1)}),{passive:!0,once:!0})}else{const o=t.pageY-e.pageYOffset<7;for(let e=m.length-1;e>-1;--e)!0===o&&(r(m[e]),m.splice(e,1))}0===m.length&&this.removeEventListener(t.type,s,{passive:!0})}};t.addEventListener(i,s,{passive:!0})}},"complete"===t.readyState?o.windowLoad():e.addEventListener("load",o.windowLoad,{once:!0,passive:!0}),e.ThemifyPopup=o})(jQuery,window,document);
•
Search:
•
Replace:
Function
Edit by line
Download
Information
Rename
Copy
Move
Delete
Chmod
List