} } }, {'offset': '50%'}); }; var homenewss = function() { $('#homenewss').waypoint(function(dir) { if (dir === 'down') { $('.homenewss').animate({'opacity': 1}, 'slow'); $('.homenewss .hometitle h1 a').delay(300).animate({'marginTop': '0px', 'opacity': 1}, 'slow'); $('.homenewss .hometitle h2').delay(600).animate({'opacity': 1}, 'slow'); var time = 900; var num = $('.homenewss .newss ul li').length; for (var i = 0; i < num; i++) { $('.homenewss .newss ul li').eq(i).delay(time).animate({'opacity': 1}, 1000); time = time + 600; } $('.homenewss .morebtn').delay(3000).animate({'opacity': 1}, 'slow'); } }, {'offset': '50%'}); }; var homenews = function() { $('#homenews').waypoint(function(dir) { if (dir === 'down') { $('.homenews').animate({'opacity': 1}, 'slow'); $('.homenews .hometitle h1 a').delay(300).animate({'marginTop': '0px', 'opacity': 1}, 'slow'); $('.homenews .hometitle h2').delay(600).animate({'opacity': 1}, 'slow'); var time = 900; var num = $('.homenews .news ul li').length; for (var i = 0; i < num; i++) { $('.homenews .news ul li').eq(i).delay(time).animate({'opacity': 1}, 1000); time = time + 600; } $('.homenews .morebtn').delay(3000).animate({'opacity': 1}, 'slow'); } }, {'offset': '50%'}); }; var homecontact = function() { $('#homecontact').waypoint(function(dir) { if (dir === 'down') { $('.homecontact').animate({'opacity': 1}, 'slow'); } }, {'offset': '50%'}); }; var beforeload = function() { $('.homeabout').css({'opacity': 0}); $('.homebusiness').css({'opacity': 0}); $('.homenews').css({'opacity': 0}); $('.homenewss').css({'opacity': 0}); $('.homecontact').css({'opacity': 0}); $('.homeabout .hometitle h1 a').css({'marginTop': '50px', 'opacity': 0}); $('.homeabout .hometitle h2 a').css({'opacity': 0}); $('.homeabout .aboutin p').css({'opacity': 0}); // $('.homeabout .aboutin ul li').css({'opacity': 0}); $('.homebusiness .hometitle h1 a').css({'marginTop': '50px', 'opacity': 0}); $('.homebusiness .hometitle h2 a').css({'opacity': 0}); $('.homebusiness ul .left').css({'marginLeft': '-480px', 'opacity': 0}); $('.homebusiness ul .right').css({'marginRight': '-480px', 'opacity': 0}); $('.homenews .news ul li').css({'opacity': 0}); $('.homenews .hometitle h1 a').css({'marginTop': '50px', 'opacity': 0}); $('.homenews .hometitle h2').css({'opacity': 0}); $('.homenews .morebtn').css({'opacity': 0}, 'slow'); $('.homenewss .newss ul li').css({'opacity': 0}); $('.homenewss .hometitle h1 a').css({'marginTop': '150px', 'opacity': 0}); $('.homenewss .hometitle h2').css({'opacity': 0}); $('.homenewss .morebtn').css({'opacity': 0}, 'slow'); }; var onAllLoad = function() { homeabout(); homebusiness(); homenews(); homenewss(); homecontact(); }; var preload = function() { beforeload(); $('#page').bind('preloadfinish', onAllLoad).preloader(); }; preload(); $('#page').fullpage({ afterLoad: function(anchorLink, index) { if (index === 1) { $("#headerBox1").stop().animate({'top': '0px'}); $("#headerBox2").stop().animate({'top': '-80px'}); } if (index === 2) { homeabout(); header(); $("#headerBox1").stop().animate({'top': '-80px'}); $("#headerBox2").stop().animate({'top': '0px'}); } if (index === 3) { homebusiness(); header(); } if (index === 4) { homenewss(); header(); } if (index === 5) { homenews(); header(); } if (index === 6) { homecontact(); header(); $('.footerhover').mouseenter(function() { $('.footerbox').delay(100).stop().animate({'height': '204px'}); }); $('.footerbox').mouseleave(function() { $('.footerbox').delay(100).stop().animate({'height': '0px'}); }); } } }); var $window = $(window); var $windowWidth = function() { return $window.width(); }; var $windowHeight = function() { return $window.height(); }; $window.fssResize(function() { var width = $windowWidth(); var height = $windowHeight(); $(".banner").height(height); $('.slider').each(function() { $this = $(this); $this.height(height).width(width); $this.triggerHandler("configuration", {height: height, width: width, items: {width: width}}); $this.triggerHandler("updateSizes"); }); }); $('.slider .image-wrapper').each(function() { $(this).fullscreenstage({'width': 1920, 'height': 1080}); }); $(window).fssResize(); $('.slider').carouFredSel({'responsive': true, items: {visible: 1}, 'scroll': {'duration': 1000, 'items': 1, 'fx': 'crossfade'}, 'auto': true, 'prev': '.prev1', 'next': '.next1'}); $(window).fssResize(); var homeh = $('.homebottom').height() - 221; $('.homecontact').height(homeh); $('.homenews .news ul li:odd').css({'float': 'right'}); $('.homebusiness ul li').mouseenter(function() { $(this).children('.hover').stop().animate({'height': '78px'}); $(this).find('.en').stop().animate({'paddingTop': '18px', 'fontSize': '24px', 'backgroundPosition': 'center 65px'}); $(this).find('.cn').stop().animate({'paddingTop': '0', 'fontSize': '16px'}); }); $('.homebusiness ul li').mouseleave(function() { $(this).children('.hover').stop().animate({'height': '100%'}); $(this).find('.en').stop().animate({'paddingTop': '44%', 'fontSize': '36px', 'backgroundPosition': 'center -60px'}); $(this).find('.cn').stop().animate({'paddingTop': '2%', 'fontSize': '18px'}); }); $('.slidebtn').addClass('o'); $('.slidebtn').mouseenter(function() { $(this).removeClass('o'); }); $('.slidebtn').mouseleave(function() { $(this).addClass('o'); }); $('.slidebtn').click(function() { var top = $('#homeabout').offset().top; $('html,body').animate({'scrollTop': top}, 1000); }); $('.homecontact .icon1').click(function() { $('
').appendTo('body'); $('
').appendTo('.screen'); $('
').appendTo('.screen .screenin'); $('').appendTo('.screen .screenBox'); $('').appendTo('.screen .screenBox'); $('
').appendTo('.screen .screenBox'); $('.screen').animate({'opacity': 1}, function() { $('.screen .screenin').stop().animate({'height': '458px'}); }); $('.screenBox li:odd').css({'marginRight': '10%', 'float': 'right'}); $('.screenBox li:even').css({'marginLeft': '10%'}); }); $('.homecontact .icon2').click(function() { $('
').appendTo('body'); $('
').appendTo('.screen'); $('
').appendTo('.screen .screenin'); $('').appendTo('.screen .screenBox'); $('
').appendTo('.screen .screenBox'); $('
').appendTo('.screen .screenBox'); $('.screen').animate({'opacity': 1}, function() { $('.screen .screenin').stop().animate({'height': '458px'}); }); $('.screenBox li:odd').css({'marginRight': '10%', 'float': 'right'}); $('.screenBox li:even').css({'marginLeft': '10%'}); //创建和初始化地图函数: }); $('body').on('click', '.screen .close', function() { $('.screen .screenin').animate({'height': '0px'}, function() { $('.screen').remove(); }); });

Copyright © 2023 山东澳盛能源管理有限公司 鲁ICP备20022441号-1 XML地图 网站维护