+ mod files
This commit is contained in:
parent
dd9618e3fb
commit
a6f0b35d04
|
@ -17,3 +17,8 @@ body {
|
|||
padding-bottom:15px;
|
||||
margin-bottom:15px;
|
||||
}
|
||||
|
||||
.text-cont {
|
||||
line-height:38px;
|
||||
text-indent:2em;
|
||||
}
|
|
@ -0,0 +1,18 @@
|
|||
$('.navbar-nav li a').each(function () {
|
||||
if ($($(this))[0].href == String(window.location)) {
|
||||
$(this).parent().addClass('active');
|
||||
}
|
||||
else if (window.location.pathname == '/') {
|
||||
$('.navbar-nav li').first().addClass('active');
|
||||
}
|
||||
else {
|
||||
$('.navbar-nav li').first().removeClass('active');
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
|
||||
// $(document).on('click', '.navbar-nav li', function () {
|
||||
// $(".nav-list li").removeClass("active");
|
||||
// $(this).addClass("active");
|
||||
// });
|
Loading…
Reference in New Issue