/var/www/vhosts/ihelp.ro/ajutam.ro/wp-includes/js
NameSizeModeActions
codemirror/-0755rm
crop/-0755rm
dist/-0755rm
imgareaselect/-0755rm
jcrop/-0755rm
jquery/-0755rm
mediaelement/-0755rm
plupload/-0755rm
swfupload/-0755rm
thickbox/-0755rm
tinymce/-0755rm
admin-bar.js105470644editdlrm
admin-bar.min.js34870644editdlrm
api-request.js33240644editdlrm
api-request.min.js10230644editdlrm
autosave.js224760644editdlrm
autosave.min.js58070644editdlrm
backbone.js803900644editdlrm
backbone.min.js243010644editdlrm
clipboard.js268070644editdlrm
clipboard.min.js90090644editdlrm
colorpicker.js290830644editdlrm
colorpicker.min.js164980644editdlrm
comment-reply.js125130644editdlrm
comment-reply.min.js30260644editdlrm
customize-base.js258220644editdlrm
customize-base.min.js78520644editdlrm
customize-loader.js79030644editdlrm
customize-loader.min.js35510644editdlrm
customize-models.js68210644editdlrm
customize-models.min.js36810644editdlrm
customize-preview-nav-menus.js150240644editdlrm
customize-preview-nav-menus.min.js50330644editdlrm
customize-preview-widgets.js232530644editdlrm
customize-preview-widgets.min.js78200644editdlrm
customize-preview.js285970644editdlrm
customize-preview.min.js110110644editdlrm
customize-selective-refresh.js333350644editdlrm
customize-selective-refresh.min.js106930644editdlrm
customize-views.js52220644editdlrm
customize-views.min.js25670644editdlrm
heartbeat.js240520644editdlrm
heartbeat.min.js59470644editdlrm
hoverintent-js.min.js17180644editdlrm
hoverIntent.js72250644editdlrm
hoverIntent.min.js14990644editdlrm
imagesloaded.min.js55200644editdlrm
json2.js310644editdlrm
json2.min.js350644editdlrm
masonry.min.js241380644editdlrm
mce-view.js258490644editdlrm
mce-view.min.js97700644editdlrm
media-audiovideo.js248190644editdlrm
media-audiovideo.min.js120520644editdlrm
media-editor.js291190644editdlrm
media-editor.min.js108850644editdlrm
media-grid.js267810644editdlrm
media-grid.min.js132940644editdlrm
media-models.js436040644editdlrm
media-models.min.js132840644editdlrm
media-views.js2734000644editdlrm
media-views.min.js1107720644editdlrm
quicktags.js226010644editdlrm
quicktags.min.js111320644editdlrm
shortcode.js107580644editdlrm
shortcode.min.js26430644editdlrm
swfobject.js00644editdlrm
swfobject.min.js350644editdlrm
tw-sack.js49700644editdlrm
tw-sack.min.js32880644editdlrm
twemoji.js371900644editdlrm
twemoji.min.js198580644editdlrm
underscore.js687350644editdlrm
underscore.min.js189050644editdlrm
utils.js46650644editdlrm
utils.min.js18640644editdlrm
wp-ajax-response.js39030644editdlrm
wp-ajax-response.min.js25710644editdlrm
wp-api.js469830644editdlrm
wp-api.min.js146820644editdlrm
wp-auth-check.js42070644editdlrm
wp-auth-check.min.js16580644editdlrm
wp-backbone.js152410644editdlrm
wp-backbone.min.js30390644editdlrm
wp-custom-header.js104650644editdlrm
wp-custom-header.min.js44420644editdlrm
wp-embed-template.js67790644editdlrm
wp-embed-template.min.js31740644editdlrm
wp-embed.js32140644editdlrm
wp-embed.min.js12510644editdlrm
wp-emoji-loader.js133570644editdlrm
wp-emoji-loader.min.js29770644editdlrm
wp-emoji-release.min.js227620644editdlrm
wp-emoji.js87920644editdlrm
wp-emoji.min.js28550644editdlrm
wp-list-revisions.js9700644editdlrm
wp-list-revisions.min.js5970644editdlrm
wp-lists.js253150644editdlrm
wp-lists.min.js75210644editdlrm
wp-pointer.js102330644editdlrm
wp-pointer.min.js36210644editdlrm
wp-sanitize.js13280644editdlrm
wp-sanitize.min.js4440644editdlrm
wp-util.js46890644editdlrm
wp-util.min.js14310644editdlrm
wpdialog.js5690644editdlrm
wpdialog.min.js2810644editdlrm
wplink.js212400644editdlrm
wplink.min.js113170644editdlrm
zxcvbn-async.js8210644editdlrm
zxcvbn-async.min.js3510644editdlrm
zxcvbn.min.js8222370644editdlrm
Edit: /var/www/vhosts/ihelp.ro/ajutam.ro/wp-includes/js/comment-reply.js (12513B)
/** * 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 );