summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authortg(x) <*@tg-x.net>2017-01-19 23:45:29 +0100
committertg(x) <*@tg-x.net>2017-01-19 23:45:29 +0100
commit592850e144e38520fb166ee490c25b0283257d16 (patch)
tree7b4fa37953885be38a117ab31ebdfb95badffcbb /common
parent5512942ea77aa8a474a0163f8ef3097d678f8675 (diff)
downloadwww-592850e144e38520fb166ee490c25b0283257d16.tar.gz
www-592850e144e38520fb166ee490c25b0283257d16.tar.bz2
www-592850e144e38520fb166ee490c25b0283257d16.zip
i18n: fix js, lang switcher
Diffstat (limited to 'common')
-rw-r--r--common/header.inc.j21
-rw-r--r--common/navigation.inc.j210
2 files changed, 6 insertions, 5 deletions
diff --git a/common/header.inc.j2 b/common/header.inc.j2
index 4115aafa..b71482d9 100644
--- a/common/header.inc.j2
+++ b/common/header.inc.j2
@@ -35,6 +35,7 @@
<link href="/justified-nav.css" rel="stylesheet">
<link href="/styles.css" rel="stylesheet">
+ <script src="/menu.js"></script>
<script src="/dist/js/jquery-1.11.1.min.js"></script>
<script src="/dist/js/bootstrap.min.js"></script>
diff --git a/common/navigation.inc.j2 b/common/navigation.inc.j2
index 7b421464..90c328a5 100644
--- a/common/navigation.inc.j2
+++ b/common/navigation.inc.j2
@@ -22,10 +22,10 @@
</div>
<div class="navbar navbar-default navbar-fixed-bottom" role="navigation">
<div class="container lang-slector">
- <a href="/en/"><img src="/images/gb.png" height="15" width="23" alt="English"></a>
- <a href="/de/"><img src="/images/de.png" height="15" width="25" alt="Deutsch"></a>
- <a href="/fr/"><img src="/images/fr.png" height="15" width="22" alt="Français"></a>
- <a href="/it/"><img src="/images/it.png" height="15" width="22" alt="Italiano"></a>
- <a href="/es/"><img src="/images/es.png" height="15" width="23" alt="Español"></a>
+ <a href="#" onclick="location.pathname=location.pathname.replace(/^.../, '/en')"><img src="/images/gb.png" height="15" width="23" alt="English"></a>
+ <a href="#" onclick="location.pathname=location.pathname.replace(/^.../, '/de')"><img src="/images/de.png" height="15" width="25" alt="Deutsch"></a>
+ <a href="#" onclick="location.pathname=location.pathname.replace(/^.../, '/fr')"><img src="/images/fr.png" height="15" width="22" alt="Français"></a>
+ <a href="#" onclick="location.pathname=location.pathname.replace(/^.../, '/it')"><img src="/images/it.png" height="15" width="22" alt="Italiano"></a>
+ <a href="#" onclick="location.pathname=location.pathname.replace(/^.../, '/es')"><img src="/images/es.png" height="15" width="23" alt="Español"></a>
</div>
</div>