/* Add your JavaScript code here.

If you are using the jQuery library, then don't forget to wrap your code inside jQuery.ready() as follows:

jQuery(document).ready(function( $ ){
    // Your code in here
});

--

If you want to link a JavaScript file that resides on another server (similar to
<script src="https://example.com/your-js-file.js"></script>), then please use
the "Add HTML Code" page, as this is a HTML code that links a JavaScript file.

End of comment */ 




<script type="text/javascript">
jQuery(document).ready(function( jQuery ) {
	jQuery(window).on('scroll touchmove', function() {

		if (jQuery(document).scrollTop() >= jQuery('#one').position().top) {
			jQuery('body').css('background', jQuery('#one').attr('data-color'));
		}

		if (jQuery(document).scrollTop() > jQuery('#two').position().top) {
			jQuery('body').css('background', jQuery('#two').attr('data-color'));
		}

		if (jQuery(document).scrollTop() > jQuery('#three').position().top) {
			jQuery('body').css('background', jQuery('#three').attr('data-color'));
		}

	});
})(jQuery);
</script>
