HEX
Server: Apache
System: Linux webm005.cluster114.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: epubdjye (129326)
PHP: 8.5.7
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/e/p/u/epubdjye/www17/wp-content/themes/oceanwp/assets/js/third/woo/devs/wooAccountLinks.js
var $j = jQuery.noConflict();

$j( document ).on( '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;
	} );

}