Team:TU-Eindhoven/Templates/header
From 2012.igem.org
(Difference between revisions)
Nickveeken (Talk | contribs) |
|||
(16 intermediate revisions not shown) | |||
Line 1: | Line 1: | ||
- | __NOTOC__<html | + | __NOTOC__<html> |
</p> | </p> | ||
Line 11: | Line 11: | ||
background-repeat:repeat-y | background-repeat:repeat-y | ||
} | } | ||
- | |||
- | |||
- | |||
</style> | </style> | ||
Line 53: | Line 50: | ||
}); | }); | ||
</script> | </script> | ||
- | <script type="text/javascript" src="/Team:TU-Eindhoven/lightbox/js?action=raw"></script> | + | <script type="text/javascript" src="/Team:TU-Eindhoven/lightbox/js?action=raw&ctype=text/javascript"></script> |
<link href='http://fonts.googleapis.com/css?family=Vollkorn:regular,bold&subset=latin' rel='stylesheet' type='text/css'> | <link href='http://fonts.googleapis.com/css?family=Vollkorn:regular,bold&subset=latin' rel='stylesheet' type='text/css'> | ||
Line 169: | Line 166: | ||
}); | }); | ||
$('a.image').lightBox(); | $('a.image').lightBox(); | ||
+ | |||
+ | var top = $('#accmenu').offset().top - parseFloat($('#accmenu').css('margin-top').replace(/auto/, 0)); | ||
+ | |||
+ | $(window).scroll(function () { | ||
+ | // what the y position of the scroll is | ||
+ | var y = $(window).scrollTop(); | ||
+ | |||
+ | // whether that's below the form | ||
+ | if(y >= top) { | ||
+ | // if so, add the fixed class | ||
+ | $('#accmenu').addClass('fixed'); | ||
+ | } else { | ||
+ | // otherwise, remove it | ||
+ | $('#accmenu').removeClass('fixed'); | ||
+ | } | ||
+ | }); | ||
+ | |||
}); | }); | ||
</script> | </script> | ||
Line 183: | Line 197: | ||
<!-- start header --> | <!-- start header --> | ||
- | + | <div id="header" class="clickableDiv"> | |
- | + | <a href="https://2012.igem.org/Team:TU-Eindhoven"> </a> | |
- | + | </div> | |
- | + | <script type="text/javascript"> | |
+ | $(".clickableDiv").click(function(){ | ||
+ | window.location=$(this).find("a").attr("href"); | ||
+ | return false; | ||
+ | }); | ||
+ | </script> | ||
<!-- end header --> | <!-- end header --> | ||
Line 192: | Line 211: | ||
<div id="left"> | <div id="left"> | ||
</html> | </html> | ||
- | {{:Team:TU-Eindhoven | + | {{:Team:TU-Eindhoven/menu}} |
- | }} | + | |
<html> | <html> | ||
</div> | </div> | ||
Line 200: | Line 218: | ||
<!-- begin right column --> | <!-- begin right column --> | ||
<div id="right"> | <div id="right"> | ||
+ | </html> |
Latest revision as of 10:42, 25 September 2012