$(function() { // .j-nextshow start $(".j-nextshow").click(function(e) { e.preventDefault(); var _this = $(this), $next = _this.next(); if ($next.is(":hidden")) { $next.slideDown(); } else { $next.slideUp(); } }) // .j-nextshow end // tab start var list = $('.tab-options li'); var content = $('.tab-content .tab-content-item'); list.click(function() { i = $(this).index(); $(this).addClass('tab-active').siblings().removeClass('tab-active'); content.eq(i).fadeIn(500).siblings('.tab-content-item').hide(); }) //回到顶部 /* $(window).scroll(function() { var j = $(document).scrollTop(); if (j != 0) { $(".back-top").css("bottom", "100px"); } if (j == 0) { $(".back-top").css("bottom", "-100px"); } }) */ $(".back-top").click(function() { $("html,body").animate({ scrollTop: '0px' }, 300); }) // lazyload start $(".nlazy").lazyload({ effect: "fadeIn" }); // lazyload end baguetteBox.run('.baguetteBoxOne', { animation: 'fadeIn' }); $("table").wrap("
"); $(".contact-phone .c3").click(function(e){ e.preventDefault(); var _this = $(this), $img = _this.children(".ewm"); if($img.is(":hidden")){ $img.show(); }else{ $img.hide(); } }) })