(function() {
[].slice.call( document.querySelectorAll( '.tabs' ) ).forEach( function( el ) {
new CBPFWTabs( el );
});
})();
歐西官網(wǎng)
$("#prolist011").attr("href", $("#prolist01 #prolist001 div:eq(0)").find("a:eq(0)").attr("href"));
$("#prolist0011").attr("href", $("#prolist01 #prolist001 div:eq(0)").find("a:eq(0)").attr("href"));
$("#prolist01 #prolist001 .prolist0001").each(function() {
$(this).prev().attr("href", $(this).find("a:eq(0)").attr("href"));
});
$("#prolist021").attr("href", $("#prolist02 #prolist002 div:eq(0)").find("a:eq(0)").attr("href"));
$("#prolist0021").attr("href", $("#prolist02 #prolist002 div:eq(0)").find("a:eq(0)").attr("href"));
$("#prolist02 #prolist002 .prolist0002").each(function() {
$(this).prev().attr("href", $(this).find("a:eq(0)").attr("href"));
});
$("#prolist031").attr("href", $("#prolist03 #prolist003 div:eq(0)").find("a:eq(0)").attr("href"));
$("#prolist0031").attr("href", $("#prolist03 #prolist003 div:eq(0)").find("a:eq(0)").attr("href"));
$("#prolist03 #prolist003 .prolist0003").each(function() {
$(this).prev().attr("href", $(this).find("a:eq(0)").attr("href"));
});
$("#prolist051").attr("href", $("#prolist05 #prolist005").find("a:eq(1)").attr("href"));
$("#prolist0051").attr("href", $("#prolist05 #prolist005").find("a:eq(1)").attr("href"));
$(".TopcasesClasslist").each(function() {
$(this).find("a:first").attr("href", $(this).find("a:eq(1)").attr("href"));
});
$(".singleclasslist").each(function() {
$(this).find("a:first").attr("href", $(this).find("a:eq(1)").attr("href"));
});
$("#gongchengfangan .caselistfangan").each(function() {
$(this).prev().attr("href", $(this).find("a:eq(0)").attr("href"));
});
$("#gongchengfangan .singlefangan").each(function() {
$(this).prev().attr("href", $(this).find("a:eq(0)").attr("href"));
});
$("#singletechnology .singletechnology").each(function() {
$(this).prev().attr("href", $(this).find("a:eq(0)").attr("href"));
});
$("#twapprolist011").attr("href", $("#twapprolist01 #twapprolist001 .twapprolist0001").attr("href"));
$("#twapprolist01 #twapprolist001 .twapprolist0001").each(function() {
$(this).prev().attr("href", $(this).attr("href"));
});
$("#twapprolist021").attr("href", $("#twapprolist02 #twapprolist002 .twapprolist0002").attr("href"));
$("#twapprolist02 #twapprolist002 .twapprolist0002").each(function() {
$(this).prev().attr("href", $(this).attr("href"));
});
$("#twapprolist031").attr("href", $("#twapprolist03 #twapprolist003 .twapprolist0003").attr("href"));
$("#twapprolist03 #twapprolist003 .twapprolist0003").each(function() {
$(this).prev().attr("href", $(this).attr("href"));
});
$("#twapsingletechnology .twapsingletechnology").each(function() {
$(this).prev().attr("href", $(this).find("a:eq(0)").attr("href"));
});
$(".Twapcaseslistclass").each(function() {
$(this).find("a:first").attr("href", $(this).find("a:eq(1)").attr("href"));
});
$(".Twapcaseslistsingle").each(function() {
$(this).find("a:first").attr("href", $(this).find("a:eq(1)").attr("href"));
});
$(".banner-min").slick({
autoplay: true,
autoplaySpeed: 3000,
onInit: function() {
$(".banner-min").css("height", "auto");
}
})
$("#banner").slick({
lazyLoad: 'ondemand',
fade: true,
arrows: true,
autoplay: true,
autoplaySpeed: 5000
});
if ($(window).width() < 768) {
$(window).scroll(function() {
var windowTop = $(this).scrollTop();
var bannerHegight = $(".banner").height() + $("#pro-type-tab").height();
if (windowTop >= bannerHegight) {
$("#pro-type-tab").addClass("fixed");
} else {
$("#pro-type-tab").removeClass("fixed");
}
})
}
$(document).ready(function() {
$("#news-recommd-pic-list .recommd-items:first").attr("class", "recommd-items active");
$("#news-recommd-pic-list .recommd-items").click(function() {
$(this).addClass("active").siblings().removeClass("active");
})
$("#recommon-1,#recommon-2,#recommon-3,#recommon-4,#recommon-5").slick({
dots: true,
arrows: false,
autoplay: true,
autoplaySpeed: 3000
})
$("#service-article").slick({
autoplay: true,
autoplaySpeed: 3500
})
$("#pro-type-tab li").click(function() {
var index = $(this).index();
$("#recommon-1,#recommon-2,#recommon-3,#recommon-4,#recommon-5").slickGoTo(0);
$(this).addClass("active").siblings().removeClass("active");
$("#pro-type-cont .cont-item").eq(index).stop().fadeIn({
duration: 1000
}).siblings().stop().hide();
})
});
$(".float-job #close").click(function(){
$(this).closest('.float-job').hide();
});