Team:Heidelberg/Templates/Footer-DelRest
From 2013.igem.org
(Difference between revisions)
m |
m |
||
Line 12: | Line 12: | ||
setTimeout(function () { $(e).mCustomScrollbar("update"); }, 1000); | setTimeout(function () { $(e).mCustomScrollbar("update"); }, 1000); | ||
}; | }; | ||
- | var | + | var triggerScrollbarUpdate_nav_tabs = function(){ |
$('.nav-tabs a').click(triggerScrollbarUpdate(".scrollContent")) | $('.nav-tabs a').click(triggerScrollbarUpdate(".scrollContent")) | ||
}; | }; | ||
Line 31: | Line 31: | ||
}); | }); | ||
$("#myCarousel").on("slide.bs.carousel", triggerScrollbarUpdate(".carousel-caption:visible");}); | $("#myCarousel").on("slide.bs.carousel", triggerScrollbarUpdate(".carousel-caption:visible");}); | ||
- | + | triggerScrollbarUpdate_nav_tabs(); | |
})(jQuery); | })(jQuery); | ||
</script> | </script> | ||
Line 90: | Line 90: | ||
$('.labjournal-weekly:visible').hide(); | $('.labjournal-weekly:visible').hide(); | ||
$($('.labjournal-weekly')[0]).show(); | $($('.labjournal-weekly')[0]).show(); | ||
- | + | triggerScrollbarUpdate_nav_tabs(); | |
}); | }); | ||
Line 97: | Line 97: | ||
$('.labjournal-weekly:visible').hide(); | $('.labjournal-weekly:visible').hide(); | ||
$($('.labjournal-weekly')[5]).show(); | $($('.labjournal-weekly')[5]).show(); | ||
- | + | triggerScrollbarUpdate_nav_tabs(); | |
}); | }); | ||
Revision as of 16:49, 1 October 2013