+ mod files

This commit is contained in:
tix 2016-12-25 02:53:44 +08:00
parent dd9618e3fb
commit a6f0b35d04
2 changed files with 23 additions and 0 deletions

View File

@ -16,4 +16,9 @@ body {
.row-grid { .row-grid {
padding-bottom:15px; padding-bottom:15px;
margin-bottom:15px; margin-bottom:15px;
}
.text-cont {
line-height:38px;
text-indent:2em;
} }

18
public/js/mod.js Normal file
View File

@ -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");
// });