Team:Heidelberg/Templates/Footer
From 2013.igem.org
(Difference between revisions)
Nils.kurzawa (Talk | contribs) |
Nils.kurzawa (Talk | contribs) m |
||
Line 7: | Line 7: | ||
<script src="https://2013.igem.org/Team:Heidelberg/Templates/jqueryjs?action=raw&ctype=text/javascript"></script> | <script src="https://2013.igem.org/Team:Heidelberg/Templates/jqueryjs?action=raw&ctype=text/javascript"></script> | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
- | + | //script for hiding/showing only 3 months | |
- | + | ||
- | + | ||
- | + | ||
$($('.month_tab').slice(3)).hide(); | $($('.month_tab').slice(3)).hide(); | ||
- | + | $('#forwards').click(function(e) { | |
- | + | ||
var visible = $('.month_tab:visible'); | var visible = $('.month_tab:visible'); | ||
var next = $(visible[visible.length - 1]).next('.month_tab'); | var next = $(visible[visible.length - 1]).next('.month_tab'); | ||
Line 22: | Line 18: | ||
e.preventDefault(); | e.preventDefault(); | ||
}); | }); | ||
- | + | $('#backwards').click(function(e) { | |
var visible = $('.month_tab:visible'); | var visible = $('.month_tab:visible'); | ||
var prev = $(visible[0]).prev('.month_tab'); | var prev = $(visible[0]).prev('.month_tab'); | ||
Line 31: | Line 27: | ||
e.preventDefault(); | e.preventDefault(); | ||
}); | }); | ||
+ | |||
+ | $(function() { | ||
+ | $('#myCarousel').carousel({interval: 0}); | ||
+ | $('div').scrollspy({ target: '#navbarExample' }); | ||
}); | }); | ||
</script> | </script> | ||
</html> | </html> |
Revision as of 12:52, 23 September 2013