+ nav active style

This commit is contained in:
tix 2017-01-12 15:33:58 +08:00
parent 249347bb9a
commit a0f36bfaf7
3 changed files with 15 additions and 0 deletions

View File

@ -17,6 +17,11 @@
showBorder: false,
enableLinks: true
});
$('.navbar-nav li a').each(function () {
if ($(this).attr('href') == '/ei') {
console.log($(this).parent().addClass('active'));
}
});
});
</script>
<%- include('comm/footer.html') %>

View File

@ -17,6 +17,11 @@
showBorder: false,
enableLinks: true
});
$('.navbar-nav li a').each(function () {
if ($(this).attr('href') == '/intro') {
console.log($(this).parent().addClass('active'));
}
});
});
</script>
<%- include('comm/footer.html') %>

View File

@ -19,6 +19,11 @@
showBorder: false,
enableLinks: true
});
$('.navbar-nav li a').each(function () {
if ($(this).attr('href') == '/origin') {
console.log($(this).parent().addClass('active'));
}
});
});
</script>
<%- include('comm/footer.html') %>