上海蕴通国际贸易有限公司 - 官方项目启动 - 先行片

我们这一次是 认真的

What We Do
Unmute
about-brooklyn
================================================== */ var $header = $("#header-section"), $logo = $(".site-logo img"), logo = $logo.attr("src"), logoalt = $logo.data("altlogo"), is_open = false, has_passed = false; var ut_nav_skin_changer = function( direction , animClassDown , animClassUp ) { if( direction === "down" && animClassDown ) { $header.attr("class", "ha-header ut-header-dark centered " + animClassDown ); $logo.attr("src" , logoalt ); } else if( direction === "up" && animClassUp ){ $header.attr("class", "ha-header ut-header-dark centered " + animClassUp ); $logo.attr("src" , logo ); } }; $( ".ha-waypoint" ).each( function(i) { /* needed vars */ var $this = $( this ), animClassDown = $this.data( "animateDown" ), animClassUp = $this.data( "animateUp" ); $this.waypoint(function(direction) { ut_nav_skin_changer( direction , animClassDown , animClassUp ); }, { offset: brooklyn_scroll_offset+1 } ); }); if( $("#ut-background-video-hero").length ) { $("#ut-background-video-hero").mb_YTPlayer(); /* player mute control */ $("#ut-video-hero-control.youtube").click(function(event){ if( $(this).hasClass("ut-unmute") ) { $(this).removeClass("ut-unmute").addClass("ut-mute").text("MUTE"); $("#ut-background-video-hero").unmuteYTPVolume(); $("#ut-background-video-hero").setYTPVolume(5); } else { $(this).removeClass("ut-mute").addClass("ut-unmute").text("UNMUTE"); $("#ut-background-video-hero").muteYTPVolume(); } event.preventDefault(); }); }$(".parallax-banner").addClass("fixed").each(function() { $(this).parallax( "50%", 0.6 ); });$("section").each(function() { var outerHeight = $(this).outerHeight(), offset = "90%", effect = $(this).data("effect"); if( outerHeight > $(window).height() / 2 ) { offset = "70%"; } $(this).waypoint("destroy"); $(this).waypoint( function( direction ) { var $this = $(this); if( direction === "down" && !$(this).hasClass( effect ) ) { $this.find(".section-content").animate( { opacity: 1 } , 1600 ); $this.find(".section-header-holder").animate( { opacity: 1 } , 1600 ); } } , { offset: offset } ); }); $(window).load(function(){ $(window).trigger("resize"); });}); })(jQuery); /* ]]> */