Line 327: | Line 327: | ||
$(document).ready(function(){ | $(document).ready(function(){ | ||
var scroll_start = 0; | var scroll_start = 0; | ||
− | + | ||
− | + | ||
$(document).scroll(function() { | $(document).scroll(function() { | ||
scroll_start = $(this).scrollTop(); | scroll_start = $(this).scrollTop(); | ||
− | if(scroll_start > | + | if(scroll_start >500) { |
$('.main-container').css('background-color', 'white'); | $('.main-container').css('background-color', 'white'); | ||
− | + | ||
} else { | } else { | ||
$('.main-container').css('background-color', 'none'); | $('.main-container').css('background-color', 'none'); | ||
− | + | ||
} | } | ||
}); | }); |
Revision as of 12:17, 12 September 2016