1function initHeroFullScreen() { 2 var heroFullScreen = $('.hero-full-screen-ce .hero-full-screen-slide'); 3 if (heroFullScreen.length <= 0) { return false; } 4 5 heroFullScreen.css('min-height', 0); 6 7 var height = 0; 8 var height_top = 50; 9 updateHeight(); 10 $('.hero-full-screen-ce').css('visibility', 'visible'); 11 12 $(window).resize(function() { 13 updateHeight(); 14 }); 15 $(window).scroll(function() { 16 parallaxEffect(); 17 }); 18 19 $(".arrow-down").click(function () { 20 var headerHeight = $("#header").height(); 21 if($(window).width() < 800){ 22 headerHeight = 0; 23 } 24 $("html,body").animate({ scrollTop: $(this).parent().offset().top - headerHeight + $(this).parent().height() }, "slow"); 25 //$("html,body").animate({ scrollTop: $(this).parent().offset().top + $(this).parent().height() }, "slow"); 26 }); 27 28 function parallaxEffect() { 29 var h = 0.8 * height; 30 var min_opacity = 0; 31 var object = $('.hero-full-screen-ce').position().top + h; 32 33 if ($(window).scrollTop() > $('.hero-full-screen-ce').position().top && $(window).scrollTop() < object) { 34 var opacity = Math.max(1 - ($(window).scrollTop() - $('.hero-full-screen-ce').position().top) / h, min_opacity); 35 var hedlineTop = 50 + (($(window).scrollTop() - $('.hero-full-screen-ce').position().top) / h) * 36; 36 $('.hero-full-screen-ce .h1').css({'opacity': opacity}); 37 $('.hero-full-screen-ce .h1').css({'top': hedlineTop + '%'}); 38 } 39 } 40 41 function updateHeight() { 42 var header = $('#header').height(); 43 if( ($('.menu-show-btn').css('height') != '0px') && $('#menu').hasClass('active')) { 44 header -= $('#menu').height(); 45 header -= $('#footer-menu').height(); 46 } 47 48 height = Math.min(1000, $(window).height() - header); 49 heroFullScreen.height(height); 50 } 51} 52
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.