"},e.prototype._append=function(e){this.$el=t(this._setTemplate(this.title,this.content)).appendTo(t(document.body)).addClass(this.theme),this._show()},e.prototype._show=function(){this.$el.show(),this._center(),this._controls(),this.onOpen(this.$el)},e.prototype._controls=function(){var e=this;function n(){e.$el.hide(),e.onClose(e.$el)}this.$el.on("click",".jquery-adi_close",n),t(document).on("keyup",function(t){27==t.keyCode&&n()})},e.prototype._center=function(){var t=this.$el.find(".jquery-adi_content");t.css("margin-top",-Math.abs(t.outerHeight()/2))},e.defaults={title:"Adblock detected!",content:"We noticed that you may have an Ad Blocker turned on. Please be aware that our site is best experienced with Ad Blockers turned off.",theme:"light",onOpen:function(){},onClose:function(){},active:function(){},inactive:function(){}}}(jQuery);
(function ($) {
"use strict";
var triggerAlert = false;
var adblockDetectedAlert = function() {
$('html').addClass('adace-show-popup-detector');
$('.adace-detector-button-refresh').on('click', function(){
window.location.reload();
});
$('.adace-popup-close').on('click', function(){
console.log('e');
$('html').removeClass('adace-show-popup-detector');
});
};
$(document).ready(function () {
// Only when the AdBlocker is enabled this script will be available.
if ( typeof $.adi === 'function' ) {
$.adi({
onOpen: function (el) {
adblockDetectedAlert();
}
});
}
// Show alert on demand. AdBlocker can be disabled.
if (triggerAlert) {
adblockDetectedAlert();
}
});
})(jQuery);