Team:ETH Zurich/Templates/HeaderNew
From 2011.igem.org
(Difference between revisions)
Line 9: | Line 9: | ||
{ | { | ||
$(function() | $(function() | ||
- | + | { | |
var docLink = document.URL; | var docLink = document.URL; | ||
if (document.URL.indexOf("?") != -1) | if (document.URL.indexOf("?") != -1) | ||
Line 35: | Line 35: | ||
a.href = document.URL; | a.href = document.URL; | ||
var docPath = a.pathname + a.search; | var docPath = a.pathname + a.search; | ||
- | + | $('#loginLink').attr('href', 'https://2011.igem.org/wiki/index.php?title=Special:UserLogin&returnto=' + encodeURIComponent(docPath)); | |
- | $('#loginLink').attr('href', 'https://2011.igem.org/wiki/index.php?title=Special:UserLogin&returnto=' + encodeURIComponent(docPath)); | + | |
} | } | ||
+ | |||
}); | }); | ||
}); | }); |
Revision as of 21:17, 15 October 2011
![Menu image preload](/wiki/images/e/e2/ETHZ-bg-overview.png)
![Menu image preload](/wiki/images/0/03/ETHZ-bg-biology.png)
![Menu image preload](/wiki/images/a/ac/ETHZ-bg-process.png)
![Menu image preload](/wiki/images/b/b8/ETHZ-bg-modeling.png)
![Menu image preload](/wiki/images/3/3d/ETHZ-bg-achievements.png)
![Menu image preload](/wiki/images/e/ed/ETHZ-bg-team.png)