summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Kirsch <kirschju@sec.in.tum.de>2014-11-18 19:15:32 +0100
committerJulian Kirsch <kirschju@sec.in.tum.de>2014-11-18 19:15:32 +0100
commit2623745ab8c143a85e4244164604c3a3edb14367 (patch)
tree4dceaedb64e9f4e2cd1cb99327576d81360e3238
parentd4d680906f17ac02239578fc4ed94e8c06354639 (diff)
downloadwww-2623745ab8c143a85e4244164604c3a3edb14367.tar.gz
www-2623745ab8c143a85e4244164604c3a3edb14367.tar.bz2
www-2623745ab8c143a85e4244164604c3a3edb14367.zip
Add switching button function
-rw-r--r--lang.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/lang.js b/lang.js
index 51db1b2..a66a2f1 100644
--- a/lang.js
+++ b/lang.js
@@ -38,3 +38,8 @@ function loadLang()
if (l == 'null') l = get_default_lang();
setLang(l);
}
+
+function activate_menu()
+{
+ document.getElementById("m_" + document.URL.replace(/^.*(\\|\/|\:)/, '').split('.')[0]).createAttribute('class', 'active');
+}