/home/desid573/public_html/magicride.ng/wp-admin/js
NameSizeModeActions
widgets/-0755rm
accordion.js29530644editdlrm
accordion.min.js8300644editdlrm
code-editor.js115870644editdlrm
code-editor.min.js30690644editdlrm
color-picker.js98230644editdlrm
color-picker.min.js34860644editdlrm
comment.js27950644editdlrm
comment.min.js12300644editdlrm
common.js427640644editdlrm
common.min.js152190644editdlrm
custom-background.js34260644editdlrm
custom-background.min.js11620644editdlrm
custom-header.js20190644editdlrm
customize-controls.js2908020644editdlrm
customize-controls.min.js1107480644editdlrm
customize-nav-menus.js1090100644editdlrm
customize-nav-menus.min.js459750644editdlrm
customize-widgets.js714890644editdlrm
customize-widgets.min.js279660644editdlrm
dashboard.js188580644editdlrm
dashboard.min.js66150644editdlrm
edit-comments.js292700644editdlrm
edit-comments.min.js150440644editdlrm
editor-expand.js426310644editdlrm
editor-expand.min.js134160644editdlrm
editor.js453130644editdlrm
editor.min.js131920644editdlrm
farbtastic.js76890644editdlrm
gallery.js56380644editdlrm
gallery.min.js38010644editdlrm
image-edit.js292940644editdlrm
image-edit.min.js100700644editdlrm
inline-edit-post.js163070644editdlrm
inline-edit-post.min.js72840644editdlrm
inline-edit-tax.js77010644editdlrm
inline-edit-tax.min.js28710644editdlrm
iris.min.js236080644editdlrm
language-chooser.js8730644editdlrm
language-chooser.min.js3740644editdlrm
link.js38750644editdlrm
link.min.js16350644editdlrm
media-gallery.js13060644editdlrm
media-gallery.min.js5780644editdlrm
media-upload.js34630644editdlrm
media-upload.min.js11120644editdlrm
media.js52270644editdlrm
media.min.js18670644editdlrm
nav-menu.js424820644editdlrm
nav-menu.min.js209490644editdlrm
password-strength-meter.js31730644editdlrm
password-strength-meter.min.js7310644editdlrm
plugin-install.js70170644editdlrm
plugin-install.min.js23530644editdlrm
post.js374070644editdlrm
post.min.js180270644editdlrm
postbox.js117650644editdlrm
postbox.min.js41440644editdlrm
revisions.js337900644editdlrm
revisions.min.js178400644editdlrm
set-post-thumbnail.js8410644editdlrm
set-post-thumbnail.min.js5330644editdlrm
site-health.js86260644editdlrm
site-health.min.js46630644editdlrm
svg-painter.js55220644editdlrm
svg-painter.min.js23370644editdlrm
tags-box.js110400644editdlrm
tags-box.min.js30250644editdlrm
tags-suggest.js54400644editdlrm
tags-suggest.min.js21940644editdlrm
tags.js43460644editdlrm
tags.min.js16550644editdlrm
theme-plugin-editor.js246760644editdlrm
theme-plugin-editor.min.js112010644editdlrm
theme.js543920644editdlrm
theme.min.js264620644editdlrm
updates.js805730644editdlrm
updates.min.js356290644editdlrm
user-profile.js122520644editdlrm
user-profile.min.js62380644editdlrm
user-suggest.js23170644editdlrm
user-suggest.min.js6570644editdlrm
widgets.js228760644editdlrm
widgets.min.js123950644editdlrm
word-count.js76900644editdlrm
word-count.min.js15000644editdlrm
wp-fullscreen-stub.js6780644editdlrm
wp-fullscreen-stub.min.js3260644editdlrm
xfn.js77100644editdlrm
xfn.min.js33520644editdlrm
Edit: /home/desid573/public_html/magicride.ng/wp-admin/js/user-profile.js (12252B)
/** * @output wp-admin/js/user-profile.js */ /* global ajaxurl, pwsL10n, userProfileL10n */ (function($) { var updateLock = false, $pass1Row, $pass1Wrap, $pass1, $pass1Text, $pass1Label, $pass2, $weakRow, $weakCheckbox, $toggleButton, $submitButtons, $submitButton, currentPass; function generatePassword() { if ( typeof zxcvbn !== 'function' ) { setTimeout( generatePassword, 50 ); return; } else if ( ! $pass1.val() ) { // zxcvbn loaded before user entered password. $pass1.val( $pass1.data( 'pw' ) ); $pass1.trigger( 'pwupdate' ); showOrHideWeakPasswordCheckbox(); } else { // zxcvbn loaded after the user entered password, check strength. check_pass_strength(); showOrHideWeakPasswordCheckbox(); } if ( 1 !== parseInt( $toggleButton.data( 'start-masked' ), 10 ) ) { $pass1Wrap.addClass( 'show-password' ); } else { $toggleButton.trigger( 'click' ); } // Once zxcvbn loads, passwords strength is known. $( '#pw-weak-text-label' ).html( userProfileL10n.warnWeak ); } function bindPass1() { currentPass = $pass1.val(); $pass1Wrap = $pass1.parent(); $pass1Text = $( '' ) .attr( { 'id': 'pass1-text', 'name': 'pass1-text', 'autocomplete': 'off' } ) .addClass( $pass1[0].className ) .data( 'pw', $pass1.data( 'pw' ) ) .val( $pass1.val() ) .on( 'input', function () { if ( $pass1Text.val() === currentPass ) { return; } $pass2.val( $pass1Text.val() ); $pass1.val( $pass1Text.val() ).trigger( 'pwupdate' ); currentPass = $pass1Text.val(); } ); $pass1.after( $pass1Text ); if ( 1 === parseInt( $pass1.data( 'reveal' ), 10 ) ) { generatePassword(); } $pass1.on( 'input' + ' pwupdate', function () { if ( $pass1.val() === currentPass ) { return; } currentPass = $pass1.val(); if ( $pass1Text.val() !== currentPass ) { $pass1Text.val( currentPass ); } $pass1.add( $pass1Text ).removeClass( 'short bad good strong' ); showOrHideWeakPasswordCheckbox(); } ); } function resetToggle() { $toggleButton .data( 'toggle', 0 ) .attr({ 'aria-label': userProfileL10n.ariaHide }) .find( '.text' ) .text( userProfileL10n.hide ) .end() .find( '.dashicons' ) .removeClass( 'dashicons-visibility' ) .addClass( 'dashicons-hidden' ); $pass1Text.focus(); $pass1Label.attr( 'for', 'pass1-text' ); } function bindToggleButton() { $toggleButton = $pass1Row.find('.wp-hide-pw'); $toggleButton.show().on( 'click', function () { if ( 1 === parseInt( $toggleButton.data( 'toggle' ), 10 ) ) { $pass1Wrap.addClass( 'show-password' ); resetToggle(); if ( ! _.isUndefined( $pass1Text[0].setSelectionRange ) ) { $pass1Text[0].setSelectionRange( 0, 100 ); } } else { $pass1Wrap.removeClass( 'show-password' ); $toggleButton .data( 'toggle', 1 ) .attr({ 'aria-label': userProfileL10n.ariaShow }) .find( '.text' ) .text( userProfileL10n.show ) .end() .find( '.dashicons' ) .removeClass('dashicons-hidden') .addClass('dashicons-visibility'); $pass1.focus(); $pass1Label.attr( 'for', 'pass1' ); if ( ! _.isUndefined( $pass1[0].setSelectionRange ) ) { $pass1[0].setSelectionRange( 0, 100 ); } } }); } function bindPasswordForm() { var $passwordWrapper, $generateButton, $cancelButton; $pass1Row = $('.user-pass1-wrap'); $pass1Label = $pass1Row.find('th label').attr( 'for', 'pass1-text' ); // hide this $('.user-pass2-wrap').hide(); $submitButton = $( '#submit, #wp-submit' ).on( 'click', function () { updateLock = false; }); $submitButtons = $submitButton.add( ' #createusersub' ); $weakRow = $( '.pw-weak' ); $weakCheckbox = $weakRow.find( '.pw-checkbox' ); $weakCheckbox.change( function() { $submitButtons.prop( 'disabled', ! $weakCheckbox.prop( 'checked' ) ); } ); $pass1 = $('#pass1'); if ( $pass1.length ) { bindPass1(); } /** * Fix a LastPass mismatch issue, LastPass only changes pass2. * * This fixes the issue by copying any changes from the hidden * pass2 field to the pass1 field, then running check_pass_strength. */ $pass2 = $( '#pass2' ).on( 'input', function () { if ( $pass2.val().length > 0 ) { $pass1.val( $pass2.val() ); $pass2.val(''); currentPass = ''; $pass1.trigger( 'pwupdate' ); } } ); // Disable hidden inputs to prevent autofill and submission. if ( $pass1.is( ':hidden' ) ) { $pass1.prop( 'disabled', true ); $pass2.prop( 'disabled', true ); $pass1Text.prop( 'disabled', true ); } $passwordWrapper = $pass1Row.find( '.wp-pwd' ); $generateButton = $pass1Row.find( 'button.wp-generate-pw' ); bindToggleButton(); if ( $generateButton.length ) { $passwordWrapper.hide(); } $generateButton.show(); $generateButton.on( 'click', function () { updateLock = true; $generateButton.hide(); $passwordWrapper.show(); // Enable the inputs when showing. $pass1.attr( 'disabled', false ); $pass2.attr( 'disabled', false ); $pass1Text.attr( 'disabled', false ); if ( $pass1Text.val().length === 0 ) { generatePassword(); } _.defer( function() { $pass1Text.focus(); if ( ! _.isUndefined( $pass1Text[0].setSelectionRange ) ) { $pass1Text[0].setSelectionRange( 0, 100 ); } }, 0 ); } ); $cancelButton = $pass1Row.find( 'button.wp-cancel-pw' ); $cancelButton.on( 'click', function () { updateLock = false; // Clear any entered password. $pass1Text.val( '' ); // Generate a new password. wp.ajax.post( 'generate-password' ) .done( function( data ) { $pass1.data( 'pw', data ); } ); $generateButton.show().focus(); $passwordWrapper.hide(); $weakRow.hide( 0, function () { $weakCheckbox.removeProp( 'checked' ); } ); // Disable the inputs when hiding to prevent autofill and submission. $pass1.prop( 'disabled', true ); $pass2.prop( 'disabled', true ); $pass1Text.prop( 'disabled', true ); resetToggle(); if ( $pass1Row.closest( 'form' ).is( '#your-profile' ) ) { // Clear password field to prevent update $pass1.val( '' ).trigger( 'pwupdate' ); $submitButtons.prop( 'disabled', false ); } } ); $pass1Row.closest( 'form' ).on( 'submit', function () { updateLock = false; $pass1.prop( 'disabled', false ); $pass2.prop( 'disabled', false ); $pass2.val( $pass1.val() ); $pass1Wrap.removeClass( 'show-password' ); }); } function check_pass_strength() { var pass1 = $('#pass1').val(), strength; $('#pass-strength-result').removeClass('short bad good strong'); if ( ! pass1 ) { $('#pass-strength-result').html( ' ' ); return; } strength = wp.passwordStrength.meter( pass1, wp.passwordStrength.userInputBlacklist(), pass1 ); switch ( strength ) { case -1: $( '#pass-strength-result' ).addClass( 'bad' ).html( pwsL10n.unknown ); break; case 2: $('#pass-strength-result').addClass('bad').html( pwsL10n.bad ); break; case 3: $('#pass-strength-result').addClass('good').html( pwsL10n.good ); break; case 4: $('#pass-strength-result').addClass('strong').html( pwsL10n.strong ); break; case 5: $('#pass-strength-result').addClass('short').html( pwsL10n.mismatch ); break; default: $('#pass-strength-result').addClass('short').html( pwsL10n['short'] ); } } function showOrHideWeakPasswordCheckbox() { var passStrength = $('#pass-strength-result')[0]; if ( passStrength.className ) { $pass1.add( $pass1Text ).addClass( passStrength.className ); if ( $( passStrength ).is( '.short, .bad' ) ) { if ( ! $weakCheckbox.prop( 'checked' ) ) { $submitButtons.prop( 'disabled', true ); } $weakRow.show(); } else { $submitButtons.prop( 'disabled', false ); $weakRow.hide(); } } } $(document).ready( function() { var $colorpicker, $stylesheet, user_id, current_user_id, select = $( '#display_name' ), current_name = select.val(), greeting = $( '#wp-admin-bar-my-account' ).find( '.display-name' ); $( '#pass1' ).val( '' ).on( 'input' + ' pwupdate', check_pass_strength ); $('#pass-strength-result').show(); $('.color-palette').click( function() { $(this).siblings('input[name="admin_color"]').prop('checked', true); }); if ( select.length ) { $('#first_name, #last_name, #nickname').bind( 'blur.user_profile', function() { var dub = [], inputs = { display_nickname : $('#nickname').val() || '', display_username : $('#user_login').val() || '', display_firstname : $('#first_name').val() || '', display_lastname : $('#last_name').val() || '' }; if ( inputs.display_firstname && inputs.display_lastname ) { inputs.display_firstlast = inputs.display_firstname + ' ' + inputs.display_lastname; inputs.display_lastfirst = inputs.display_lastname + ' ' + inputs.display_firstname; } $.each( $('option', select), function( i, el ){ dub.push( el.value ); }); $.each(inputs, function( id, value ) { if ( ! value ) { return; } var val = value.replace(/<\/?[a-z][^>]*>/gi, ''); if ( inputs[id].length && $.inArray( val, dub ) === -1 ) { dub.push(val); $('