Difference between revisions of "Team:British Columbia/Template/Protocols"

 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{{:Team:British Columbia/Template/Fixednavbar}}
 
{{:Team:British Columbia/Template/Fixednavbar}}
 
<html>
 
<html>
<body>
+
<nav class="navbar navbar-default navbar-fixed-bottom navbar-right">
<a class="back-to-top" style="display: inline;" href="#">Back to Top</a>
+
  <div class="container">
 
+
<ul class="nav navbar-nav navbar-right">
<script>
+
        <li><a data-ga-category="Content Action" data-ga-action="Print" data-ga-label="/protocols/1/01/01/taq-dna-polymerase-with-standard-taq-buffer-m0273" href="javascript:window.print()" class="print ga-event">Print</a></li>
jQuery(document).ready(function() {
+
<ul class="nav navbar-nav navbar-right">
    var offset = 250;
+
         <li><a href="#">Back to Top</a></li>
    var duration = 300;
+
  </div>
    jQuery(window).scroll(function() {
+
</nav>
        if (jQuery(this).scrollTop() > offset) {
+
            jQuery('.back-to-top').fadeIn(duration);
+
        } else {
+
            jQuery('.back-to-top').fadeOut(duration);
+
        }
+
    });
+
 
+
    jQuery('.back-to-top').click(function(event) {
+
        event.preventDefault();
+
        jQuery('html, body').animate({scrollTop: 0}, duration);
+
         return false;
+
    })
+
});
+
</script>
+

Latest revision as of 23:36, 31 March 2015

UBC iGEM 2015