File "about.js"

Full Path: /home/jlklyejr/public_html/wp-content/test/wp-content/plugins/meta-box/inc/about/js/about.js
File size: 557 bytes
MIME-type: text/plain
Charset: utf-8

( function ( $ ) {
	'use strict';

	function tabs() {
		var $container = $( '.nav-tab-wrapper' ),
			$tabs      = $container.find( '.nav-tab' ),
			$panes     = $( '.gt-tab-pane' );

		$container.on(
			'click',
			'.nav-tab',
			function ( e ) {
				e.preventDefault();

				$tabs.removeClass( 'nav-tab-active' );
				$( this ).addClass( 'nav-tab-active' );

				$panes.removeClass( 'gt-is-active' );
				$panes.filter( $( this ).attr( 'href' ) ).addClass( 'gt-is-active' );
			}
		);
	}

	// Auto activate tabs when DOM ready.
	$( tabs );
} ( jQuery ) );