Team:Heidelberg/Templates/Footer-DelRest
From 2013.igem.org
(Difference between revisions)
m |
m |
||
Line 11: | Line 11: | ||
Scrollbar = function(){ | Scrollbar = function(){ | ||
var sb = this; | var sb = this; | ||
- | + | $(".carousel-caption").mCustomScrollbar({ | |
- | + | autoHideScrollbar:true, | |
- | + | theme:"dark-thin" | |
- | + | }); | |
- | + | $(".scrollContent").mCustomScrollbar({ | |
- | + | autoHideScrollbar:true, | |
- | + | theme:"dark-thin" | |
- | + | }); | |
- | + | $("#methods").mCustomScrollbar({ | |
- | + | autoHideScrollbar:true, | |
- | + | theme:"dark-thin" | |
- | + | }); | |
- | + | $("#myCarousel").on("slide.bs.carousel", function(){sb.triggerScrollbarUpdate(".carousel-caption:visible");}); | |
- | + | ||
- | + | ||
- | + | ||
sb.triggerScrollbarUpdate_nav_tabs(); | sb.triggerScrollbarUpdate_nav_tabs(); | ||
- | |||
}; | }; | ||
Scrollbar.prototype.triggerScrollbarUpdate = function(e){ | Scrollbar.prototype.triggerScrollbarUpdate = function(e){ | ||
Line 34: | Line 30: | ||
}; | }; | ||
Scrollbar.prototype.triggerScrollbarUpdate_nav_tabs = function(){ | Scrollbar.prototype.triggerScrollbarUpdate_nav_tabs = function(){ | ||
- | $('.nav-tabs a').click(triggerScrollbarUpdate(".scrollContent")) | + | $('.nav-tabs a').click(function(){triggerScrollbarUpdate(".scrollContent");}) |
}; | }; | ||
(function(){ | (function(){ |
Revision as of 17:03, 1 October 2013