Team:Heidelberg/Templates/Footer
From 2013.igem.org
(Difference between revisions)
Nils.kurzawa (Talk | contribs) |
Nils.kurzawa (Talk | contribs) m |
||
(3 intermediate revisions not shown) | |||
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 | ||
+ | $($('.month_tab').slice(3)).hide(); | ||
$('#forwards').click(function(e) { | $('#forwards').click(function(e) { | ||
var visible = $('.month_tab:visible'); | var visible = $('.month_tab:visible'); | ||
Line 22: | Line 19: | ||
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 29: | Line 26: | ||
prev.show(); | prev.show(); | ||
} | } | ||
+ | e.preventDefault(); | ||
+ | }); | ||
+ | |||
+ | $('#myCarousel').carousel({interval: 0}); | ||
+ | $('div').scrollspy({ target: '#navbarExample' }); | ||
+ | |||
+ | |||
+ | //Month-week dependecy | ||
+ | $('#may').click(function(e) { | ||
+ | $('.item.active').removeClass('active') | ||
+ | $('.active.month_tab').removeClass('active') | ||
+ | $('#may_weeks').addClass('active') | ||
+ | $('#may').addClass('active') | ||
+ | e.preventDefault(); | ||
+ | }); | ||
+ | |||
+ | $('#june').click(function(e) { | ||
+ | $('.item.active').removeClass('active') | ||
+ | $('.active.month_tab').removeClass('active') | ||
+ | $('#june_weeks').addClass('active') | ||
+ | $('#june').addClass('active') | ||
e.preventDefault(); | e.preventDefault(); | ||
}); | }); |
Latest revision as of 09:36, 24 September 2013