103 lines
2.4 KiB
JavaScript
103 lines
2.4 KiB
JavaScript
// WOw插件初始化
|
|
var wow = new WOW({
|
|
boxClass: 'wow',
|
|
animateClass: 'animated',
|
|
offset: 80,
|
|
mobile: true,
|
|
live: true,
|
|
});
|
|
wow.init();
|
|
|
|
$(function(){
|
|
$(".listcur.info a").click(function(){
|
|
$(this).addClass("on").siblings().removeClass("on");
|
|
var index = $(this).index();
|
|
$(".inner-nav2 a").eq(index).addClass("curr").siblings().removeClass("curr");
|
|
})
|
|
|
|
$(".hamburger").click(function(){
|
|
$(this).toggleClass("is-active");
|
|
$(this).siblings(".right-boxs").find(".nav").toggleClass('inshow');
|
|
$(this).siblings(".right-boxs").find(".form").toggleClass('form-show');
|
|
});
|
|
|
|
$(window).scroll(function() {
|
|
if($(window).scrollTop() > 200) {
|
|
$('.header').addClass("fixed-header");
|
|
} else {
|
|
$('.header').removeClass("fixed-header");
|
|
}
|
|
})
|
|
|
|
$(".header .nav .nLi h3").mouseenter(function(event) {
|
|
$(this).siblings('.listcur').show();
|
|
});
|
|
|
|
$(".header .nav .nLi").mouseleave(function(event) {
|
|
$(this).find(".listcur").hide();
|
|
});
|
|
// banner
|
|
|
|
var swiper1 = new Swiper('.banner .swiper-container', {
|
|
speed:1000,
|
|
loop:true,
|
|
autoplay: {
|
|
delay: 5000,
|
|
stopOnLastSlide: false,
|
|
disableOnInteraction: true,
|
|
},
|
|
navigation: {
|
|
nextEl: '.button-next',
|
|
prevEl: '.button-prev',
|
|
},
|
|
pagination: {
|
|
el: '.swiper-pagination',
|
|
clickable: true,
|
|
},
|
|
});
|
|
|
|
//当banner图片大于1张时候运行
|
|
var bannerbox = $(".banner").find(".swiper-slide").length;
|
|
if(bannerbox == 1){
|
|
$(".banner").find('.swiper-container').addClass("swiper-no-swiping");
|
|
$(".banner").find(".swiper-pagination").hide();
|
|
$(".banner").find(".btn-next").hide();
|
|
$(".banner").find(".btn-prev").hide();
|
|
}
|
|
|
|
jQuery(".index-locate").slide({
|
|
titCell:".hd li",
|
|
mainCell: ".bd",
|
|
});
|
|
|
|
jQuery(".business-content .list").slide({
|
|
titCell:".hd li",
|
|
mainCell: ".bd",
|
|
effect:"fold"
|
|
});
|
|
|
|
// 右侧悬浮栏
|
|
$(window).scroll(function() {
|
|
if($(window).scrollTop() > 400) {
|
|
$('.back').fadeIn();
|
|
$(".header").addClass("fixed-header")
|
|
} else {
|
|
$('.back').fadeOut();
|
|
$(".header").removeClass("fixed-header")
|
|
}
|
|
})
|
|
$(".back").click(function(){
|
|
$('body,html').animate({scrollTop:0},1000);
|
|
return false;
|
|
});
|
|
|
|
$("body").on('click','.talent-top',function(){
|
|
$(this).siblings(".talent-bottom").slideToggle();
|
|
$(this).parents(".boxs").siblings().find(".talent-bottom").slideUp();
|
|
})
|
|
})
|
|
|
|
|
|
|
|
|