Difference between revisions of "Template:Washington"
Line 275: | Line 275: | ||
<!-- End of CSS --> | <!-- End of CSS --> | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
− | $ | + | $(function() { |
− | function | + | $('a[href*=#]:not([href=#])').click(function() { |
− | + | if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) { | |
− | .replace(/^\//,'') | + | var target = $(this.hash); |
− | + | target = target.length ? target : $('[name=' + this.hash.slice(1) +']'); | |
− | + | if (target.length) { | |
− | + | $('html,body').animate({ | |
− | + | scrollTop: target.offset().top | |
− | + | }, 1000); | |
− | + | return false; | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | var | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
} | } | ||
} | } | ||
}); | }); | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
}); | }); | ||
</script> | </script> | ||
Line 348: | Line 314: | ||
<ul> | <ul> | ||
<li> | <li> | ||
− | <a href="#">Description</a> | + | <a href="https://2015.igem.org/Team:Washington/Auxin#Description">Description</a> |
</li> | </li> | ||
<li> | <li> | ||
− | <a href="#">Experiments</a> | + | <a href="https://2015.igem.org/Team:Washington/Auxin#Experiments">Experiments</a> |
</li> | </li> | ||
<li> | <li> |
Revision as of 03:49, 11 September 2015