1var iron_parallax = function(){ 2 if (jQuery('.parallax-banner').length ) { 3 4 jQuery(document).on('scroll', function() { 5 6 var $scrollTop = jQuery(document).scrollTop(); 7 var $bannerHeight = jQuery('.parallax-banner').height(); 8 if ($scrollTop < $bannerHeight ) { 9 10 $bannerFromTop = Math.pow(( ( $bannerHeight - $scrollTop ) / $bannerHeight ), 1.2); 11 12 // jQuery('.site-logo').text($bannerFromTop); 13 jQuery('.page-banner-bg').velocity({ 14 translateZ: 0, 15 translateY: $scrollTop * 0.8+"px" 16 },{ duration: 0 }); 17 18 jQuery('.page-banner-content').velocity({ 19 translateZ: 0, 20 translateY: $scrollTop * 0.7+"px", 21 opacity: $bannerFromTop 22 },{ duration: 0 }); 23 24 } 25 26 }); 27 28 } 29} 30 31jQuery(document).ready(function($) { 32 iron_parallax() 33}); 34
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.