summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Kirsch <kirschju@sec.in.tum.de>2014-11-18 22:04:07 +0100
committerJulian Kirsch <kirschju@sec.in.tum.de>2014-11-18 22:04:07 +0100
commitdaa007281d7e0099199e3449a67473d92eaf7a3d (patch)
tree2341949c488b56cc97072dfa5b8dc322dbeb5645
parent29543432248595360421da02be5f40c2f3aa34ad (diff)
downloadwww-daa007281d7e0099199e3449a67473d92eaf7a3d.tar.gz
www-daa007281d7e0099199e3449a67473d92eaf7a3d.tar.bz2
www-daa007281d7e0099199e3449a67473d92eaf7a3d.zip
Make buttons change state again
-rw-r--r--common/navigation.inc38
-rw-r--r--lang.js4
2 files changed, 22 insertions, 20 deletions
diff --git a/common/navigation.inc b/common/navigation.inc
index cbfa3bf..0ef0ae1 100644
--- a/common/navigation.inc
+++ b/common/navigation.inc
@@ -7,25 +7,25 @@
</div>
<div class="masthead">
<ul class="nav nav-justified">
- <li id="m_main"><a href="/main.html">Home</a></li>
- <li lang="en" id="m_citizens"><a href="/citizens">Citizens</a></li>
- <li lang="de" id="m_citizens"><a href="/citizens">B&uuml;rger</a></li>
- <li lang="fr" id="m_citizens"><a href="/citizens">Citoyens</a></li>
- <li lang="en" id="m_merchants"><a href="/merchants">Merchants</a></li>
- <li lang="de" id="m_merchants"><a href="/merchants">H&auml;ndler</a></li>
- <li lang="fr" id="m_merchants"><a href="/merchants">Commer&ccedil;ants</a></li>
- <li lang="en" id="m_governments"><a href="/governments">Governments</a></li>
- <li lang="de" id="m_governments"><a href="/governments">Regierungen</a></li>
- <li lang="fr" id="m_governments"><a href="/governments">Gouvernements</a></li>
- <li lang="en" id="m_developers"><a href="/developers">Developers</a></li>
- <li lang="de" id="m_developers"><a href="/developers">Entwickler</a></li>
- <li lang="fr" id="m_developers"><a href="/developers">Développeurs</a></li>
- <li lang="en" id="m_investors"><a href="/investors">Investors</a></li>
- <li lang="de" id="m_investors"><a href="/investors">Investoren</a></li>
- <li lang="fr" id="m_investors"><a href="/investors">Invéstisseurs</a></li>
- <li lang="en" id="m_about"><a href="/about">About Us</a></li>
- <li lang="de" id="m_about"><a href="/about">&Uuml;ber Uns</a></li>
- <li lang="fr" id="m_about"><a href="/about">À propos</a></li>
+ <li class="m_main"><a href="/main.html">Home</a></li>
+ <li lang="en" class="m_citizens"><a href="/citizens">Citizens</a></li>
+ <li lang="de" class="m_citizens"><a href="/citizens">B&uuml;rger</a></li>
+ <li lang="fr" class="m_citizens"><a href="/citizens">Citoyens</a></li>
+ <li lang="en" class="m_merchants"><a href="/merchants">Merchants</a></li>
+ <li lang="de" class="m_merchants"><a href="/merchants">H&auml;ndler</a></li>
+ <li lang="fr" class="m_merchants"><a href="/merchants">Commer&ccedil;ants</a></li>
+ <li lang="en" class="m_governments"><a href="/governments">Governments</a></li>
+ <li lang="de" class="m_governments"><a href="/governments">Regierungen</a></li>
+ <li lang="fr" class="m_governments"><a href="/governments">Gouvernements</a></li>
+ <li lang="en" class="m_developers"><a href="/developers">Developers</a></li>
+ <li lang="de" class="m_developers"><a href="/developers">Entwickler</a></li>
+ <li lang="fr" class="m_developers"><a href="/developers">Développeurs</a></li>
+ <li lang="en" class="m_investors"><a href="/investors">Investors</a></li>
+ <li lang="de" class="m_investors"><a href="/investors">Investoren</a></li>
+ <li lang="fr" class="m_investors"><a href="/investors">Invéstisseurs</a></li>
+ <li lang="en" class="m_about"><a href="/about">About Us</a></li>
+ <li lang="de" class="m_about"><a href="/about">&Uuml;ber Uns</a></li>
+ <li lang="fr" class="m_about"><a href="/about">À propos</a></li>
</ul>
</div>
diff --git a/lang.js b/lang.js
index e0d287a..a472fd0 100644
--- a/lang.js
+++ b/lang.js
@@ -45,5 +45,7 @@ function loadLang()
function activate_menu()
{
- document.getElementById("m_" + document.URL.replace(/^.*(\\|\/|\:)/, '').split('.')[0]).setAttribute('class', 'active');
+ b = document.getElementsByClass("m_" + document.URL.replace(/^.*(\\|\/|\:)/, '').split('.')[0])
+ for (i = 0; i < b.length(); i++)
+ b.setAttribute('class', 'active');
}