1(function($) { 2 /** change value here to adjust parallax level */ 3 var parallax = -0.5; 4 5 var $bg_images = $(".parallax"); 6 var offset_tops = []; 7 $bg_images.each(function(i, el) { 8 offset_tops.push($(el).offset().top); 9 }); 10 11 $(window).scroll(function() { 12 if ($( window ).width() >= 768) { 13 var dy = $(this).scrollTop(); 14 $bg_images.each(function(i, el) { 15 var ot = offset_tops[i]; 16 $(el).css("background-position", "50% " + (dy + 90 - ot) * parallax + "px"); 17 }); 18 } 19 }); 20})(jQuery);
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.