You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
832 B
33 lines
832 B
(function($) {
|
|
|
|
$(document).on( 'click', '.nav-tab-wrapper a', function() {
|
|
$('section').hide();
|
|
$('section').eq($(this).index()).show();
|
|
|
|
|
|
//alert($('section'));
|
|
if($(this).attr('className') == 'nav-tab-active') {
|
|
// $(this).removeClass('nav-tab-active');
|
|
// $(this).addClass('nav-tab-active');
|
|
}else{
|
|
// $(this).addClass('nav-tab-active');
|
|
// $(this).removeClass('nav-tab-active');
|
|
}
|
|
// $(this).addClass('nav-tab-active');
|
|
// $(this).eq($(this).index()).removeClass('nav-tab-active');
|
|
//$(this).removeClass('nav-tab-active');
|
|
return false;
|
|
})
|
|
|
|
$("a.nav-tab").click(function() {
|
|
|
|
$("a.nav-tab").removeClass('nav-tab-active');
|
|
$(this).addClass('nav-tab-active');
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
})( jQuery );
|