PHP 8.2.31
Preview: placeholder-labels.js Size: 1.10 KB
/home/nshryvcy/taramarriagebureau.com/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() );
    }
}

Directory Contents

Dirs: 1 × Files: 11

Name Size Perms Modified Actions
select2 DIR
- drwxr-xr-x 2025-04-30 03:15:47
Edit Download
1.48 KB lrw-r--r-- 2025-04-30 03:15:47
Edit Download
7.16 KB lrw-r--r-- 2025-04-30 03:15:47
Edit Download
42.82 KB lrw-r--r-- 2025-04-30 03:15:47
Edit Download
7.30 KB lrw-r--r-- 2025-04-30 03:15:47
Edit Download
574 B lrw-r--r-- 2025-04-30 03:15:47
Edit Download
34.66 KB lrw-r--r-- 2025-04-30 03:15:47
Edit Download
1.10 KB lrw-r--r-- 2025-04-30 03:15:46
Edit Download
928 B lrw-r--r-- 2025-04-30 03:15:47
Edit Download
1012 B lrw-r--r-- 2025-04-30 03:15:47
Edit Download
122 B lrw-r--r-- 2025-04-30 03:15:47
Edit Download
5.04 KB lrw-r--r-- 2025-04-30 03:15:46
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).