AnonSec Shell
Server IP : 172.67.157.199  /  Your IP : 18.217.210.224   [ Reverse IP ]
Web Server : Apache
System : Linux b70eb322-3aee-0c53-7c82-0db91281f2c6.secureserver.net 6.1.90-1.el9.elrepo.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 2 12:09:22 EDT 2024 x86_64
User : root ( 0)
PHP Version : 8.0.30.2
Disable Function : NONE
Domains : 0 Domains
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/wp-content/plugins/profile-builder/assets/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /var/www/wp-content/plugins/profile-builder/assets/js/placeholder-labels.js
/*
 * Function that adds placeholders to Login Forms and Widget fields
 *
 * @since v.2.1
 *
 */
jQuery( document ).ready( function() {

    // add placeholder to Login Form Fields
    loginFieldPlaceholder();

    // add placeholder to the 2FA Field
    loginAuthPlaceholder();

});

/**
 * Add Placeholder for Login Form Fields
 *
 */
function loginFieldPlaceholder () {
    jQuery(".login-username input, .login-password input").each( function ( index, elem ) {
        var element_id = jQuery( elem ).attr( 'id' );
        if( element_id && ( label = jQuery( elem ).parents( '#wppb-login-wrap' ).find( 'label[for=' + element_id + ']' ) ).length === 1 ) {
            jQuery( elem ).attr( 'placeholder', jQuery( label ).text() );
        }
    });
}

/**
 * Add Placeholder for 2FA Field on Login Form
 *
 */
function loginAuthPlaceholder () {
    let element = jQuery( ".login-auth input" ),
        element_id = element.attr( 'id' ),
        label =  jQuery( 'label[for=' + element_id + ']' );

    if( element_id && label.length === 1 ) {
        jQuery( '#' + element_id ).attr( 'placeholder', label.text() );
    }
}

Anon7 - 2022
AnonSec Team