1jQuery(function( $ ){ 2 3 // Enable parallax and fade effects on homepage sections 4 $(window).scroll(function(){ 5 6 scrolltop = $(window).scrollTop() 7 scrollwindow = scrolltop + $(window).height(); 8 9 $(".home-section-1").css("backgroundPosition", "50% " + -(scrolltop/6) + "px"); 10 11 if ( $(".home-section-3").length ) { 12 13 sectionthreeoffset = $(".home-section-3").offset().top; 14 15 if( scrollwindow > sectionthreeoffset ) { 16 17 // Enable parallax effect 18 backgroundscroll = scrollwindow - sectionthreeoffset; 19 $(".home-section-3").css("backgroundPosition", "50% " + -(backgroundscroll/6) + "px"); 20 21 } 22 23 } 24 25 if ( $(".home-section-5").length ) { 26 27 sectionfiveoffset = $(".home-section-5").offset().top; 28 29 if( scrollwindow > sectionfiveoffset ) { 30 31 // Enable parallax effect 32 backgroundscroll = scrollwindow - sectionfiveoffset; 33 $(".home-section-5").css("backgroundPosition", "50% " + -(backgroundscroll/6) + "px"); 34 35 } 36 37 } 38 39 }); 40 41});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.