Fixed .active hacks in header

This commit is contained in:
Standa Lukeš 2020-10-18 08:39:25 +00:00
parent 8403dc832b
commit 36bd4e4344

View file

@ -40,6 +40,8 @@ namespace Ksp.WebServer
encyklopedie.SetAttribute("href", "/grafik");
if ("grafik" == path)
{
foreach (var li in document.QuerySelectorAll("#menu ul li.active"))
li.ClassList.Remove("active");
encyklopedie.ParentElement.ClassList.Add("active");
}
}