Team:Heidelberg/Templates/Footer-DelH

From 2013.igem.org

(Difference between revisions)
m
 
(2 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 71: Line 74:
   $('.labjournal-weekly:visible').hide();
   $('.labjournal-weekly:visible').hide();
   $($('.labjournal-weekly')[9]).show();
   $($('.labjournal-weekly')[9]).show();
 +
  scrollbar.triggerScrollbarUpdate_nav_tabs();
});
});
Line 77: Line 81:
   $('.labjournal-weekly:visible').hide();
   $('.labjournal-weekly:visible').hide();
   $($('.labjournal-weekly')[14]).show();
   $($('.labjournal-weekly')[14]).show();
 +
  scrollbar.triggerScrollbarUpdate_nav_tabs();
});
});
Line 83: Line 88:
   $('.labjournal-weekly:visible').hide();
   $('.labjournal-weekly:visible').hide();
   $($('.labjournal-weekly')[18]).show();
   $($('.labjournal-weekly')[18]).show();
 +
  scrollbar.triggerScrollbarUpdate_nav_tabs();
});
});
 +
$('#october').click(function(e) {
 +
  e.preventDefault();
 +
  $('.labjournal-weekly:visible').hide();
 +
  $($('.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);
+
-
})
+
-
  });
+
-
  </script>
+
</html>
</html>

Latest revision as of 23:33, 28 October 2013