Team:Grenoble-EMSE-LSU/Templates/Project
From 2013.igem.org
(Difference between revisions)
Line 39: | Line 39: | ||
</div> | </div> | ||
</div> | </div> | ||
+ | </div> | ||
+ | |||
+ | <!-- Logos à droite --> | ||
+ | <div id="wrap"> | ||
+ | <div id="scroll_right"> | ||
+ | <ul id="right"> | ||
+ | <li><a href="https://2013.igem.org" title="iGEM Main Page" id="igem_logo" target="_blank"><img src="https://static.igem.org/mediawiki/2013/thumb/5/5d/2013Calgary_iGEM_Logo.png/739px-2013Calgary_iGEM_Logo.png" alt="iGEM logo" width="85px" height="69px"></a></li> | ||
+ | <li class="contact"><a id="contact" href="mailto:igem.grenoble.fr@gmail.com">Contact us !</a></li> | ||
+ | </ul> | ||
+ | </div> | ||
</div> | </div> | ||
Line 56: | Line 66: | ||
} else { | } else { | ||
$('#scroll').removeClass('fixed'); | $('#scroll').removeClass('fixed'); | ||
+ | } | ||
+ | }); | ||
+ | }); | ||
+ | |||
+ | </script> | ||
+ | |||
+ | <script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.js"></script> | ||
+ | |||
+ | <script type="text/javascript"> | ||
+ | |||
+ | $(document).ready(function () { | ||
+ | var top = $('#scroll_right').offset().top - parseFloat($('#scroll_right').css('marginTop').replace(/auto/, 0)); | ||
+ | $(window).scroll(function (event) { | ||
+ | var y = $(this).scrollTop(); | ||
+ | if (y >= top) { | ||
+ | $('#scroll_right').addClass('fixed'); | ||
+ | } else { | ||
+ | $('#scroll_right').removeClass('fixed'); | ||
} | } | ||
}); | }); |
Revision as of 14:55, 6 September 2013