$(window).load(function(e) {
$('.index_sec9_swiper').height($('.index_sec9_swiper .xm_lista .index_sec9_img img').height());
})
$(window).resize(function(e) {
$('.index_sec9_swiper').height($('.index_sec9_swiper .xm_lista .index_sec9_img img').height());
})
$(window).load(function(e) {
$('.index_sec9_swiper_2').height($('.index_sec9_swiper_2 .xm_lista_2 .index_sec9_img_2 img').height());
})
$(window).resize(function(e) {
$('.index_sec9_swiper_2').height($('.index_sec9_swiper_2 .xm_lista_2 .index_sec9_img_2 img').height());
})
$(window).load(function(e) {
$('.index_sec8_swiper').height($('.index_sec8_swiper .index_sec8_con').innerHeight()+60);
$('.index_sec8_lis').innerHeight($('.index_sec8_swiper .index_sec8_con').innerHeight()+60);
$('.index_sec8_con1').innerHeight($('.index_sec8_swiper .index_sec8_con').innerHeight()+25);
$('.index_sec8_box1').innerHeight($('.index_sec8_swiper .index_sec8_con').innerHeight()+$(".public_btn").innerHeight()+$('.newest_title').innerHeight()+260);
})
$(window).resize(function(){
$('.index_sec8_swiper').height($('.index_sec8_swiper .index_sec8_con').innerHeight()+60);
$('.index_sec8_lis').innerHeight($('.index_sec8_swiper .index_sec8_con').innerHeight()+60);
$('.index_sec8_con1').innerHeight($('.index_sec8_swiper .index_sec8_con').innerHeight()+25);
$('.index_sec8_box1').innerHeight($('.index_sec8_swiper .index_sec8_con').innerHeight()+$(".public_btn").innerHeight()+$('.newest_title').innerHeight()+260);
})
$(window).load(function(e) {
var height1 = $(".index_sec4_left img").height();
$(".swiper-container2").css("height",height1)
$('.index_sec8_swiper').height($('.index_sec8_swiper .index_sec8_con').innerHeight()+60);
$('.index_sec8_lis').innerHeight($('.index_sec8_swiper .index_sec8_con').innerHeight()+60);
$('.index_sec8_con1').innerHeight($('.index_sec8_swiper .index_sec8_con').innerHeight()+25);
$('.index_sec8_box1').innerHeight($('.index_sec8_swiper .index_sec8_con').innerHeight()+$(".public_btn").innerHeight()+220);
$('.index_sec8_swiper_1').height($('.index_sec8_swiper_1 .index_sec8_con').innerHeight()+60);
$('.index_sec8_swiper_1 .index_sec8_lis').innerHeight($('.index_sec8_swiper_1 .index_sec8_con').innerHeight()+60);
$('.index_sec8_swiper_1 .index_sec8_con1').innerHeight($('.index_sec8_swiper_1 .index_sec8_con').innerHeight()+25);
$('.index_sec8_swiper_1 .index_sec8_box1').innerHeight($('.index_sec8_swiper_1 .index_sec8_con').innerHeight()+$(".public_btn").innerHeight()+160);
$('.index_sec9_swiper').height($('.index_sec9_swiper .xm_lista .index_sec9_img img').height());
$('.index_sec9_swiper_2').height($('.index_sec9_swiper_2 .xm_lista_2 .index_sec9_img_2 img').height());
$('.index_sec9_swiper_2').height($('.index_sec9_swiper_2 .xm_lista_2 .index_sec9_img_2').width()*600/600);
var height5 = $('.index_sec2_pic').eq(0).width()*588/1044;
$('.index_sec2_word').css("height",height5);
$('.videoA').width($('.index_sec2_all').width()-$('.index_sec2_word').width());
$('#play').width($('.index_sec2_all').width()-$('.index_sec2_word').width());
})
$(window).resize(function(e) {
var height1 = $(".index_sec4_left img").height();
$(".swiper-container2").css("height",height1);
$('.index_sec9_swiper_2').height($('.index_sec9_swiper_2 .xm_lista_2 .index_sec9_img_2').width()*600/600);
var height5 = $('.index_sec2_pic').eq(0).width()*588/1044;
$('.index_sec2_word').css("height",height5);
$('.videoA').width($('.index_sec2_all').width()-$('.index_sec2_word').width());
$('#play').width($('.index_sec2_all').width()-$('.index_sec2_word').width());
});
$(window).ready(function(){
if (!!window.ActiveXObject || "ActiveXObject" in window){
var tar=$(".career1_txt p");
for(i=0;i<$(".career1_txt p").length;i++){
var txt=$(".career1_txt p").eq(i).html();
var span=$('');
span.html(txt);
$(".career1_txt p").eq(i).html(span);
}
$(".career1_txt p").each(function(i){
var divH = $(this).height();
var $p = $("span", $(this)).eq(0);
while ($p.outerHeight() > divH) {
$p.text($p.text().replace(/(\s)*([a-zA-Z0-9]+|\W)(\.\.\.)?$/, "..."));
};
});
}
if (!!window.ActiveXObject || "ActiveXObject" in window){
var tar=$(".index_sec1_zhe2 h5 p");
for(i=0;i<$(".index_sec1_zhe2 h5 p").length;i++){
var txt=$(".index_sec1_zhe2 h5 p").eq(i).html();
var span=$('');
span.html(txt);
$(".index_sec1_zhe2 h5 p").eq(i).html(span);
}
$(".index_sec1_zhe2 h5 p").each(function(i){
var divH = $(this).height();
var $p = $("span", $(this)).eq(0);
while ($p.outerHeight() > divH) {
$p.text($p.text().replace(/(\s)*([a-zA-Z0-9]+|\W)(\.\.\.)?$/, "..."));
};
});
}
})
function goTop(){
$('html,body').animate({'scrollTop':0},600); //婊氬洖椤堕儴鐨勬椂闂达紝瓒婂皬婊氱殑閫熷害瓒婂揩~
}
$(document).ready(function(e) {
var mySwiper1 = new Swiper('.swiper-banner',{
loop:true,
pagination:'.banner_pagination',
autoplay:5000,
spaceBetween: 0,
paginationClickable: true,
autopalyDisableOnInteraction:false,
onSlideChangeStart: function(){
$('.cur_1').text(mySwiper1.activeLoopIndex+1) // 鎹㈡暟瀛
var ind=mySwiper1.activeLoopIndex;
$(".banner_txt").eq(ind).animate({"opacity":"1"},300).siblings().animate({"opacity":"0"},300); //鏀瑰彉閫忔槑搴
}
})
$('.arrow-left_01').on('click', function(e){
e.preventDefault()
mySwiper1.swipePrev()
})
$('.arrow-right_01').on('click', function(e){
e.preventDefault()
mySwiper1.swipeNext()
})
setTimeout(function(){
$('.banner_pagination span').eq(0).hover(function(){
mySwiper1.swipeTo(0, 1000, false);
})
$('.banner_pagination span').eq(2).hover(function(){
mySwiper1.swipeTo(2, 1000, false);
})
$('.banner_pagination span').eq(3).hover(function(){
mySwiper1.swipeTo(3, 1000, false);
})
$('.banner_pagination span').eq(1).hover(function(){
mySwiper1.swipeTo(1, 1000, false);
})
$('.banner_pagination span').eq(4).hover(function(){
mySwiper1.swipeTo(4, 1000, false);
})
},0)
$('.banner').hover(function(){
mySwiper1.stopAutoplay();
},function(){
mySwiper1.startAutoplay();
});
var mySwiper1_2= new Swiper('.swiper-banner2',{
loop:true,
pagination:'.banner_pagination2',
autoplay:5000,
spaceBetween: 0,
paginationClickable: true,
autopalyDisableOnInteraction:false,
onSlideChangeStart: function(){
$('.cur_1').text(mySwiper1_2.activeLoopIndex+1) // 鎹㈡暟瀛
var ind=mySwiper1_2.activeLoopIndex;
$(".banner_txt").eq(ind).animate({"opacity":"1"},300).siblings().animate({"opacity":"0"},300); //鏀瑰彉閫忔槑搴
}
})
$('.arrow-left_01').on('click', function(e){
e.preventDefault()
mySwiper1_2.swipePrev()
})
$('.arrow-right_01').on('click', function(e){
e.preventDefault()
mySwiper1_2.swipeNext()
})
setTimeout(function(){
$('.banner_pagination span').eq(0).hover(function(){
mySwiper1_2.swipeTo(0, 1000, false);
})
$('.banner_pagination span').eq(2).hover(function(){
mySwiper1_2.swipeTo(2, 1000, false);
})
$('.banner_pagination span').eq(3).hover(function(){
mySwiper1_2.swipeTo(3, 1000, false);
})
$('.banner_pagination span').eq(1).hover(function(){
mySwiper1_2.swipeTo(1, 1000, false);
})
$('.banner_pagination span').eq(4).hover(function(){
mySwiper1_2.swipeTo(4, 1000, false);
})
},0)
$('.banner').hover(function(){
mySwiper1_2.stopAutoplay();
},function(){
mySwiper1_2.startAutoplay();
});
});
var mySwiper2 = new Swiper('.swiper-container2',{
loop:true,
grabCursor: true,
autoplay:5000,
spaceBetween: 0,
slidesPerGroup : 1,//璁剧疆鍑犱釜涓€鍒囨崲
paginationClickable: true,
autoplayDisableOnInteraction : false, //鐢ㄦ埛鎿嶄綔鐐圭殑鏃跺€ 鍋滄鑷姩鍒囨崲
onSlideChangeStart: function(){
var ind=mySwiper2.activeLoopIndex;
$(".index_sec4_texta").eq(ind).animate({"opacity":"1"},300).siblings().animate({"opacity":"0"},300); //鏀瑰彉閫忔槑搴
}
});
$('.arrow-left2').on('click', function(e){
e.preventDefault()
mySwiper2.swipePrev()
});
$('.arrow-right2').on('click', function(e){
e.preventDefault()
mySwiper2.swipeNext()
});
var mySwiper8 = new Swiper('.index_sec8_swiper',{
loop:true,
grabCursor: true,
autoplay:5000,
pagination:'.pagination8',
spaceBetween: 0,
slidesPerGroup: 1,//璁剧疆鍑犱釜涓€鍒囨崲
paginationClickable: true,
autoplayDisableOnInteraction : false //鐢ㄦ埛鎿嶄綔鐐圭殑鏃跺€ 鍋滄鑷姩鍒囨崲
});
$('.index_sec8_btnL').on('click', function(e){
e.preventDefault()
mySwiper8.swipePrev()
})
$('.index_sec8_btnR').on('click', function(e){
e.preventDefault()
mySwiper8.swipeNext()
})
stopS('.index_sec8_swiper',mySwiper8)
setTimeout(function(){
$('.pagination8 span').eq(0).hover(function(){
mySwiper8.swipeTo(0, 1000, false);
})
$('.pagination8 span').eq(2).hover(function(){
mySwiper8.swipeTo(2, 1000, false);
})
$('.pagination8 span').eq(1).hover(function(){
mySwiper8.swipeTo(1, 1000, false);
})
},0)
var mySwiper8_1 = new Swiper('.index_sec8_swiper_1',{
loop:true,
grabCursor: true,
autoplay:5000,
pagination:'.pagination9',
spaceBetween: 0,
slidesPerGroup : 1,//璁剧疆鍑犱釜涓€鍒囨崲
paginationClickable: true,
autoplayDisableOnInteraction : false //鐢ㄦ埛鎿嶄綔鐐圭殑鏃跺€ 鍋滄鑷姩鍒囨崲
});
$('.index_sec8_btnL').on('click', function(e){
e.preventDefault()
mySwiper8_1.swipePrev()
})
$('.index_sec8_btnR').on('click', function(e){
e.preventDefault()
mySwiper8_1.swipeNext()
})
setTimeout(function(){
$('.pagination9 span').eq(0).hover(function(){
mySwiper8_1.swipeTo(0, 1000, false);
})
$('.pagination9 span').eq(2).hover(function(){
mySwiper8_1.swipeTo(2, 1000, false);
})
$('.pagination9 span').eq(1).hover(function(){
mySwiper8_1.swipeTo(1, 1000, false);
})
},0)
var mySwiper9 = new Swiper('.index_sec9_swiper',{
grabCursor: true,
loop:true,
autoplay:3000,
spaceBetween: 0,
slidesPerView:4,
slidesPerGroup : 1,//璁剧疆鍑犱釜涓€鍒囨崲
paginationClickable: true,
autoplayDisableOnInteraction : false //鐢ㄦ埛鎿嶄綔鐐圭殑鏃跺€ 鍋滄鑷姩鍒囨崲
});
$('.arrow-left9').on('click', function(e){
e.preventDefault()
mySwiper9.swipePrev()
})
$('.arrow-right9').on('click', function(e){
e.preventDefault()
mySwiper9.swipeNext()
})
$('.index_sec9_swiper').hover(function(){
mySwiper9.stopAutoplay();
},function(){
mySwiper9.startAutoplay();
});
var mySwiper9_2 = new Swiper('.index_sec9_swiper_2',{
loop:true,
grabCursor: true,
autoplay:4000,
spaceBetween: 0,
slidesPerView:1,
slidesPerGroup : 1,//璁剧疆鍑犱釜涓€鍒囨崲
paginationClickable: true,
autoplayDisableOnInteraction : false //鐢ㄦ埛鎿嶄綔鐐圭殑鏃跺€ 鍋滄鑷姩鍒囨崲
});
$('.arrow-left9').on('click', function(e){
e.preventDefault()
mySwiper9_2.swipePrev()
})
$('.arrow-right9').on('click', function(e){
e.preventDefault()
mySwiper9_2.swipeNext()
})
$(function() {
$(".index_sec2_state").hover(tab);
function tab() {
$(this).addClass("active").siblings().removeClass("active");
var tab = $(this).attr("title");
$("#" + tab).show().siblings('.TabHide4').hide();
};
});
$(window).scroll(function(){
var h=$(this).scrollTop();
if(h+500>$('.index_sec1').offset().top){
$('.index_sec1 .txt-tit').find('h4').animate({opacity:1,left:0}).end().find('h6').animate({opacity:1,left:0});
$('.index_sec1_con1').delay(500).animate({opacity:1,top:0},700);
$('.index_sec1_con').eq(0).delay(700).animate({opacity:1,top:0},700).end().eq(1).delay(900).animate({opacity:1,top:0},700);
$('.chanye').delay(500).animate({opacity:1,top:0},700);
}
if(h+500>$('.index_sec9').offset().top){
$('.index_sec9 .txt-tit').find('h4').animate({opacity:1,left:0}).end().find('h6').animate({opacity:1,left:0});
$('.index_sec9_swiper').addClass('active');
}
if(h+500>$('.index_sec9-2').offset().top){
$('.index_sec9-2 .txt-tit').find('h4').animate({opacity:1,left:0}).end().find('h6').animate({opacity:1,left:0});
$('.index_sec9_swiper_2').addClass('active');
}
if(h+500>$('.index_sec8').offset().top){
$('.index_sec8 .txt-tit').find('h4').animate({opacity:1,left:0}).end().find('h6').animate({opacity:1,left:0});
$('.index_sec8_swiper').delay(500).animate({opacity:1,left:0},700);
$('.index_sec8_swiper_1').delay(500).animate({opacity:1,left:0},700);
$('.index_sec8_lis').delay(500).animate({opacity:1,left:0},700);
$('.index_sec8_con1').addClass('active');
}
if(h+500>$('.index_sec2').offset().top){
$('.index_sec2_dianji').animate({top:0,opacity:1},700);
$('.index_sec2 .TabHide4').animate({top:0,opacity:1},700);
}
});
$(document).ready(function(){
/*if($(window).width()>768){*/
$('.videoA').click(function(){
$('.videoBox').stop(true).fadeIn(300);
setTimeout(function(){
$('.videoBoxCon').addClass('videoBoxCon_on');
},100)
})
$('.colse').click(function(){
$('.videoBox').stop(true).fadeOut(300);
$('.videoBoxCon').removeClass('videoBoxCon_on');
})
/*}*/
if (!!window.ActiveXObject || "ActiveXObject" in window){
var tar=$(".index_sec9_txt h5 p");
for(i=0;i<$(".index_sec9_txt h5 p").length;i++){
var txt=$(".index_sec9_txt h5 p").eq(i).html();
var span=$('');
span.html(txt);
$(".index_sec9_txt h5 p").eq(i).html(span);
}
$(".index_sec9_txt h5 p").each(function(i){
var divH = $(this).height();
var $p = $("span", $(this)).eq(0);
while ($p.outerHeight() > divH) {
$p.text($p.text().replace(/(\s)*([a-zA-Z0-9]+|\W)(\.\.\.)?$/, "..."));
};
});
}
})
miao();