Team:ETH Zurich/Templates/HeaderNew

From 2011.igem.org

(Difference between revisions)
Line 6: Line 6:
<link rel="stylesheet" href="https://2011.igem.org/Team:ETH_Zurich/Templates/StyleSheetNew?action=raw&amp;ctype=text/css" type="text/css" />
<link rel="stylesheet" href="https://2011.igem.org/Team:ETH_Zurich/Templates/StyleSheetNew?action=raw&amp;ctype=text/css" type="text/css" />
<script type="text/javascript">
<script type="text/javascript">
 +
/* Mediawiki Links: Incorporate into our design on our own terms! */
$(document).ready( function()
$(document).ready( function()
{
{
     $(function()
     $(function()
     {
     {
-
var a = document.createElement('a');
 
-
a.href = document.URL;
 
-
        var docPath = a.pathname + a.search;
 
-
 
if ($('#pt-logout').length)  
if ($('#pt-logout').length)  
{
{
Line 25: Line 22:
else
else
{
{
-
$('#loginLink').get(0).href = 'https://2011.igem.org/wiki/index.php?title=Special:UserLogin&returnto=' + encodeURIComponent(docPath);
+
$('#loginLink').attr('href', $('#pt-login a').get(0).href);
}
}
     });
     });
});
});
-
 
</script>
</script>

Revision as of 12:23, 17 October 2011

Menu image preload Menu image preload Menu image preload Menu image preload Menu image preload Menu image preload