1/* global jQuery */ 2"use strict"; 3var iron_parallax = function(){ 4 if ( jQuery(document).width() >= 1024 ) { 5 6 jQuery(document).on('scroll', function() { 7 8 var $scrollTop = jQuery(document).scrollTop(); 9 var $bannerHeight = jQuery('.parallax-banner').height(); 10 if ($scrollTop < $bannerHeight ) { 11 12 var $bannerFromTop = Math.pow(( ( $bannerHeight - $scrollTop ) / $bannerHeight ), 1.2); 13 14 jQuery('.page-banner-bg').velocity({ 15 translateZ: 0, 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});
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.