//=== viewid:dh_style_28_1603419460274 ===//
/*pc,鎵嬫満鏄剧ず闅愯棌*/
function is_mobile(){
return window.screen.width<767 || ($('body').width() > 0 && $('body').width() < 767);
}
$(function(){
$("#dh_style_28_1603419460274 li").each(function(){
});
})
//=== viewid:dh_style_28_1603419460274 ===//
function navSwtich(obj) {
$(obj).siblings(".menuUlCopy").slideToggle(200);
$(obj).toggleClass('ontoggle');
$(obj).parent().siblings().find(".menuUlCopy").slideUp(200);
$(obj).parent().siblings().find(".fa-angle-down").removeClass('ontoggle');
}
function subLeft_dh_style_28_1603419460274(){
$("#dh_style_28_1603419460274 .menuUl>li").each(function(){
$(this).find(".menuUl03").css("left",'100%');
})
}
$(window).resize(function() {
subLeft_dh_style_28_1603419460274();
})
$(function(){
$("#dh_style_28_1603419460274 .fa-navicon").click(function(){
$("#dh_style_28_1603419460274").addClass('clearTransform');
$("#dh_style_28_1603419460274 .menuUlCopy").each(function(){
$(this).siblings(".fa").show();
})
})
subLeft_dh_style_28_1603419460274();
$("#dh_style_28_1603419460274 .subBox").css("top",$("#dh_style_28_1603419460274 .menuUl_box").height());
if($("#dh_style_28_1603419460274 .menuUl").hasClass("noHover")){
var tabNum = 0;
$("#dh_style_28_1603419460274 .menuUl>li").find(".Onsub").each(function(){
tabNum += 1;
$(this).parent().attr("tabNum",tabNum)
})
$("#dh_style_28_1603419460274 .menuUl>li .Onsub").mouseover(function(){
$("#dh_style_28_1603419460274 .subBox").show();
var index = $(this).parent().attr("tabNum");
$("#dh_style_28_1603419460274 .subBox .subItems").eq(index-1).fadeIn(100).siblings().hide();
$("#dh_style_28_1603419460274 .subBox .subMenuImgArea .subMenuImgCon").eq(0).fadeIn(100).siblings().hide();
})
$("#dh_style_28_1603419460274 .subBox").mouseleave(function(){
$(this).hide();
});
$("#dh_style_28_1603419460274 .menuUl>li .Nosub").mouseover(function(){
$("#dh_style_28_1603419460274 .subBox").hide();
})
//椋庢牸41 42
}
})
var color = $('#dh_style_28_1603419460274 .menuStyle_28 .menuUl02 .subMenu02').css('background-color');
$('#dh_style_28_1603419460274 .menuStyle_28').append(``);
$('#dh_style_28_1603419460274 .menuStyle_28 .menuUl02 .subMenu02').mouseover(function(){
let that = $(this);
setTimeout(function(){
var hoverColor = that.css('background-color');
$('#dh_style_28_1603419460274 .menuStyle_28').append(``);
},100);
});
//=== viewid:lang_style_13_1604070866308,video_style_02_1605253889740 ===//
$(document).ready(function(){
});
//=== viewid:homelink_style_02_1603941759548,homelink_style_02_1603937195453,homelink_style_03_1603537496460,productList_style_11_1618970461439,productList_style_11_1620904974270,productList_style_11_1620904995436,productList_style_11_1620905036980,productList_style_11_1620905255254,productList_style_11_1620905288628,productList_style_11_1618806839260,productList_style_11_1620350089279,productList_style_11_1620350206187,productList_style_11_1620350307764,productList_style_11_1636358675639 ===//
//=== viewid:banner_style_01_1623903966274,banner_style_04_1683592256876,banner_style_16_1635816169324 ===//
//=== viewid:banner_style_16_1635816169324 ===//
$(document).ready(function(){
arrowShow();
$(window).resize(function(){
arrowShow();
});
// 绠ご鏄剧ず
function arrowShow(){
if(window.screen.width<767 || ($('body').width() > 0 && $('body').width() < 767) || navigator.userAgent.indexOf('Mac OS X') != -1){
$("#banner_style_16_1635816169324 .bannerStyle_8 .awesome-font").show().siblings().hide();
}else{
$("#banner_style_16_1635816169324 .bannerStyle_8 .awesome-font").hide().siblings().show();
}
}
var datestay=parseFloat('3')*1000;
var timeAnimi=parseFloat('0.5')*1000;
var obj=$("#banner_style_16_1635816169324");
if(obj&&obj.length>0){
var timeoutObj=null;
var nowItem=0;
var father=obj.find(".bannerStyle_8 .main_image ul");
var Ulen = father.children("li").length;
father.children("li").eq(nowItem).css({"display":"block","float":"none","left":"0%","top":"0px","position":"absolute"}).siblings("li").css({"display":"none","float":"none","left":"0%","top":"0px","position":"absolute"});
obj.hover(function(){
if(timeoutObj){
window.clearTimeout(timeoutObj);
}
obj.find(".bannerStyle_8 #btn_prev, .bannerStyle_8 #btn_next").fadeIn()
},function(){
timeoutObj=setTimeout(function(){
animiIn(animiIn);
},datestay);
obj.find(".bannerStyle_8 #btn_prev, .bannerStyle_8 #btn_next").fadeOut()
});
$("#banner_style_16_1635816169324 .bannerStyle_8 #btn_prev").click(function(){
animiOut();
});
$("#banner_style_16_1635816169324 .bannerStyle_8 #btn_next").click(function(){
animiIn();
});
var touchVal=null;
document.addEventListener("touchstart", function(e){
if($(e.target).is(obj)||$(e.target).parents("#"+obj.attr("id")).length>0){
touchVal={};
touchVal.downX=e.touches[0].clientX;
if (e.preventDefault) {
e.preventDefault();
}
else {
e.returnvalue = false;
}
}
}, false);
document.addEventListener("touchmove", function(e){
if(touchVal&&touchVal.downX){
touchVal.moveX=e.touches[0].clientX-touchVal.downX;
if (e.preventDefault) {
e.preventDefault();
}
else {
e.returnvalue = false;
}
}
}, false);
document.addEventListener("touchend", function(e){
if(touchVal&&touchVal.moveX){
if(touchVal.moveX>30){
animiOut(animiIn);
}else if(touchVal.moveX<-30){
animiIn(animiIn);
}
if (e.preventDefault) {
e.preventDefault();
}
else {
e.returnvalue = false;
}
}
touchVal=null;
}, false);
function animiIn(callback){
if(timeoutObj){
window.clearTimeout(timeoutObj);
}
if(Ulen>1){
var now=nowItem;
var next=now+1;
if(next>=Ulen){
next=0;
}
father.children("li").eq(now).stop().fadeOut(timeAnimi,function(){
if(typeof(callback)=="function"){
timeoutObj=setTimeout(function(){
callback(callback);
},datestay);
}
});
father.children("li").eq(next).stop(false,true).fadeIn(timeAnimi);
nowItem=next;
}
}
function animiOut(){
if(timeoutObj){
window.clearTimeout(timeoutObj);
}
if(Ulen>1){
var now=nowItem;
var next=now-1;
if(next<0){
next=Ulen-1;
}
father.children("li").eq(now).stop().fadeOut(timeAnimi,function(){
if(typeof(callback)=="function"){
timeoutObj=setTimeout(function(){
callback(callback);
},datestay);
}
});
father.children("li").eq(next).stop(false,true).fadeIn(timeAnimi);
nowItem=next;
}
}
timeoutObj=setTimeout(function(){
animiIn(animiIn);
},datestay);
}
});
//=== viewid:image_style_24_1635817636220 ===//
let timerimage_style_24_1635817636220;
let canTurnimage_style_24_1635817636220=1;
turnNextTimevalimage_style_24_1635817636220();
$('#image_style_24_1635817636220 .controls_icon').click(function(){
if(canTurnimage_style_24_1635817636220==1){
clearTimeout(timerimage_style_24_1635817636220);
if($(this).hasClass('next_icon')){ turnNextimage_style_24_1635817636220(); }
else{ turnPrevimage_style_24_1635817636220(); }
turnNextTimevalimage_style_24_1635817636220();
}
});
function turnNextTimevalimage_style_24_1635817636220(){
timerimage_style_24_1635817636220 = setTimeout(function(){
turnNextimage_style_24_1635817636220();
turnNextTimevalimage_style_24_1635817636220();
},3 * 1000 + 1010);
}
function turnNextimage_style_24_1635817636220(){
canTurnimage_style_24_1635817636220=0;
$('#image_style_24_1635817636220 .item').css('transition-duration','1s');
$('#image_style_24_1635817636220 .item:nth-child(1)').addClass('zero hide_item').removeClass('normal_item');
$('#image_style_24_1635817636220 .item:nth-child(2)').removeClass('center_item').addClass('normal_item');
$('#image_style_24_1635817636220 .item:nth-child(3)').addClass('center_item').removeClass('normal_item');
$('#image_style_24_1635817636220 .item:nth-child(4)').removeClass('hide_item').addClass('normal_item');
setTimeout(function(){
$("#image_style_24_1635817636220 .zero").appendTo($("#image_style_24_1635817636220 .wrap_ul")).removeClass('zero');
$('#image_style_24_1635817636220 .item').css('transition-duration','0s');
canTurnimage_style_24_1635817636220=1;
},1010);
}
function turnPrevimage_style_24_1635817636220(){
canTurnimage_style_24_1635817636220=0;
$('#image_style_24_1635817636220 .item').css('transition-duration','0s');
$("#image_style_24_1635817636220 .item:last-child").prependTo($("#image_style_24_1635817636220 .wrap_ul")).addClass('zero');
$('#image_style_24_1635817636220 .item').css('transition-duration','1s');
setTimeout(function(){
$('#image_style_24_1635817636220 .item:nth-child(1)').addClass('normal_item').removeClass('zero hide_item');
$('#image_style_24_1635817636220 .item:nth-child(2)').removeClass('normal_item').addClass('center_item');
$('#image_style_24_1635817636220 .item:nth-child(3)').addClass('normal_item').removeClass('center_item');
$('#image_style_24_1635817636220 .item:nth-child(4)').removeClass('normal_item').addClass('hide_item');
},10);
setTimeout(function(){
canTurnimage_style_24_1635817636220=1;
},1010);
}
//=== viewid:image_style_24_1635817636220 ===//
$(document).ready(function(){
arrowShow();
$(window).resize(function(){
arrowShow();
});
// 绠ご鏄剧ず
function arrowShow(){
if(window.screen.width<767 || ($('body').width() > 0 && $('body').width() < 767) || navigator.userAgent.indexOf('Mac OS X') != -1){
$("#image_style_24_1635817636220 .controls_icon .awesome-font").show().siblings().hide();
}else{
$("#image_style_24_1635817636220 .controls_icon .awesome-font").hide().siblings().show();
}
}
});
//=== viewid:dh_style_03_1527932289411 ===//
/*pc,鎵嬫満鏄剧ず闅愯棌*/
function is_mobile(){
return window.screen.width<767 || ($('body').width() > 0 && $('body').width() < 767);
}
$(function(){
$("#dh_style_03_1527932289411 li").each(function(){
});
})
//=== viewid:copyright_style_01_1653372352279 ===//