Difference between revisions of "Team:Dalhousie/test4"

Line 140: Line 140:
  
  
<script>
+
<script>  <!-----------------added---------->
$(document).ready(function(){
+
 
     $(document).scroll(function() {
+
 
 +
$(window).scroll(function(){
 +
var position = $(window).scrollTop();
 +
  if (position>335)
 +
      $('nav').addClass('sticky');
 +
    else {
 +
        $('nav').removeClass('sticky');
 +
    }
 +
})
 +
 
 +
     $(window).scroll(function() {
 
         var alpha = Math.min(0.5 + 0.4 * $(this).scrollTop() / 210, 0.9);
 
         var alpha = Math.min(0.5 + 0.4 * $(this).scrollTop() / 210, 0.9);
 
         var channel = Math.round(alpha * 255);
 
         var channel = Math.round(alpha * 255);

Revision as of 18:41, 14 September 2017

Welcome to Dalhousie's 2017 iGEM wiki

Sponsor area