Difference between revisions of "Template:Team:Bielefeld-CeBiTec/JS"

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 == 2) {
+
if ($url.length == 4) {
 
$("#home").addClass("navbar active");
 
$("#home").addClass("navbar active");
} else if ($url.length == 3) {
+
} else if ($url.length == 5) {
$str = $url[2].toLowerCase();
+
$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