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