Team:Heidelberg/Templates/Footer-DelRest

From 2013.igem.org

(Difference between revisions)
m
m
 
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-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>
+
-
            Scrollbar = function(){
+
-
              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();
+
-
            };
+
-
            Scrollbar.prototype.triggerScrollbarUpdate = function(e){
+
-
                setTimeout(function () { $(e).mCustomScrollbar("update"); }, 2000);
+
-
            };
+
-
            Scrollbar.prototype.triggerScrollbarUpdate_nav_tabs = function(){
+
-
                var sb = this;
+
-
                $('.nav-tabs a').click(function(){sb.triggerScrollbarUpdate(".scrollContent:visible");})
+
-
                sb.triggerScrollbarUpdate(".scrollContent:visible");
+
-
                sb.triggerScrollbarUpdate(".carousel-caption:visible");
+
-
            };
+
-
    (function(){
+
-
              scrollbar = new Scrollbar;
+
-
            }
+
-
            )(jQuery);
+
-
  </script>
+
<script type="text/javascript">
<script type="text/javascript">

Latest revision as of 14:37, 4 October 2013