Template:Team:Cambridge/CAM 2012 TEMPLATE HEAD PROJECT
From 2012.igem.org
(Difference between revisions)
Pdmallaband (Talk | contribs) |
Pdmallaband (Talk | contribs) |
||
Line 94: | Line 94: | ||
$(document).ready(function() { | $(document).ready(function() { | ||
- | |||
- | |||
- | + | ||
- | + | ||
var top = $('#cam_top_logos').offset().top - parseFloat($('#cam_top_logos').css('marginTop').replace(/auto/, 0)); | var top = $('#cam_top_logos').offset().top - parseFloat($('#cam_top_logos').css('marginTop').replace(/auto/, 0)); | ||
$(window).scroll(function (event) { | $(window).scroll(function (event) { | ||
Line 131: | Line 128: | ||
$('#cam_nav_project_headover').fadeIn(200); | $('#cam_nav_project_headover').fadeIn(200); | ||
}); | }); | ||
+ | |||
+ | if(this.hash.substring(1) == "Luciferase_and_instrumentation" ) { | ||
+ | window.scrollTo(0,500); | ||
+ | } | ||
}); | }); | ||
Revision as of 14:33, 26 September 2012