PageSourceSearch

https://ali2woo.com/wp-content/themes/startuply/js/modal-box.js?ver=6.8.10

js ali2woo.com collected 2026-10-01 10:36:56 UTC 3,295 bytes, 1 lines download raw bytes

1!function(l){var e,o,a,t;function r(o,a,t){var e,d=new Date;0==t?e=0:(d.setTime(d.getTime()+24*t*60*60*1e3),e="expires="+d.toGMTString()),document.cookie=o+"="+a+"; "+e+"; path=/"}(e=function(o){this.el=l(o)}).prototype.center=function(){var o,a=this.el,t=a.find(".modal-box"),e=a.height(),d=t.outerHeight();t.is(".top")||t.is(".bottom")||(o=(e-d)/2,t.css("top",o)),t.is(".bottom")&&(o=e-d,t.css("top",o))},e.prototype.show=function(){var o=this.el,a=o.data("modal"),t=o.find(".modal-box").data("animation"),e=o.find(".modal-box").data("cookie-trigger"),d=o.find(".modal-box").data("cookie-key"),i=o.find(".modal-box").data("cookie"),n=o.find("iframe");(function(o){for(var a=o+"=",t=document.cookie.split(";"),e=0;e<t.length;e++){for(var d=t[e];" "==d.charAt(0);)d=d.substring(1);if(-1!=d.indexOf(a))return d.substring(a.length,d.length)}return""})(a)!=d&&("open"==e&&r(a,d,i),l("[data-modal].open").length&&l("[data-modal].open").modalBox("hide"),n.length&&n.attr("src",n.data("iframeSrc")),o.addClass("open"),"none"==t?o.show():o.fadeIn(250),this.center())},e.prototype.hide=function(){var o=this.el,a=o.data("modal"),t=o.find(".modal-box").data("animation"),e=o.find(".modal-box").data("cookie-trigger"),d=o.find(".modal-box").data("cookie-key"),i=o.find(".modal-box").data("cookie"),n=o.find("iframe");"close"==e&&r(a,d,i),o.removeClass("open"),t&&"none"==t?(o.hide(),n.length&&n.attr("src","")):(o.fadeOut(250),setTimeout(function(){n.length&&n.attr("src","")},250))},l.fn.modalBox=function(t){return this.each(function(){var o=l(this),a=o.data("modalBox");a||(a=new e(this),o.data("modalBox",a)),"string"==typeof t&&a[t]()})},o=function(o){o.preventDefault();var a=l(this).data("modalLink");l("[data-modal="+a+"]").modalBox("show")},clickHandler=function(o){},a=function(){l(this).closest("[data-modal]").modalBox("hide")},resizeHandler=function(){l("[data-modal].open").length&&l("[data-modal].open").modalBox("center")},t=function(o){var a=l(o.target).closest(".modal-window");if(scroll_lock=a.data("scroll-lock"),1==scroll_lock){o.preventDefault();var t=o.originalEvent,e=t.wheelDelta||-t.detail,d=l(o.target).closest(".modal-box");d.length&&(d.get(0).scrollTop-=e)}},l("a").each(function(){l(this);$iframe=l(this).data("iframe"),$iframe&&($modalId=l(this).data("modalLink"),$href=l(this).attr("href"),$iframe='<iframe src="'+$href+'" frameborder="0" allowfullscreen></iframe>',$modalBox='<div class="modal-window" data-modal="'+$modalId+'"><div class="modal-box"><span class="close-btn icon icon-office-52"></span>'+$iframe+"</div></div>",l("body").append($modalBox))}),l(".modal-window").each(function(){var o=l(this),a=o.find(".modal-box"),t=l(this).data("modal"),e=o.data("timeout"),d=o.data("scroll");if(o.find("iframe").length){var i=o.find("iframe"),n=i.attr("src");a.addClass("iframe-box"),i.attr("src",""),i.data("iframeSrc",n)}e&&setTimeout(function(){o.modalBox("show")},e),d&&l(window).on("scroll.modalBox"+t,function(){l(this).scrollTop()>=d&&(o.modalBox("show"),l(window).off(".modalBox"+t))})}),l(document).on("click.modalBox","[data-modal-link]",o).on("click.modalBox","[data-modal]",clickHandler).on("click.modalBox","[data-modal] .close-btn",a).on("mousewheel.modalBox DOMMouseScroll.modalBox","[data-modal]",t),l(window).on("resize.modalBox",resizeHandler)}(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.