1!function(e){"object"==typeof module&&"object"==typeof module.exports?e(require("jquery"),window,document):e(jQuery,window,document)}((function($,e,s,t){var o=[],n=function(){return o.length?o[o.length-1]:null},a=function(){var e,s=!1;for(e=o.length-1;e>=0;e--)o[e].$blocker&&(o[e].$blocker.toggleClass("current",!s).toggleClass("behind",s),s=!0)};$.spmodal=function(e,s){var t,a;if(this.$body=$("body"),this.options=$.extend({},$.spmodal.defaults,s),this.options.doFade=!isNaN(parseInt(this.options.fadeDuration,10)),this.$blocker=null,this.options.closeExisting)for(;$.spmodal.isActive();)$.spmodal.close();if(o.push(this),e.is("a"))if(a=e.attr("href"),this.anchor=e,/^#/.test(a)){if(this.$elm=$(a),1!==this.$elm.length)return null;this.$body.append(this.$elm),this.open()}else this.$elm=$("<div>"),this.$body.append(this.$elm),t=function(e,s){s.elm.remove()},this.showSpinner(),e.trigger($.spmodal.AJAX_SEND),$.get(a).done((function(s){if($.spmodal.isActive()){e.trigger($.spmodal.AJAX_SUCCESS);var o=n();o.$elm.empty().append(s).on($.spmodal.CLOSE,t),o.hideSpinner(),o.open(),e.trigger($.spmodal.AJAX_COMPLETE)}})).fail((function(){var s;e.trigger($.spmodal.AJAX_FAIL),n().hideSpinner(),o.pop(),e.trigger($.spmodal.AJAX_COMPLETE)}));else this.$elm=e,this.anchor=e,this.$body.append(this.$elm),this.open()},$.spmodal.prototype={constructor:$.spmodal,open:function(){var e=this;this.block(),this.anchor.blur(),this.options.doFade?setTimeout((function(){e.show()}),this.options.fadeDuration*this.options.fadeDelay):this.show(),$(s).off("keydown.modal").on("keydown.modal",(function(e){var s=n();27===e.which&&s.options.escapeClose&&s.close()})),this.options.clickClose&&this.$blocker.click((function(e){e.target===this&&$.spmodal.close()}))},close:function(){o.pop(),this.unblock(),this.hide(),$.spmodal.isActive()||$(s).off("keydown.modal")},block:function(){this.$elm.trigger($.spmodal.BEFORE_BLOCK,[this._ctx()]),this.$body.css("overflow","hidden"),this.$blocker=$('<div class="'+this.options.blockerClass+' blocker current"></div>').appendTo(this.$body),a(),this.options.doFade&&this.$blocker.css("opacity",0).animate({opacity:1},this.options.fadeDuration),this.$elm.trigger($.spmodal.BLOCK,[this._ctx()])},unblock:function(e){!e&&this.options.doFade?this.$blocker.fadeOut(this.options.fadeDuration,this.unblock.bind(this,!0)):(this.$blocker.children().appendTo(this.$body),this.$blocker.remove(),this.$blocker=null,a(),$.spmodal.isActive()||this.$body.css("overflow",""))},show:function(){this.$elm.trigger($.spmodal.BEFORE_OPEN,[this._ctx()]),this.options.showClose&&(this.closeButton=$('<a href="#close-modal" rel="modal:close" class="close-modal '+this.options.closeClass+'">'+this.options.closeText+"</a>"),this.$elm.append(this.closeButton)),this.$elm.addClass(this.options.modalClass).appendTo(this.$blocker),this.options.doFade?this.$elm.css({opacity:0,display:"inline-block"}).animate({opacity:1},this.options.fadeDuration):this.$elm.css("display","inline-block"),this.$elm.trigger($.spmodal.OPEN,[this._ctx()])},hide:function(){this.$elm.trigger($.spmodal.BEFORE_CLOSE,[this._ctx()]),this.closeButton&&this.closeButton.remove();var e=this;this.options.doFade?this.$elm.fadeOut(this.options.fadeDuration,(function(){e.$elm.trigger($.spmodal.AFTER_CLOSE,[e._ctx()])})):this.$elm.hide(0,(function(){e.$elm.trigger($.spmodal.AFTER_CLOSE,[e._ctx()])})),this.$elm.trigger($.spmodal.CLOSE,[this._ctx()])},showSpinner:function(){this.options.showSpinner&&(this.spinner=this.spinner||$('<div class="'+this.options.modalClass+'-spinner"></div>').append(this.options.spinnerHtml),this.$body.append(this.spinner),this.spinner.show())},hideSpinner:function(){this.spinner&&this.spinner.remove()},_ctx:function(){return{elm:this.$elm,$elm:this.$elm,$blocker:this.$blocker,options:this.options}}},$.spmodal.close=function(e){if($.spmodal.isActive()){e&&e.preventDefault();var s=n();return s.close(),s.$elm}},$.spmodal.isActive=function(){return o.length>0},$.spmodal.getCurrent=n,$.spmodal.defaults={closeExisting:!0,escapeClose:!0,clickClose:!0,closeText:"Close",closeClass:"",modalClass:"modal",blockerClass:"jquery-modal",spinnerHtml:'<div class="rect1"></div><div class="rect2"></div><div class="rect3"></div><div class="rect4"></div>',showSpinner:!0,showClose:!0,fadeDuration:null,fadeDelay:1},$.spmodal.BEFORE_BLOCK="modal:before-block",$.spmodal.BLOCK="modal:block",$.spmodal.BEFORE_OPEN="modal:before-open",$.spmodal.OPEN="modal:open",$.spmodal.BEFORE_CLOSE="modal:before-close",$.spmodal.CLOSE="modal:close",$.spmodal.AFTER_CLOSE="modal:after-close",$.spmodal.AJAX_SEND="modal:ajax:send",$.spmodal.AJAX_SUCCESS="modal:ajax:success",$.spmodal.AJAX_FAIL="modal:ajax:fail",$.spmodal.AJAX_COMPLETE="modal:ajax:complete",$.fn.spmodal=function(e){return 1===this.length&&new $.spmodal(this,e),this},$(s).on("click.modal",'a[rel~="modal:close"]',$.spmodal.close),$(s).on("click.modal",'a[rel~="modal:open"]',(function(e){e.preventDefault(),$(this).spmodal()}))})),function($){"use strict";$((function(){function e(e){var s=document.cookie.match("(^|;) ?"+e+"=([^;]*)(;|$)");return s?s[2]:null}if($(document).on("click",".santapress-modal",(function(){event.preventDefault(),this.blur();
1var e=$(this).parent().parent().data("postid");if(-1!==this.href.indexOf("embed")){var s=$('<div class="sp-modal-iframe"><iframe id="sp-iframe" src="'+this.href+'" width="100%" height="100%" frameborder="0" scrolling="no"></iframe></div>');s.appendTo("body").spmodal({fadeDuration:200,clickClose:!1});var t=s.find("iframe"),o=function(){setTimeout((function(){var e,o,n=t[0].contentDocument.location.hash.substring(1);s.addClass("iframeloaded").height(Math.floor(n)),setTimeout((function(){$("body").addClass("modal-open")}),350)}),50)};t.bind("load",o),$.ajax({url:data.ajaxurl,data:{action:"sp_track_iframe",postid:e,nonce:$("#sp-nonce").val()},success:function(){},error:function(e,s,t){console.log(t)}})}else $.ajax({dataType:"html",url:data.ajaxurl,data:{action:"sp_fetch_door",postid:e,nonce:$("#sp-nonce").val()},success:function(e){var s=$($.parseHTML(e,document,!0));s||console.log("SantaPress: Something went wrong while fetching the door. Please make sure your theme is using the the_content(); for displaying the post content. See also https://santapress.halloecho.de/docs#faq-01-theme-support."),s.hide(),s.appendTo("body").spmodal({fadeDuration:200,clickClose:!1}),-1!==s.html().indexOf("wpcf7")&&wpcf7.init(s.find(".wpcf7-form")[0]),setTimeout((function(){$("body").addClass("modal-open")}),350)},error:function(e,s,t){console.log(t)}});$(this).addClass("open")})),$(".santapress-modal").each((function(){$(this).addClass("loaded")})),$(document).on($.spmodal.CLOSE,(function(){$(".santapress-modal").removeClass("open"),$("body").removeClass("modal-open")})),$(".santapress-container").hasClass("with-snow")){var s=$(".santapress-container").data("snowcond"),t;"santapress"==$(".santapress-container").data("snowtype")&&("modal"==s&&$("body").addClass("santapress-snow-modal"),"everywhere"==s&&($('<div class="spsnow"></div>').appendTo("body"),$("body").addClass("santapress-snow-everywhere"),$(".santapress-container").hasClass("hiddenmode")||setTimeout((function(){$("body").addClass("santapress-snow-everywhere-active")}),400)))}if($(".santapress-container").hasClass("hiddenmode")){$(".santapress-container").appendTo("body").removeClass("hiddenmode").wrap('<div class="santapress-container-outer"></div>');var o=$(".santapress-container").data("timeout"),n=$(".santapress-container").data("hideafterclose"),a=!1;"session"!=n&&"midnight"!=n&&"number"!=typeof n||!e("sp_hm_exp")||(a=!0),("session"==n&&"session"!==e("sp_hm_exp")||"midnight"==n&&"midnight"!==e("sp_hm_exp")||"number"==typeof n&&"h"!==e("sp_hm_exp"))&&(a=!1),a||o>0&&setTimeout((function(){if($(".santapress-container-outer").fadeIn().addClass("active"),$("body").addClass("santapress-snow-everywhere-active"),n)if("session"==n)document.cookie=encodeURIComponent("sp_hm_exp")+"="+encodeURIComponent("session")+"; path=/";else if("midnight"==n){var e;(e=new Date).setHours(24,0,0,0);var s="; expires="+e.toGMTString();document.cookie=encodeURIComponent("sp_hm_exp")+"="+encodeURIComponent("midnight")+s+"; path=/"}else if("number"==typeof n&&n%1==0){var e;(e=new Date).setTime(e.getTime()+60*n*60*1e3);var s="; expires="+e.toGMTString();document.cookie=encodeURIComponent("sp_hm_exp")+"="+encodeURIComponent("h")+s+"; path=/"}else console.log('SantaPress: Something is wrong with the variable "hide_after_close" you have provided in the shortcode: '+n)}),o);var i=$(".santapress-container").data("trigger");$(document).on("click",i,(function(){$(".santapress-container-outer").fadeIn().addClass("active"),$("body").addClass("santapress-snow-everywhere-active")})),$("#santapress-trigger").length&&$("#santapress-trigger").prependTo("body")}$(document).on("click","#sp-close-hidden-mode",(function(){$(".santapress-container-outer").removeClass("active").fadeOut(),$("body").removeClass("santapress-snow-everywhere-active")})),$(document).on("click",".spquiz-answer",(function(e){e.preventDefault(),this.blur();var s=$(this).find(".spquiz-loader"),t=$(this).parent(),o=$(this).parent().parent(),n=$(this).parent().parent().find(".spquiz-result"),a=$(this).text();s.show(),$.ajax({url:data.ajaxurl,data:{action:"sp_quiz_answer",postid:$(this).parent().parent().data("postid"),answer:encodeURIComponent($(this).text()),nonce:$("#sp-nonce").val()},success:function(e){if(s.hide(),t.hide(),n.html(e).fadeIn(),-1!==e.indexOf("wpcf7")&&(wpcf7.init(n.find(".wpcf7-form")[0]),$('input[name="santapress_title"]').length&&$('input[name="santapress_title"]').val(o.parent().find("h1.santapress-title").text()),$('input[name="santapress_question"]').length&&$('input[name="santapress_question"]').val(o.find(".spquiz-question").text()),$('input[name="santapress_answer"]').length&&$('input[name="santapress_answer"]').val(a)),$("#sp_main_wrap").length){var i=Math.floor($("#sp_main_wrap").height());$("#sp-iframe",window.parent.document).height(i),$(".sp-modal-iframe",window.parent.document).height(i)}if(1==o.data("qc")){var d=new Date;d.setHours(24,0,0,0);var r="; expires="+d.toGMTString(),l=o.data("postid");1==o.data("qctype")?setTimeout((function(){document.cookie=encodeURIComponent("sp_quiz_cookie")+"="+encodeURIComponent(l)+r+"; path=/"}),500):document.addEventListener("wpcf7mailsent",(function(e){setTimeout((function(){document.cookie=encodeURIComponent("sp_quiz_cookie")+"="+encodeURIComponent(l)+r+"; path=/"}),500)}),!1)}o.addClass("answer-submitted")}})})),$(document).on("click",".spquiz-back",(function(e){if(e.preventDefault(),this.blur(),$(this).parent().parent().parent().find(".spquiz-answers").show(),$(this).parent().parent().html(""),$("#sp_main_wrap").length){var s=Math.floor($(".santapress-post-inner").height())+100;$("#sp-iframe",window.parent.document).height(s),$(".sp-modal-iframe",window.parent.document).height(s)}$(".spquiz").removeClass("answer-submitted")})),$(document).on($.spmodal.CLOSE,(function(){$(".modal iframe").attr("src","")}))}))}(jQuery);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.