m (work on active-display) |
m (work on active-display) |
||
Line 72: | Line 72: | ||
} | } | ||
$("#test").html($url.length); | $("#test").html($url.length); | ||
− | if ($url.length == | + | if ($url.length == 4) { |
$("#home").addClass("navbar active"); | $("#home").addClass("navbar active"); | ||
− | } else if ($url.length == | + | } else if ($url.length == 5) { |
− | $str = $url[ | + | $str = $url[5].toLowerCase(); |
$strD = dict1[$str]; | $strD = dict1[$str]; | ||
$("#" + $strD).addClass("navbar active"); | $("#" + $strD).addClass("navbar active"); |
Revision as of 15:30, 27 August 2017