$(function() {
var body = $("body");
if (isFrontEnv()) {
if($(window).width() < 768) {
return;
}
var cursor = $("
").addClass("cn-cursor");
cursor.append("
");
body.append(cursor);
var _cursor = cursor.get(0);
body.get(0).addEventListener("mousemove", function(e) {
_cursor.style.transform = "translate("+e.clientX+"px, "+e.clientY+"px)";
});
$("a,header .menuBtn,.pro_CateBox .catepicbox img").hover(function() {
cursor.addClass("cn-on cn-link");
}, function() {
cursor.removeClass("cn-on cn-link");
});
$("header .menuBox .hideBg,header .midline .closed,.md-overlay").hover(function() {
cursor.addClass("cn-on cn-close");
}, function() {
cursor.removeClass("cn-on cn-close");
});
$(".c_portalResProduct_category-16160835648470162_prev").hover(function() {
cursor.addClass("cn-on cn-prev");
}, function() {
cursor.removeClass("cn-on cn-prev");
});
$(".c_portalResProduct_category-16160835648470162_next").hover(function() {
cursor.addClass("cn-on cn-next");
}, function() {
cursor.removeClass("cn-on cn-next");
});
}
});
function scroll_ani() {
var window_height = $(window).height();
var body = $("body");
function handle() {
var t = $(window).scrollTop();
var w = $(".w-scroll-ani:not(.scrolled)");
w.each(function (i) {
var top = $(this).offset().top;
if (top < (window_height + t - 50)) {
setTimeout(function () {
$(this).addClass("scrolled");
}.bind(this), i * 100);
}
});
if (window_height + t + 50 >= body.height()) {
$(".w-scroll-ani:not(.scrolled)").each(function (i) {
var top = $(this).offset().top;
if (top > (body.height() - window_height)) {
setTimeout(function () {
$(this).addClass("scrolled");
}.bind(this), i * 100);
}
});
}
}
return {
add: function (a) {
$(a).addClass("w-scroll-ani");
return this.add;
},
init: function () {
this.add("div[id^='w_common_text-']");
this.add(".w_fimg-000");
this.add(".w_fbtn-001");
this.add(".w_ficon-001");
this.add(".w_fline-001");
this.add("div[class*='c_portalResProduct_detail']");
this.add(".c_portalResMessage_form-01001");
this.add(".c_portalResProduct_list-01001001 .PhotoList_k1 li");
this.add(".c_portalResIntro_detail-01001");
this.add(".w_fimgbox-001");
this.add(".c_portalResNews_list-01001 .newList");
this.add(".c_portalResNews_detail-01001 .p_header");
this.add(".c_portalResNews_detail-01001 .p_dataSource");
this.add(".c_portalResNews_detail-01001 .p_summary");
this.add(".c_portalResNews_detail-01001 .p_articles");
this.add(".c_portalResNews_detail-01001 .p_PrevAndNext");
this.add(".c_portalResProduct_list-01001");
this.add(".c_portalResNews_list-01001 .p_articles");
this.add(".c_portalResEmploy_list-01001 .jobList");
this.add(".c_portalResProduct_list-01001 .p_Product");
this.add(".c_portalResSearch_total-01001");
this.add(".c_portalResPublic_websiteShare-01001 .iShare a");
this.add(".c_portalResEbizads_banner-01001 .ad-tit");
this.add(".c_portalResEbizads_banner-01001 .ad-line");
this.add(".c_portalResEbizads_banner-01001 .ad-sum");
this.add(".c_portalResProduct_category-01001 .cn_cateItem");
this.add(".c_portalResComplaintPage_detail-01001 p");
this.add(".c_portalResComplaintPage_detail-01001 h2");
this.add(".c_portalResComplaintPage_detail-01001 a");
$(window).scroll(function () {
handle();
});
setTimeout(function () {
handle();
}, 500);
}
};
};
$(function () {
var body = $("body");
if (isFrontEnv()) {
body.addClass("wd");
var _sa = scroll_ani();
_sa.add(".c_portalResIntro_category-01001005");
_sa.add(".c_portalResIntro_category-01001005 .tit-area");
_sa.add(".c_portalResIntro_category-01001005 .section-about .solution-wrap a");
_sa.add(".c_portalResEbizads_banner-01001 .swiper-container");
_sa.add(".c_portalResEbizads_banner-01001 .zlcont");
_sa.add(".c_portalResEbizads_banner-01001");
_sa.add(".c_portalResEbizads_banner-01001 .bannerInfobox");
_sa.add(".c_portalResEbizads_banner-01001 .bannerInfoRim .bannerBy h1");
_sa.add(".c_portalResEbizads_banner-01001 .bannerInfoRim .itemTxt");
_sa.add(".c_portalResEbizads_banner-01001 .bannerInfoRim .btn_link");
_sa.add(".c_portalResNews_list-01001014 .tit-area");
_sa.add(".c_portalResNews_list-01001014 .newList");
_sa.add(".footNav .fNav ul li");
_sa.add("#w_grid-1614305903475");
_sa.add(".c_portalResIntro_detail-01001 .ccbox");
_sa.add(".tit-area");
_sa.add("#c_portalResProduct_list-16149266292915285 .swiper-slide");
_sa.add(".qyBox .qySlbox .col-xs-12");
_sa.add("#w_grid-1616483851611");
_sa.add("#c_portalResProduct_list-16159442463861645 .proCotent");
_sa.add(".shmily_cateBox .contitem");
_sa.add(".shmily_cateBox .contitem .info_rim");
_sa.add(".shmily_cateBox .contitem .info_rim > div h1");
_sa.add(".shmily_cateBox .contitem .info_rim > div .info_txt");
_sa.add(".cateProBox .cateF");
_sa.add(".cateProBox .cateF .cate__rim .col-xs-12");
_sa.add(".cnproBox .proUl .proLi .proIbox");
_sa.add(".proHot .swiper-slide");
_sa.add("#c_portalResPublic_codeContainer-16163982854651715 .e_box h2");
_sa.add(".cuntrim .col-xs-12");
_sa.add(".cn_cateBox .cncateRim ul li");
_sa.add(".mapBox");
_sa.add(".mapBox .title");
_sa.add(".mapBox .mapcont");
_sa.add(".factoryBox h2");
_sa.add(".factory___rim .contitem");
_sa.add(".newListBox .newList");
_sa.add(".p_OccupyBox");
_sa.add(".w_grid-001 > div > .p_gridbox > .p_gridCell");
_sa.add(".c_portalResPublic_mapReference-01001");
_sa.add(".c_portalResMessage_form-01001001 .p_inquiry");
_sa.add(".c_portalResProduct_detail-03001 .contactBox");
_sa.add(".c_portalResProduct_detail-03001 .d_DescriptionBoxA");
_sa.add(".c_portalResProduct_category-01001 .slide9");
_sa.init();
setTimeout(function () {
body.addClass("wd-show");
}, 500);
} else {
body.addClass("make");
}
});