1(function ($) { 2 3 var aiMaxAuthValidation = { 4 5 init : function() { 6 jQuery( 'body' ).delegate( '.aimax-pro-login-link', 'click', function(e){ 7 8 jQuery.ajax({ 9 type: "POST", 10 url: aimax_urls.ajaxurl, 11 data: 12 { 13 action: 'aimax_pro_show_login_form_popup', 14 }, 15 success: function (response) { 16 17 jQuery('body').find('.aimax-pro-login-form-container').remove(); 18 jQuery('body').find('.aimax-pro-login-form-overlay').remove(); 19 jQuery('body').append(response); 20 21 jQuery('#user_login').focus(); 22 23 aiMaxAuthValidation.addPlaceholder(); 24 25 } 26 }); 27 28 e.preventDefault(); 29 30 }); 31 32 jQuery( 'body' ).delegate( '.aimax-pro-login-form-overlay', 'click', function(e){ 33 34 jQuery('body').find('.aimax-pro-login-form-container').fadeOut(); 35 jQuery('body').find('.aimax-pro-login-form-overlay').fadeOut(); 36 37 e.preventDefault; 38 39 }); 40 41 }, 42 43 addPlaceholder : function() { 44 45 // Login Form Scripts 46 $('#loginform input[type="text"]').attr('placeholder', 'Username'); 47 $('#loginform input[type="password"]').attr('placeholder', 'Password'); 48 49 $('#loginform label[for="user_login"]').contents().filter(function() { 50 return this.nodeType === 3; 51 }).remove(); 52 $('#loginform label[for="user_pass"]').contents().filter(function() { 53 return this.nodeType === 3; 54 }).remove(); 55 56 $('input[type="checkbox"]').click(function() { 57 $(this+':checked').parent('label').css("background-position","0px -20px"); 58 $(this).not(':checked').parent('label').css("background-position","0px 0px"); 59 }); 60 } 61 62 } 63 64 "use strict"; 65 $(document).ready(function () { 66 aiMaxAuthValidation.init(); 67 68 // Custom register page 69 if( ($('#signup-content').length) || ($('#signup-content').length) > 1 ) { 70 $('body').addClass('wdt-custom-auth-form'); 71 $('.wrapper').addClass('wdt-custom-auth-form'); 72 } 73 }); 74 75})(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.