update v1.0.5.1

This commit is contained in:
sujitprasad
2016-01-27 19:46:55 +05:30
parent 366acf316e
commit b1d1ebbbef
699 changed files with 148371 additions and 1404 deletions

View File

@@ -0,0 +1,26 @@
$(function () {
$('.tabs a, .tabs button').click(function(e) {
e.preventDefault(); // Prevent default link behavior.
var tabID = $(this).attr('data-target'); // Pull the data-target value as the tabID.
$(this).addClass('active').parent().addClass('active'); // Add the .active class to the link and it's parent li (if one exists).
$(this).siblings().removeClass('active'); // Remove the .active class from sibling tab navigation elements.
$(this).parent('li').siblings().removeClass('active').children().removeClass('active'); // Remove the .active class from sibling li elements and their links.
$(tabID).addClass('active'); // Add the .active class to the div with the tab content.
$(tabID).siblings().removeClass('active'); // Remove the .active class from other tab content divs.
});
});
(function($) {
$(function () {
$('body').addClass('js'); // On page load, add the .js class to the <body> element.
});
})(jQuery);