|
@@ -321,13 +321,11 @@ function makeFloorList(options) {
|
|
|
|
|
|
function activeNavbar(selector) {
|
|
|
var pathname = window.location.pathname.replace(/(-\d+){0,}(.html$)/g, '') + '.html';
|
|
|
- console.log(pathname);
|
|
|
selector = $(selector);
|
|
|
selector.each(function(index, el){
|
|
|
$(el).removeClass('active');
|
|
|
if($(el).find('a').length > 0){
|
|
|
var href = $(el).find('a').attr('href');
|
|
|
- console.log(href);
|
|
|
if(pathname.endsWith(href)){
|
|
|
$(el).addClass('active');
|
|
|
}
|