PageSourceSearch

https://24classics.com/wp-content/plugins/memberpress/js/login.js?ver=1.11.35

js 24classics.com collected 2026-10-06 12:53:54 UTC 1,242 bytes, 43 lines download raw bytes

1(function($) {
2  __ = wp.i18n.__;
3
4  function mpResetToggle( $button, show ) {
5    $button
6      .attr({
7        'aria-label': show ? __( 'Show password' ) : __( 'Hide password' )
8      })
9      .find( '.text' )
10        .text( show ? __( 'Show' ) : __( 'Hide' ) )
11      .end()
12      .find( '.dashicons' )
13        .removeClass( show ? 'dashicons-hidden' : 'dashicons-visibility' )
14        .addClass( show ? 'dashicons-visibility' : 'dashicons-hidden' );
15  }
16
17  $(document).ready( function() {
18    $('body').on('click', 'button.mp-hide-pw', function () {
19      var $button = $(this),
20        $pass = $button.prev();
21
22      if ( 'password' === $pass.attr( 'type' ) ) {
23        $pass.attr( 'type', 'text' );
24        mpResetToggle( $button, false );
25      } else {
26        $pass.attr( 'type', 'password' );
27        mpResetToggle( $button, true );
28      }
29    });
30
31    // Pro Template
32    if( $('#mepro-login-hero').length ){
33      if( $('#mepr_loginform').length ){
34        $("#user_login, #user_pass").on("input", function(){
35          if ( $('#user_login').val().length > 0 && $('#user_pass').val().length > 0) {
36            $('#wp-submit').removeClass('disabled');
37          }
38        })
39      }
40    }
41    // End Pro Template
42  });
43})(jQuery);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.