Files
Testing/tbb/wp-content/plugins/wp-ajaxify-comments/js/wp-ajaxify-comments.min.js

30 lines
39 KiB
JavaScript
Raw Permalink Normal View History

2026-11-17 16:15:01 -05:00
/*
* jsUri v1.1.1
* https://github.com/derek-watson/jsUri
*
* Copyright 2011, Derek Watson
* Released under the MIT license.
* http://jquery.org/license
*
* Includes parseUri regular expressions
* http://blog.stevenlevithan.com/archives/parseuri
* Copyright 2007, Steven Levithan
* Released under the MIT license.
*
* Date: Mon Nov 14 20:06:34 2011 -0800
*/
var Query=function(b){var e=function(n){var k=[],m,r,o,l;if(typeof(n)==="undefined"||n===null||n===""){return k}if(n.indexOf("?")===0){n=n.substring(1)}r=n.toString().split(/[&;]/);for(m=0;m<r.length;m++){o=r[m];l=o.split("=");k.push([l[0],l[1]])}return k},d=e(b),c=function(){var l="",k,m;for(k=0;k<d.length;k++){m=d[k];if(l.length>0){l+="&"}l+=m.join("=")}return l.length>0?"?"+l:l},a=function(k){k=decodeURIComponent(k);k=k.replace("+"," ");return k},i=function(l){var m,k;for(k=0;k<d.length;k++){m=d[k];if(a(l)===a(m[0])){return m[1]}}},h=function(m){var k=[],l,n;for(l=0;l<d.length;l++){n=d[l];if(a(m)===a(n[0])){k.push(n[1])}}return k},j=function(n,q){var k=[],m,p,l,o;for(m=0;m<d.length;m++){p=d[m];l=a(p[0])===a(n);o=a(p[1])===a(q);if((arguments.length===1&&!l)||(arguments.length===2&&!l&&!o)){k.push(p)}}d=k;return this},f=function(l,m,k){if(arguments.length===3&&k!==-1){k=Math.min(k,d.length);d.splice(k,0,[l,m])}else{if(arguments.length>0){d.push([l,m])}}return this},g=function(o,m,k){var l=-1,n,p;if(arguments.length===3){for(n=0;n<d.length;n++){p=d[n];if(a(p[0])===a(o)&&decodeURIComponent(p[1])===a(k)){l=n;break}}j(o,k).addParam(o,m,l)}else{for(n=0;n<d.length;n++){p=d[n];if(a(p[0])===a(o)){l=n;break}}j(o);f(o,m,l)}return this};return{getParamValue:i,getParamValues:h,deleteParam:j,addParam:f,replaceParam:g,toString:c}};var Uri=function(k){var l=false,x=function(J){var F={strict:/^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,loose:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/},H=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],I={name:"queryKey",parser:/(?:^|&)([^&=]*)=?([^&]*)/g},D=F[l?"strict":"loose"].exec(J),G={},E=14;while(E--){G[H[E]]=D[E]||""}G[I.name]={};G[H[12]].replace(I.parser,function(L,K,M){if(K){G[I.name][K]=M}});return G},j=x(k||""),C=new Query(j.query),o=function(D){if(typeof D!=="undefined"){j.protocol=D}return j.protocol},h=null,b=function(D){if(typeof D!=="undefined"){h=D}if(h===null){return(j.source.indexOf("//")!==-1)}else{return h}},g=function(D){if(typeof D!=="undefined"){j.userInfo=D}return j.userInfo},p=function(D){if(typeof D!=="undefined"){j.host=D}return j.host},m=function(D){if(typeof D!=="undefined"){j.port=D}return j.port},r=function(D){if(typeof D!=="undefined"){j.path=D}return j.path},f=function(D){if(typeof D!=="undefined"){C=new Query(D)}return C},i=function(D){if(typeof D!=="undefined"){j.anchor=D}return j.anchor},w=function(D){o(D);return this},s=function(D){b(D);return this},n=function(D){g(D);return this},y=function(D){p(D);return this},u=function(D){m(D);return this},B=function(D){r(D);return this},t=function(D){f(D);return this},a=function(D){i(D);return this},c=function(D){return f().getParamValue(D)},e=function(D){return f().getParamValues(D)},z=function(D,E){if(arguments.length===2){f().deleteParam(D,E)}else{f().deleteParam(D)}return this},d=function(E,F,D){if(arguments.length===3){f().addParam(E,F,D)}else{f().addParam(E,F)}return this},q=function(F,E,D){if(arguments.length===3){f().replaceParam(F,E,D)}else{f().replaceParam(F,E)}return this},v=function(){var D="",E=function(F){return(F!==null&&F!=="")};if(E(o())){D+=o();if(o().indexOf(":")!==o().length-1){D+=":"}D+="//"}else{if(b()&&E(p())){D+="//"}}if(E(g())&&E(p())){D+=g();if(g().indexOf("@")!==g().length-1){D+="@"}}if(E(p())){D+=p();if(E(m())){D+=":"+m()}}if(E(r())){D+=r()}else{if(E(p())&&(E(f().toString())||E(i()))){D+="/"}}if(E(f().toString())){if(f().toString().indexOf("?")!==0){D+="?"}D+=f().toString()}if(E(i())){if(i().indexOf("#")!==0){D+="#"}D+=i()}return D},A=function(){return new Uri(v())};return{protocol:o,hasAuthorityPrefix:b,userInfo:g,host:p,port:m,path:r,query:f,anchor:i,setProtocol:w,setHasAuthorityPrefix:s,setUserInfo:n,setHost:y,setPort:u,setPath:B,setQuery:t,setAnchor:a,getQueryParamValue:c,g
/*
* jQuery blockUI plugin
* Version 2.64.0-2013.07.18
* @requires jQuery v1.7 or later
*
* Examples at: http://malsup.com/jquery/block/
* Copyright (c) 2007-2013 M. Alsup
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
*
* Thanks to Amir-Hossein Sobhi for some excellent contributions!
*/
(function(){function a(j){j.fn._fadeIn=j.fn.fadeIn;var d=j.noop||function(){};var n=/MSIE/.test(navigator.userAgent);var f=/MSIE 6.0/.test(navigator.userAgent)&&!/MSIE 8.0/.test(navigator.userAgent);var k=document.documentMode||0;var g=j.isFunction(document.createElement("div").style.setExpression);j.blockUI=function(r){e(window,r)};j.unblockUI=function(r){i(window,r)};j.growlUI=function(x,u,v,s){var t=j('<div class="growlUI"></div>');if(x){t.append("<h1>"+x+"</h1>")}if(u){t.append("<h2>"+u+"</h2>")}if(v===undefined){v=3000}var r=function(y){y=y||{};j.blockUI({message:t,fadeIn:typeof y.fadeIn!=="undefined"?y.fadeIn:700,fadeOut:typeof y.fadeOut!=="undefined"?y.fadeOut:1000,timeout:typeof y.timeout!=="undefined"?y.timeout:v,centerY:false,showOverlay:false,onUnblock:s,css:j.blockUI.defaults.growlCSS})};r();var w=t.css("opacity");t.mouseover(function(){r({fadeIn:0,timeout:30000});var y=j(".blockMsg");y.stop();y.fadeTo(300,1)}).mouseout(function(){j(".blockMsg").fadeOut(1000)})};j.fn.block=function(s){if(this[0]===window){j.blockUI(s);return this}var r=j.extend({},j.blockUI.defaults,s||{});this.each(function(){var t=j(this);if(r.ignoreIfBlocked&&t.data("blockUI.isBlocked")){return}t.unblock({fadeOut:0})});return this.each(function(){if(j.css(this,"position")=="static"){this.style.position="relative";j(this).data("blockUI.static",true)}this.style.zoom=1;e(this,s)})};j.fn.unblock=function(r){if(this[0]===window){j.unblockUI(r);return this}return this.each(function(){i(this,r)})};j.blockUI.version=2.6;j.blockUI.defaults={message:"<h1>Please wait...</h1>",title:null,draggable:true,theme:false,css:{padding:0,margin:0,width:"30%",top:"40%",left:"35%",textAlign:"center",color:"#000",border:"3px solid #aaa",backgroundColor:"#fff",cursor:"wait"},themedCSS:{width:"30%",top:"40%",left:"35%"},overlayCSS:{backgroundColor:"#000",opacity:0.6,cursor:"wait"},cursorReset:"default",growlCSS:{width:"350px",top:"10px",left:"",right:"10px",border:"none",padding:"5px",opacity:0.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:false,baseZ:1000,centerX:true,centerY:true,allowBodyStretch:true,bindEvents:true,constrainTabKey:true,fadeIn:200,fadeOut:400,timeout:0,showOverlay:true,focusInput:true,focusableElements:":input:enabled:visible",onBlock:null,onUnblock:null,onOverlayClick:null,quirksmodeOffsetHack:4,blockMsgClass:"blockMsg",ignoreIfBlocked:false};var c=null;var h=[];function e(v,H){var E,P;var C=(v==window);var y=(H&&H.message!==undefined?H.message:undefined);H=j.extend({},j.blockUI.defaults,H||{});if(H.ignoreIfBlocked&&j(v).data("blockUI.isBlocked")){return}H.overlayCSS=j.extend({},j.blockUI.defaults.overlayCSS,H.overlayCSS||{});E=j.extend({},j.blockUI.defaults.css,H.css||{});if(H.onOverlayClick){H.overlayCSS.cursor="pointer"}P=j.extend({},j.blockUI.defaults.themedCSS,H.themedCSS||{});y=y===undefined?H.message:y;if(C&&c){i(window,{fadeOut:0})}if(y&&typeof y!="string"&&(y.parentNode||y.jquery)){var K=y.jquery?y[0]:y;var R={};j(v).data("blockUI.history",R);R.el=K;R.parent=K.parentNode;R.display=K.style.display;R.position=K.style.position;if(R.parent){R.parent.removeChild(K)}}j(v).data("blockUI.onUnblock",H.onUnblock);var D=H.baseZ;var O,N,M,I;if(n||H.forceIframe){O=j('<iframe class="blockUI" style="z-index:'+(D++)+';display:none;border:none;margin:0;padding:0;position:absolute;width:100%;height:100%;top:0;left:0" src="'+H.iframeSrc+'"></iframe>')}else{O=j('<div class="blockUI" style="display:none"></div>')}if(H.theme){N=j('<div class="blockUI blockOverlay ui-widget-overlay" style="z-index:'+(D++)+';display:none"></div>')}else{N=j('<div class="blockUI blockOverlay" style="z-index:'+(D++)+';display:none;border:none;margin:0;padding:0;width:100%;height:100%;top:0;left:0"></div>')}if(H.theme&&C){I='<div class="blockUI '+H.blockMsgClass+' blockPage ui-dialog ui-widget ui-corner-all" style="z-index:'+(D+10)+';display:none;position:fixed">';if(H.title){I+='<div class="ui