X-Git-Url: https://git-public.kairo.at/?p=tricorder.git;a=blobdiff_plain;f=js%2Ftricorder.js;h=093f5171a79851e73569993fd587ad7b85ff8d81;hp=2debeec9964f1d1d2c0acd9cab1a0f9895f8b33b;hb=1b0ec1c4bdcbf99873caf5ebe7035d13a8b2d6fc;hpb=0add6b1830e6cea1f67ecf57f5737cdfbb25d5b7 diff --git a/js/tricorder.js b/js/tricorder.js index 2debeec..093f517 100644 --- a/js/tricorder.js +++ b/js/tricorder.js @@ -74,8 +74,11 @@ function switchModule(modname) { navs[i].classList.remove("active"); } - document.getElementById("nav" + modname).classList.add("active"); + var navItem = document.getElementById("nav" + modname); + navItem.classList.add("active"); document.getElementById("sect" + modname).classList.add("active"); + document.getElementById("mainHeader").textContent = + (modname == "Other") ? "Web Tricorder" : navItem.textContent; window["gMod" + modname].activate(); }