PageSourceSearch

https://bad-frankenhausen.de/wp-content/plugins/master-addons/asse…/modal-popup.min.js?ver=1788249325

js bad-frankenhausen.de collected 2026-10-02 11:07:18 UTC 6,161 bytes, 1 lines download raw bytes

1!function(t){"use strict";var e={fade:"jltma-anim-fade-in","fade-slide":"jltma-anim-fade-in-down",zoom:"jltma-anim-zoom-in","slide-from-left":"jltma-anim-slide-from-left","slide-from-right":"jltma-anim-slide-from-right","slide-from-top":"jltma-anim-slide-from-top","slide-from-bottom":"jltma-anim-slide-from-bot"},o={},a={registerTrigger:function(t,e){o[t]=e},init:function(){t(document).ready(function(){try{if(!t(".jltma-template-popup").length)return;if(a.editorCheck())return;a.openPopupInit(),a.closePopupInit()}catch(t){console.error("JltmaPopups: Error during initialization",t)}})},openPopupInit:function(){t(".jltma-template-popup").each(function(){var e=t(this),p=a.getID(e);if(a.checkAvailability(p)&&a.checkStopShowingAfterDate(e)&&a.checkAutoDisableExpiration(e)){a.setLocalStorage(e,"show");var i=JSON.parse(localStorage.getItem("JltmaPopupSettings"))[p];if(!a.checkAvailableDevice(e,i))return!1;if(a.popupTriggerInit(e),"page-load"===i.popup_trigger){var n=1e3*i.popup_load_delay;t(window).on("load",function(){setTimeout(function(){a.openPopup(e,i)},n)})}else o[i.popup_trigger]&&o[i.popup_trigger](e,i,a);"0px"!==e.find(".jltma-popup-container-inner").css("height")&&"undefined"!=typeof PerfectScrollbar&&new PerfectScrollbar(e.find(".jltma-popup-container-inner")[0],{suppressScrollX:!0})}})},openPopup:function(o,p){var i=parseFloat(p.popup_animation_duration)||400;i<10&&(i*=1e3),"notification"===p.popup_display_as&&(o.addClass("jltma-popup-notification"),setTimeout(function(){var e=o.find(".jltma-popup-container").outerHeight();t("body").animate({"padding-top":e+"px"},i,"linear")},10)),"yes"===p.popup_disable_page_scroll&&"modal"===p.popup_display_as&&t("body").css("overflow","hidden"),o.addClass("jltma-popup-open").show();var n,r=(n=p.popup_animation)?0===n.indexOf("jltma-anim-")?n:e[n]?e[n]:"jltma-anim-fade-in":"jltma-anim-fade-in";if(o.find(".jltma-popup-container").addClass("jltma-animate "+r).css("animation-duration",i+"ms"),t(window).trigger("resize"),"no"!==p.popup_show_overlay?o.find(".jltma-popup-overlay").hide().fadeIn():o.find(".jltma-popup-overlay").hide(),(void 0===p.popup_show_close_button||"yes"===p.popup_show_close_button)&&o.find(".jltma-popup-close-btn").length){var l=1e3*(parseFloat(p.popup_close_button_display_delay)||0);o.find(".jltma-popup-close-btn").css("opacity","0"),setTimeout(function(){o.find(".jltma-popup-close-btn").animate({opacity:"1"},500)},l)}if("yes"===p.popup_automatic_close_switch||!0===p.popup_automatic_close_switch){var s=1e3*(parseFloat(p.popup_automatic_close_delay)||10);setTimeout(function(){a.closePopup(o)},s)}},closePopupInit:function(){t(document).on("click",".jltma-popup-close-btn",function(){a.closePopup(t(this).closest(".jltma-template-popup"))}),t(document).on("click",".jltma-popup-overlay",function(){var e=t(this).closest(".jltma-template-popup"),o=a.getID(e),p=a.getLocalStorage(o);p&&"yes"===p.popup_close_on_overlay&&a.closePopup(e)})},closePopup:function(e){var o=a.getID(e),p=a.getLocalStorage(o);p&&"notification"===p.popup_display_as&&t("body").css("padding-top",0),a.setLocalStorage(e,"hide"),p&&"modal"===p.popup_display_as?e.fadeOut():e.hide(),e.removeClass("jltma-popup-open");var i=e.find(".jltma-popup-container");i.removeClass("jltma-animate"),i.attr("class",i.attr("class").replace(/jltma-anim-\S+/g,"").trim()),t("body").css("overflow",""),t(window).trigger("resize")},popupTriggerInit:function(e){var o=e.find(".jltma-popup-trigger-button");o.length&&o.on("click",function(){var o=JSON.parse(localStorage.getItem("JltmaPopupSettings"))||{},p=t(this).attr("data-trigger"),i=t(this).attr("data-show-delay"),n=t(this).attr("data-redirect"),r=t(this).attr("data-redirect-url"),l=a.getID(e);"close"===p||"close-permanently"===p?(o[l].popup_show_again_delay=parseInt(i,10),o[l].popup_close_time=Date.now()):"back"===p&&window.history.back(),a.closePopup(e),localStorage.setItem("JltmaPopupSettings",JSON.stringify(o)),"back"!==p&&"yes"===n&&setTimeout(function(){window.location.href=r},100)})},getLocalStorage:function(t){var e=JSON.parse(localStorage.getItem("JltmaPopupSettings"));if(null==e)return!1;var o=e[t];return null!=o&&o},setLocalStorage:function(t,e){var o=a.getID(t),p=JSON.parse(t.attr("data-settings")),i=JSON.parse(localStorage.getItem("JltmaPopupSettings"))||{};i[o]=p,i[o].popup_close_time="hide"===e&&Date.now(),localStorage.setItem("JltmaPopupSettings",JSON.stringify(i))},checkStopShowingAfterDate:function(t){var e=JSON.parse(t.attr("data-settings")),o=Date.now();return!("yes"===e.popup_stop_after_date&&o>=Date.parse(e.popup_stop_after_date_select))},checkAutoDisableExpiration:function(e){var o=JSON.parse(e.attr("data-settings"));if("yes"===o.popup_disable_automatic&&o.popup_disable_after&&Date.now()>=Date.parse(o.popup_disable_after)){var p=a.getID(e);return"undefined"!=typeof jltma_popup_frontend&&t.ajax({url:jltma_popup_frontend.ajax_url,type:"POST",data:{action:"jltma_popup_disable_expired",popup_id:p,nonce:jltma_popup_frontend.nonce},success:function(t){}}
1),!1}return!0},getDelayMs:function(t){switch(t){case"1-minute":return 6e4;case"3-minutes":return 18e4;case"5-minutes":return 3e5;default:return 0}},checkAvailability:function(e){var o=t("#jltma-popup-id-"+e),p=JSON.parse(o.attr("data-settings")),i=window.location.href;if("yes"!==p.popup_show_via_referral||-1!==i.indexOf("jltma_templates=user-popup")||-1!=i.indexOf(p.popup_referral_keyword)){if(!1===a.getLocalStorage(e))return!0;var n=a.getLocalStorage(e),r=n.popup_close_time||0;if(!r)return!0;if(n.popup_show_again_delay!=p.popup_show_again_delay)return!0;var l=a.getDelayMs(n.popup_show_again_delay);return l!==1/0&&(0===l||Date.now()>=r+l)}},checkAvailableDevice:function(e,o){var a=t("body").prop("clientWidth");return a>1024?""!==o.popup_show_on_device&&"no"!==o.popup_show_on_device:a>768?""!==o.popup_show_on_device_tablet&&"no"!==o.popup_show_on_device_tablet:""!==o.popup_show_on_device_mobile&&"no"!==o.popup_show_on_device_mobile},getID:function(t){return t.attr("id").replace("jltma-popup-id-","")},editorCheck:function(){return!!t("body").hasClass("elementor-editor-active")}};window.JltmaPopups=a,a.init()}(jQuery,window.elementorFrontend);

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.