Team:Heidelberg/Templates/Footer-DelRest
From 2013.igem.org
(Difference between revisions)
Nils.kurzawa (Talk | contribs) m |
m |
||
Line 7: | Line 7: | ||
<script src="https://2013.igem.org/Team:Heidelberg/Templates/jquery-scrollbar2?action=raw&ctype=text/javascript"></script> | <script src="https://2013.igem.org/Team:Heidelberg/Templates/jquery-scrollbar2?action=raw&ctype=text/javascript"></script> | ||
<script src="https://2013.igem.org/Team:Heidelberg/Templates/carousel-special-js?action=raw&ctype=text/javascript"></script> | <script src="https://2013.igem.org/Team:Heidelberg/Templates/carousel-special-js?action=raw&ctype=text/javascript"></script> | ||
+ | <!-- lets have a nicer scrollbar --> | ||
+ | <script> | ||
+ | var triggerScrollbarUpdate = function(e){ | ||
+ | setTimeout(function () { $(e).mCustomScrollbar("update"); }, 1000); | ||
+ | }; | ||
+ | var triggerScrollbarUpdate_nav-tabs = function(){ | ||
+ | $('.nav-tabs a').click(triggerScrollbarUpdate(".scrollContent")) | ||
+ | }; | ||
+ | (function($){ | ||
+ | $(function(){ | ||
+ | $(".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", triggerScrollbarUpdate(".carousel-caption:visible");}); | ||
+ | triggerScrollbarUpdate_nav-tabs(); | ||
+ | })(jQuery); | ||
+ | </script> | ||
+ | |||
<script type="text/javascript"> | <script type="text/javascript"> | ||
$(function() { | $(function() { | ||
Line 62: | Line 90: | ||
$('.labjournal-weekly:visible').hide(); | $('.labjournal-weekly:visible').hide(); | ||
$($('.labjournal-weekly')[0]).show(); | $($('.labjournal-weekly')[0]).show(); | ||
+ | triggerScrollbarUpdate_nav-tabs(); | ||
}); | }); | ||
Line 68: | Line 97: | ||
$('.labjournal-weekly:visible').hide(); | $('.labjournal-weekly:visible').hide(); | ||
$($('.labjournal-weekly')[5]).show(); | $($('.labjournal-weekly')[5]).show(); | ||
+ | triggerScrollbarUpdate_nav-tabs(); | ||
}); | }); | ||
Line 73: | Line 103: | ||
<!--<script src="bootstrap-3.0.0/assets/js/jquery.js"></script>--> | <!--<script src="bootstrap-3.0.0/assets/js/jquery.js"></script>--> | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
</html> | </html> |
Revision as of 16:47, 1 October 2013