HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/Velosophe/dev.abloc.cc/wwwroot/backup/wp-content/themes/abloc/js/ab-legal.js
var ablocBreakpoints = (function() {
  var e = function(e) {
    return ("string" == typeof e || e instanceof String) &&
      (e = e.replace(/[^a-zA-Z ]/g, "")), e;
  },
    t = function() {
      var t = null;
      return window.getComputedStyle &&
        window.getComputedStyle(document.body, "::after")
        ? (
            (t = window.getComputedStyle(document.body, "::after")),
            (t = t.content)
          )
        : (
            (window.getComputedStyle = function(e) {
              return (this.el = e), (this.getPropertyValue = function(t) {
                var i = /(\-([a-z]){1})/g;
                return i.test(t) &&
                  (t = t.replace(i, function() {
                    return arguments[2].toUpperCase();
                  })), e.currentStyle[t] ? e.currentStyle[t] : null;
              }), this;
            }),
            (t = window.getComputedStyle(
              document.getElementsByTagName("head")[0]
            )),
            (t = t.getPropertyValue("font-family"))
          ), e(t);
    };
  return {
    isBreakpoint: function(e) {
      var i = {
        small: ["small", "compact", "medium", "large", "wide", "huge"],
        compact: ["compact", "medium", "large", "wide", "huge"],
        medium: ["medium", "large", "wide", "huge"],
        large: ["large", "wide", "huge"],
        wide: ["wide", "huge"],
        huge: ["huge"]
      },
        n = t();
      return -1 !== jQuery.inArray(n, i[e]);
    },
    getBreakpoint: t
  };
})(jQuery),
  ablocCookie = {
    set: function(e, t, i) {
      var n;
      if (i) {
        var s = new Date();
        s.setTime(s.getTime() + 24 * i * 60 * 60 * 1e3), (n =
          "; expires=" + s.toGMTString());
      } else n = "";
      document.cookie = e + "=" + t + n + "; path=/";
    },
    erase: function(e) {
      ablocCookie.set(e, "", -1);
    },
    get: function(e) {
      for (
        var t = e + "=", i = document.cookie.split(";"), n = 0;
        n < i.length;
        n++
      ) {
        for (var s = i[n]; " " === s.charAt(0); ) s = s.substring(1, s.length);
        if (0 === s.indexOf(t)) return s.substring(t.length, s.length);
      }
      return null;
    }
  },
  ablocLegal = (function() {
    var e,
      t,
      i = {
        body: "body",
        acceptButton: ".js-accept",
        declineButton: ".js-decline",
        legal: ".ab-popup-legal",
        cookie: "islegal",
        classes: { noScroll: "no-scroll" }
      },
      n = function() {
        if (jQuery(document).height() > jQuery(window).height()) {
          var t = jQuery("html").scrollTop()
            ? jQuery("html").scrollTop()
            : jQuery(document).scrollTop();
          jQuery("html").attr("data-scrollpos", t), jQuery("html").css(
            "top",
            -t
          ), setTimeout(function() {
            jQuery(e.body).addClass(e.classes.noScroll);
          }, 240);
        }
      },
      s = function() {
        var t = parseInt(jQuery("html").css("top"));
        jQuery(e.body).removeClass(e.classes.noScroll), t === t &&
          jQuery("html, body").scrollTop(-t), jQuery("html").removeAttr(
          "data-scrollpos"
        ), jQuery("html").removeAttr("style");
      },
      o = function(e) {
        e.preventDefault(), (t = !0), l(), a();
      },
      r = function(e) {
        e.preventDefault(), (t = !1), l();
      },
      a = function() {
        jQuery(e.legal).remove(), s();
      },
      l = function() {
        var i = t;
        ablocCookie.set(e.cookie, i);
      },
      d = function() {
        var t = ablocCookie.get(e.cookie);
        if (t) return t;
      },
      c = function() {
        jQuery(e.acceptButton).on("click", o), jQuery(e.declineButton).on(
          "click",
          r
        );
      };
    return {
      init: function(s) {
        (s = s || {}), (e = jQuery.extend({}, i, s)), (t = d()), "true" === t
          ? a()
          : (n(), c());
      }
    };
  })(jQuery);
// !(function(e) {
//   e(document).ready(function() {
//     ablocLegal.init();
//   });
// })(jQuery);