File: /var/www/html/ielts-store/wp-content/themes/oceanwp/assets/js/third/woo/devs/wooAccountLinks.js
var $j = jQuery.noConflict();
$j( document ).ready( function() {
"use strict";
// Woo account Login/Register links
oceanwpWooAccountLinks();
} );
/* ==============================================
WOOCOMMERCE ACCOUNT LOGIN/REGISTER LINKS
============================================== */
function oceanwpWooAccountLinks() {
"use strict"
// Return if registration disabled
if ( $j( '.owp-account-links' ).hasClass( 'registration-disabled' ) ) {
return;
}
// Vars
var $login = $j( '.owp-account-links .login a' ),
$register = $j( '.owp-account-links .register a' ),
$col_1 = $j( '#customer_login .col-1' ),
$col_2 = $j( '#customer_login .col-2' );
// Display login form
$login.on( 'click', function() {
$j( this ).addClass( 'current' );
$register.removeClass( 'current' );
$col_1.siblings().stop().fadeOut( function() {
$col_1.fadeIn();
} );
return false;
} );
// Display register form
$register.on( 'click', function() {
$j( this ).addClass( 'current' );
$login.removeClass( 'current' );
$col_2.siblings().stop().fadeOut( function() {
$col_2.fadeIn();
} );
return false;
} );
}