gonito/static/js/extra.js

10 lines
302 B
JavaScript

$(document).ready(function () {
var url = window.location;
$('.navbar-top').find('.active').removeClass('active');
$('.navbar-top li a').each(function () {
if (this.href == url) {
$(this).parent().addClass('active');
}
});
});