PageSourceSearch

https://www.luyutea1980.com/js/jquery.blockUI.min.js

js luyutea1980.com collected 2026-10-02 22:20:59 UTC 9,605 bytes, 31 lines download raw bytes

1/*
2 jQuery blockUI plugin
3 Version 2.70.0-2014.11.23
4 Requires jQuery v1.7 or later
5
6 Examples at: http://malsup.com/jquery/block/
7 Copyright (c) 2007-2013 M. Alsup
8 Dual licensed under the MIT and GPL licenses:
9 http://www.opensource.org/licenses/mit-license.php
10 http://www.gnu.org/licenses/gpl.html
11
12 Thanks to Amir-Hossein Sobhi for some excellent contributions!
13*/
14(function(){function l(b){function l(c,a){var f=c==window,d=a&&void 0!==a.message?a.message:void 0;a=b.extend({},b.blockUI.defaults,a||{});if(!a.ignoreIfBlocked||!b(c).data("blockUI.isBlocked")){a.overlayCSS=b.extend({},b.blockUI.defaults.overlayCSS,a.overlayCSS||{});var g=b.extend({},b.blockUI.defaults.css,a.css||{});a.onOverlayClick&&(a.overlayCSS.cursor="pointer");var k=b.extend({},b.blockUI.defaults.themedCSS,a.themedCSS||{});d=void 0===d?a.message:d;f&&m&&r(window,{fadeOut:0});if(d&&"string"!=
15typeof d&&(d.parentNode||d.jquery)){var h=d.jquery?d[0]:d,e={};b(c).data("blockUI.history",e);e.el=h;e.parent=h.parentNode;e.display=h.style.display;e.position=h.style.position;e.parent&&e.parent.removeChild(h)}b(c).data("blockUI.onUnblock",a.onUnblock);e=a.baseZ;var l=t||a.forceIframe?b('<iframe class="blockUI" style="z-index:'+e++ +';display:none;border:none;margin:0;padding:0;position:absolute;width:100%;height:100%;top:0;left:0" src="'+a.iframeSrc+'"></iframe>'):b('<div class="blockUI" style="display:none"></div>');
16h=a.theme?b('<div class="blockUI blockOverlay ui-widget-overlay" style="z-index:'+e++ +';display:none"></div>'):b('<div class="blockUI blockOverlay" style="z-index:'+e++ +';display:none;border:none;margin:0;padding:0;width:100%;height:100%;top:0;left:0"></div>');a.theme&&f?(e='<div class="blockUI '+a.blockMsgClass+' blockPage ui-dialog ui-widget ui-corner-all" style="z-index:'+(e+10)+';display:none;position:fixed">',a.title&&(e+='<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+
17(a.title||"&nbsp;")+"</div>"),e+='<div class="ui-widget-content ui-dialog-content"></div></div>'):a.theme?(e='<div class="blockUI '+a.blockMsgClass+' blockElement ui-dialog ui-widget ui-corner-all" style="z-index:'+(e+10)+';display:none;position:absolute">',a.title&&(e+='<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(a.title||"&nbsp;")+"</div>"),e+='<div class="ui-widget-content ui-dialog-content"></div></div>'):e=f?'<div class="blockUI '+a.blockMsgClass+' blockPage" style="z-index:'+
18(e+10)+';display:none;position:fixed"></div>':'<div class="blockUI '+a.blockMsgClass+' blockElement" style="z-index:'+(e+10)+';display:none;position:absolute"></div>';e=b(e);d&&(a.theme?(e.css(k),e.addClass("ui-widget-content")):e.css(g));a.theme||h.css(a.overlayCSS);h.css("position",f?"fixed":"absolute");(t||a.forceIframe)&&l.css("opacity",0);g=[l,h,e];var q=f?b("body"):b(c);b.each(g,function(){this.appendTo(q)});a.theme&&a.draggable&&b.fn.draggable&&e.draggable({handle:".ui-dialog-titlebar",cancel:"li"});
19k=A&&(!b.support.boxModel||0<b("object,embed",f?null:c).length);if(v||k){f&&a.allowBodyStretch&&b.support.boxModel&&b("html,body").css("height","100%");if((v||!b.support.boxModel)&&!f){k=parseInt(b.css(c,"borderTopWidth"),10)||0;var p=parseInt(b.css(c,"borderLeftWidth"),10)||0,w=k?"(0 - "+k+")":0,x=p?"(0 - "+p+")":0}b.each(g,function(b,c){var d=c[0].style;d.position="absolute";if(2>b)f?d.setExpression("height","Math.max(document.body.scrollHeight, document.body.offsetHeight) - (jQuery.support.boxModel?0:"+
20a.quirksmodeOffsetHack+') + "px"'):d.setExpression("height",'this.parentNode.offsetHeight + "px"'),f?d.setExpression("width",'jQuery.support.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"'):d.setExpression("width",'this.parentNode.offsetWidth + "px"'),x&&d.setExpression("left",x),w&&d.setExpression("top",w);else if(a.centerY)f&&d.setExpression("top",'(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"'),
21d.marginTop=0;else if(!a.centerY&&f){var e=a.css&&a.css.top?parseInt(a.css.top,10):0;d.setExpression("top","((document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "+e+') + "px"')}})}d&&(a.theme?e.find(".ui-widget-content").append(d):e.append(d),(d.jquery||d.nodeType)&&b(d).show());(t||a.forceIframe)&&a.showOverlay&&l.show();a.fadeIn?(g=a.onBlock?a.onBlock:u,l=a.showOverlay&&!d?g:u,g=d?g:u,a.showOverlay&&h._fadeIn(a.fadeIn,l),d&&e._fadeIn(a.fadeIn,g)):
22(a.showOverlay&&h.show(),d&&e.show(),a.onBlock&&a.onBlock.bind(e)());y(1,c,a);f?(m=e[0],n=b(a.focusableElements,m),a.focusInput&&setTimeout(z,20)):B(e[0],a.centerX,a.centerY);a.timeout&&(d=setTimeout(function(){f?b.unblockUI(a):b(c).unblock(a)},a.timeout),b(c).data("blockUI.timeout",d))}}function r(c,a){var f=c==window,d=b(c),g=d.data("blockUI.history"),k=d.data("blockUI.timeout");k&&(clearTimeout(k),d.removeData("blockUI.timeout"));a=b.extend({},b.blockUI.defaults,a||{});y(0,c,a);null===a.onUnblock&&
23(a.onUnblock=d.data("blockUI.onUnblock"),d.removeData("blockUI.onUnblock"));var h=f?b("body").children().filter(".blockUI").add("body > .blockUI"):d.find(">.blockUI");a.cursorReset&&(1<h.length&&(h[1].style.cursor=a.cursorReset),2<h.length&&(h[2].style.cursor=a.cursorReset));f&&(m=n=null);if(a.fadeOut){var e=h.length;h.stop().fadeOut(a.fadeOut,function(){0===--e&&q(h,g,a,c)})}else q(h,g,a,c)}function q(c,a,f,d){var g=b(d);if(!g.data("blockUI.isBlocked")){c.each(function(a,b){this.parentNode&&this.parentNode.removeChild(this)});
24a&&a.el&&(a.el.style.display=a.display,a.el.style.position=a.position,a.el.style.cursor="default",a.parent&&a.parent.appendChild(a.el),g.removeData("blockUI.history"));g.data("blockUI.static")&&g.css("position","static");if("function"==typeof f.onUnblock)f.onUnblock(d,f);c=b(document.body);a=c.width();f=c[0].style.width;c.width(a-1).width(a);c[0].style.width=f}}function y(c,a,f){var d=a==window;a=b(a);if(c||(!d||m)&&(d||a.data("blockUI.isBlocked")))a.data("blockUI.isBlocked",c),d&&f.bindEvents&&(!c||
25f.showOverlay)&&(c?b(document).bind("mousedown mouseup keydown keypress keyup touchstart touchend touchmove",f,p):b(document).unbind("mousedown mouseup keydown keypress keyup touchstart touchend touchmove",p))}function p(c){if("keydown"===c.type&&c.keyCode&&9==c.keyCode&&m&&c.data.constrainTabKey){var a=n,f=c.shiftKey&&c.target===a[0];if(!c.shiftKey&&c.target===a[a.length-1]||f)return setTimeout(function(){z(f)},10),!1}a=c.data;var d=b(c.target);if(d.hasClass("blockOverlay")&&a.onOverlayClick)a.onOverlayClick(c);
26return 0<d.parents("div."+a.blockMsgClass).length?!0:0===d.parents().children().filter("div.blockUI").length}function z(b){n&&(b=n[!0===b?n.length-1:0])&&b.focus()}function B(c,a,f){var d=c.parentNode,g=c.style,k=(d.offsetWidth-c.offsetWidth)/2-(parseInt(b.css(d,"borderLeftWidth"),10)||0);c=(d.offsetHeight-c.offsetHeight)/2-(parseInt(b.css(d,"borderTopWidth"),
2610)||0);a&&(g.left=0<k?k+"px":"0");f&&(g.top=0<c?c+"px":"0")}b.fn._fadeIn=b.fn.fadeIn;var u=b.noop||function(){},t=/MSIE/.test(navigator.userAgent),
27v=/MSIE 6.0/.test(navigator.userAgent)&&!/MSIE 8.0/.test(navigator.userAgent),A=b.isFunction(document.createElement("div").style.setExpression);b.blockUI=function(b){l(window,b)};b.unblockUI=function(b){r(window,b)};b.growlUI=function(c,a,f,d){var g=b('<div class="growlUI"></div>');c&&g.append("<h1>"+c+"</h1>");a&&g.append("<h2>"+a+"</h2>");void 0===f&&(f=3E3);var k=function(a){a=a||{};b.blockUI({message:g,fadeIn:"undefined"!==typeof a.fadeIn?a.fadeIn:700,fadeOut:"undefined"!==typeof a.fadeOut?a.fadeOut:
281E3,timeout:"undefined"!==typeof a.timeout?a.timeout:f,centerY:!1,showOverlay:!1,onUnblock:d,css:b.blockUI.defaults.growlCSS})};k();g.css("opacity");g.mouseover(function(){k({fadeIn:0,timeout:3E4});var a=b(".blockMsg");a.stop();a.fadeTo(300,1)}).mouseout(function(){b(".blockMsg").fadeOut(1E3)})};b.fn.block=function(c){if(this[0]===window)return b.blockUI(c),this;var a=b.extend({},b.blockUI.defaults,c||{});this.each(function(){var c=b(this);a.ignoreIfBlocked&&c.data("blockUI.isBlocked")||c.unblock({fadeOut:0})});
29return this.each(function(){"static"==b.css(this,"position")&&(this.style.position="relative",b(this).data("blockUI.static",!0));this.style.zoom=1;l(this,c)})};b.fn.unblock=function(c){return this[0]===window?(b.unblockUI(c),this):this.each(function(){r(this,c)})};b.blockUI.version=2.7;b.blockUI.defaults={message:"<h1>Please wait...</h1>",title:null,draggable:!0,theme:!1,css:{padding:0,margin:0,width:"30%",top:"40%",left:"35%",textAlign:"center",color:"#000",border:"3px solid #aaa",backgroundColor:"#fff",
30cursor:"wait"},themedCSS:{width:"30%",top:"40%",left:"35%"},overlayCSS:{backgroundColor:"#000",opacity:.6,cursor:"wait"},cursorReset:"default",growlCSS:{width:"350px",top:"10px",left:"",right:"10px",border:"none",padding:"5px",opacity:.6,cursor:"default",color:"#fff",backgroundColor:"#000","-webkit-border-radius":"10px","-moz-border-radius":"10px","border-radius":"10px"},iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank",forceIframe:!1,baseZ:1E3,centerX:!0,centerY:!0,
31allowBodyStretch:!0,bindEvents:!0,constrainTabKey:!0,fadeIn:200,fadeOut:400,timeout:0,showOverlay:!0,focusInput:!0,focusableElements:":input:enabled:visible",onBlock:null,onUnblock:null,onOverlayClick:null,quirksmodeOffsetHack:4,blockMsgClass:"blockMsg",ignoreIfBlocked:!1};var m=null,n=[]}"function"===typeof define&&define.amd&&define.amd.jQuery?define(["jquery"],l):l(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.