| Server IP : 14.225.216.240 / Your IP : 216.73.216.26 Web Server : nginx/1.20.1 System : Linux localhost.localdomain 5.14.0-596.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Jun 27 16:02:33 UTC 2025 x86_64 User : taidh ( 1001) PHP Version : 8.3.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/taidh/papacafe.vn/wp-content/themes/papacafe/assets/js/ |
Upload File : |
(function () { function si() { n.keyboardSupport && c("keydown", at) } function d() { var i, o, a, l; if (!k && document.body) { k = !0; var t = document.body, e = document.documentElement, f = window.innerHeight, v = t.scrollHeight; r = document.compatMode.indexOf("CSS") >= 0 ? e : t; u = t; si(); top != self ? s = !0 : di && v > f && (t.offsetHeight <= f || e.offsetHeight <= f) && (i = document.createElement("div"), i.style.cssText = "position:absolute; z-index:-10000; top:0; left:0; right:0; height:" + r.scrollHeight + "px", document.body.appendChild(i), h = function () { o || (o = setTimeout(function () { st || (i.style.height = "0", i.style.height = r.scrollHeight + "px", o = null) }, 500)) }, setTimeout(h, 10), c("resize", h), a = { attributes: !0, childList: !0, characterData: !1 }, p = new pi(h), p.observe(t, a), r.offsetHeight <= f && (l = document.createElement("div"), l.style.clear = "both", t.appendChild(l))); n.fixedBackground || st || (t.style.backgroundAttachment = "scroll", e.style.backgroundAttachment = "scroll") } } function hi() { p && p.disconnect(); l(b, lt); l("mousedown", vt); l("keydown", at); l("resize", h); l("load", d) } function ct(t, i, r) { var s, f, u, h, c, e; (ai(i, r), n.accelerationMax != 1 && (s = Date.now(), f = s - nt, f < n.accelerationDelta && (u = (1 + 50 / f) / 2, u > 1 && (u = Math.min(u, n.accelerationMax), i *= u, r *= u)), nt = Date.now()), o.push({ x: i, y: r, lastX: i < 0 ? .99 : -.99, lastY: r < 0 ? .99 : -.99, start: Date.now() }), g) || (h = ni(), c = t === h || t === document.body, t.$scrollBehavior == null && li(t) && (t.$scrollBehavior = t.style.scrollBehavior, t.style.scrollBehavior = "auto"), e = function () { for (var a, v, w = Date.now(), s = 0, h = 0, f = 0; f < o.length; f++) { var u = o[f], y = w - u.start, p = y >= n.animationTime, l = p ? 1 : y / n.animationTime; n.pulseAlgorithm && (l = wi(l)); a = u.x * l - u.lastX >> 0; v = u.y * l - u.lastY >> 0; s += a; h += v; u.lastX += a; u.lastY += v; p && (o.splice(f, 1), f--) } c ? window.scrollBy(s, h) : (s && (t.scrollLeft += s), h && (t.scrollTop += h)); i || r || (o = []); o.length ? gt(e, t, 1e3 / n.frameRate + 1) : (g = !1, t.$scrollBehavior != null && (t.style.scrollBehavior = t.$scrollBehavior, t.$scrollBehavior = null)) }, gt(e, t, 0), g = !0) } function lt(t) { var e, r, i, o; if ((k || d(), e = t.target, t.defaultPrevented || t.ctrlKey) || f(u, "embed") || f(e, "embed") && /\.pdf/i.test(e.src) || f(u, "object") || e.shadowRoot) return !0; if (r = -t.wheelDeltaX || t.deltaX || 0, i = -t.wheelDeltaY || t.deltaY || 0, ei && (t.wheelDeltaX && a(t.wheelDeltaX, 120) && (r = -120 * (t.wheelDeltaX / Math.abs(t.wheelDeltaX))), t.wheelDeltaY && a(t.wheelDeltaY, 120) && (i = -120 * (t.wheelDeltaY / Math.abs(t.wheelDeltaY)))), r || i || (i = -t.wheelDelta || 0), t.deltaMode === 1 && (r *= 40, i *= 40), o = wt(e), !o) return s && et ? (Object.defineProperty(t, "target", { value: window.frameElement }), parent.wheel(t)) : !0; if (vi(i)) return !0; Math.abs(r) > 1.2 && (r *= n.stepSize / 120); Math.abs(i) > 1.2 && (i *= n.stepSize / 120); ct(o, r, i); t.preventDefault(); pt() } function at(i) { var r = i.target, w = i.ctrlKey || i.altKey || i.metaKey || i.shiftKey && i.keyCode !== t.spacebar, v, c, h, p, a; if ((document.body.contains(u) || (u = document.activeElement), v = /^(textarea|select|embed|object)$/i, c = /^(button|submit|radio|checkbox|file|color|image)$/i, i.defaultPrevented || v.test(r.nodeName) || f(r, "input") && !c.test(r.type) || f(u, "video") || yi(i) || r.isContentEditable || w) || (f(r, "button") || f(r, "input") && c.test(r.type)) && i.keyCode === t.spacebar || f(r, "input") && r.type == "radio" && oi[i.keyCode]) return !0; var y, l = 0, o = 0, e = wt(u); if (!e) return s && et ? parent.keydown(i) : !0; h = e.clientHeight; e == document.body && (h = window.innerHeight); switch (i.keyCode) { case t.up: o = -n.arrowScroll; break; case t.down: o = n.arrowScroll; break; case t.spacebar: y = i.shiftKey ? 1 : -1; o = -y * h * .9; break; case t.pageup: o = -h * .9; break; case t.pagedown: o = h * .9; break; case t.home: e == document.body && document.scrollingElement && (e = document.scrollingElement); o = -e.scrollTop; break; case t.end: p = e.scrollHeight - e.scrollTop; a = p - h; o = a > 0 ? a + 10 : 0; break; case t.left: l = -n.arrowScroll; break; case t.right: l = n.arrowScroll; break; default: return !0 }ct(e, l, o); i.preventDefault(); pt() } function vt(n) { u = n.target } function pt() { clearTimeout(yt); yt = setInterval(function () { it = rt = w = {} }, 1e3) } function ut(n, t, i) { for (var u = i ? it : rt, r = n.length; r--;)u[tt(n[r])] = t; return t } function ci(n, t) { return (t ? it : rt)[tt(n)] } function wt(n) { var t = [], e = document.body, o = r.scrollHeight, i, u, f; do { if (i = ci(n, !1), i) return ut(t, i); if (t.push(n), o === n.scrollHeight) { if (u = kt(r) && kt(e), f = u || dt(r), s && bt(r) || !s && f) return ut(t, ni()) } else if (bt(n) && dt(n)) return ut(t, n) } while (n = n.parentElement) } function bt(n) { return n.clientHeight + 10 < n.scrollHeight } function kt(n) { var t = getComputedStyle(n, "").getPropertyValue("overflow-y"); return t !== "hidden" } function dt(n) { var t = getComputedStyle(n, "").getPropertyValue("overflow-y"); return t === "scroll" || t === "auto" } function li(n) { var t = tt(n), i; return w[t] == null && (i = getComputedStyle(n, "")["scroll-behavior"], w[t] = "smooth" == i), w[t] } function c(n, t, i) { window.addEventListener(n, t, i || !1) } function l(n, t, i) { window.removeEventListener(n, t, i || !1) } function f(n, t) { return n && (n.nodeName || "").toLowerCase() === t.toLowerCase() } function ai(n, t) { n = n > 0 ? 1 : -1; t = t > 0 ? 1 : -1; (y.x !== n || y.y !== t) && (y.x = n, y.y = t, o = [], nt = 0) } function vi(n) { if (n) { i.length || (i = [n, n, n]); n = Math.abs(n); i.push(n); i.shift(); clearTimeout(ht); ht = setTimeout(function () { try { localStorage.SS_deltaBuffer = i.join(",") } catch (n) { } }, 1e3); var t = n > 120 && ft(n), r = !ft(120) && !ft(100) && !t; return n < 50 ? !0 : r } } function a(n, t) { return Math.floor(n / t) == n / t } function ft(n) { return a(i[0], n) && a(i[1], n) && a(i[2], n) } function yi(n) { var t = n.target, i = !1; if (document.URL.indexOf("www.youtube.com/watch") != -1) do if (i = t.classList && t.classList.contains("html5-video-controls"), i) break; while (t = t.parentNode); return i } function ti(t) { var i, r, u; return t = t * n.pulseScale, t < 1 ? i = t - (1 - Math.exp(-t)) : (r = Math.exp(-1), t -= 1, u = 1 - Math.exp(-t), i = r + u * (1 - r)), i * n.pulseNormalize } function wi(t) { return t >= 1 ? 1 : t <= 0 ? 0 : (n.pulseNormalize == 1 && (n.pulseNormalize /= ti(1)), ti(t)) } function v(t) { for (var i in t) ot.hasOwnProperty(i) && (n[i] = t[i]) } var ot = { frameRate: 150, animationTime: 600, stepSize: 80, pulseAlgorithm: !0, pulseScale: 4, pulseNormalize: 1, accelerationDelta: 50, accelerationMax: 3, keyboardSupport: !0, arrowScroll: 50, fixedBackground: !0, excluded: "" }, n = ot, st = !1, s = !1, y = { x: 0, y: 0 }, k = !1, r = document.documentElement, u, p, h, i = [], ht, ei = /^Mac/.test(navigator.platform), t = { left: 37, up: 38, right: 39, down: 40, spacebar: 32, pageup: 33, pagedown: 34, end: 35, home: 36 }, oi = { 37: 1, 38: 1, 39: 1, 40: 1 }, o = [], g = !1, nt = Date.now(), tt = function () { var n = 0; return function (t) { return t.uniqueID || (t.uniqueID = n++) } }(), it = {}, rt = {}, yt, w = {}, fi, b; if (window.localStorage && localStorage.SS_deltaBuffer) try { i = localStorage.SS_deltaBuffer.split(",") } catch (nr) { } var gt = function () { return window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || function (n, t, i) { window.setTimeout(n, i || 1e3 / 60) } }(), pi = window.MutationObserver || window.WebKitMutationObserver || window.MozMutationObserver, ni = function () { var n = document.scrollingElement; return function () { var t, i, r; return n || (t = document.createElement("div"), t.style.cssText = "height:10000px;width:1px;", document.body.appendChild(t), i = document.body.scrollTop, r = document.documentElement.scrollTop, window.scrollBy(0, 3), n = document.body.scrollTop != i ? document.body : document.documentElement, window.scrollBy(0, -3), document.body.removeChild(t)), n } }(); var e = window.navigator.userAgent, ii = /Edge/.test(e), et = /chrome/i.test(e) && !ii, ri = /safari/i.test(e) && !ii, bi = /mobile/i.test(e), ki = /Windows NT 6.1/i.test(e) && /rv:11/i.test(e), di = ri && (/Version\/8/i.test(e) || /Version\/9/i.test(e)), gi = (et || ri || ki) && !bi, ui = !1; try { window.addEventListener("test", null, Object.defineProperty({}, "passive", { get: function () { ui = !0 } })) } catch (nr) { } fi = ui ? { passive: !1 } : !1; b = "onwheel" in document.createElement("div") ? "wheel" : "mousewheel"; b && gi && (c(b, lt, fi), c("mousedown", vt), c("load", d)); v.destroy = hi; window.SmoothScrollOptions && v(window.SmoothScrollOptions); typeof define == "function" && define.amd ? define(function () { return v }) : "object" == typeof exports ? module.exports = v : window.SmoothScroll = v })();