Team:Heidelberg/Templates/Footer-DelH

From 2013.igem.org

(Difference between revisions)
m
 
(4 intermediate revisions not shown)
Line 4: Line 4:
<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-js2?action=raw&ctype=text/javascript"></script>
<script src="https://2013.igem.org/Team:Heidelberg/Templates/carousel-special-js2?action=raw&ctype=text/javascript"></script>
 +
<script type="text/javascript">
<script type="text/javascript">
                 $(function() {
                 $(function() {
Line 59: Line 60:
   $('.labjournal-weekly:visible').hide();
   $('.labjournal-weekly:visible').hide();
   $($('.labjournal-weekly')[0]).show();
   $($('.labjournal-weekly')[0]).show();
 +
  scrollbar.triggerScrollbarUpdate_nav_tabs();
});
});
Line 65: Line 67:
   $('.labjournal-weekly:visible').hide();
   $('.labjournal-weekly:visible').hide();
   $($('.labjournal-weekly')[5]).show();
   $($('.labjournal-weekly')[5]).show();
 +
  scrollbar.triggerScrollbarUpdate_nav_tabs();
});
});
Line 70: Line 73:
   e.preventDefault();
   e.preventDefault();
   $('.labjournal-weekly:visible').hide();
   $('.labjournal-weekly:visible').hide();
-
   $($('.labjournal-weekly')[10]).show();
+
   $($('.labjournal-weekly')[9]).show();
 +
  scrollbar.triggerScrollbarUpdate_nav_tabs();
});
});
Line 76: Line 80:
   e.preventDefault();
   e.preventDefault();
   $('.labjournal-weekly:visible').hide();
   $('.labjournal-weekly:visible').hide();
-
   $($('.labjournal-weekly')[15]).show();
+
   $($('.labjournal-weekly')[14]).show();
 +
  scrollbar.triggerScrollbarUpdate_nav_tabs();
});
});
Line 82: Line 87:
   e.preventDefault();
   e.preventDefault();
   $('.labjournal-weekly:visible').hide();
   $('.labjournal-weekly:visible').hide();
-
   $($('.labjournal-weekly')[20]).show();
+
   $($('.labjournal-weekly')[18]).show();
 +
  scrollbar.triggerScrollbarUpdate_nav_tabs();
});
});
Line 88: Line 94:
   e.preventDefault();
   e.preventDefault();
   $('.labjournal-weekly:visible').hide();
   $('.labjournal-weekly:visible').hide();
-
   $($('.labjournal-weekly')[25]).show();
+
   $($('.labjournal-weekly')[22]).show();
 +
  scrollbar.triggerScrollbarUpdate_nav_tabs();
});
});
 +
             </script>
             </script>
-
          <!--<script src="bootstrap-3.0.0/assets/js/jquery.js"></script>-->
 
-
          <!-- lets have a nicer scrollbar -->
+
 
-
          <script>
+
       
-
    (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", function(){
+
-
    setTimeout(function () { $(".carousel-caption:visible").mCustomScrollbar("update"); }, 1000);
+
-
});
+
-
              $('.nav-tabs a').click(function(){
+
-
    setTimeout(function () { $(".scrollContent").mCustomScrollbar("update"); }, 1000);
+
-
})
+
-
  })(jQuery);
+
-
  </script>
+
</html>
</html>

Latest revision as of 23:33, 28 October 2013