9 lines
194 B
JavaScript
9 lines
194 B
JavaScript
|
$(function () {
|
||
|
$('.scrollspy').scrollSpy({
|
||
|
getActiveElement:
|
||
|
function (id) {
|
||
|
$('.navitem').removeClass('active');
|
||
|
$('#nav-' + id).addClass('active')
|
||
|
}
|
||
|
});
|
||
|
})
|