$.fn.sub_banner = function(effect) {
let body = $("body");
if (isFrontEnv()) {
this.each(function() {
$(this).addClass("banner_text_effect");
let slide = $(this).find(".swiper-slide");
if(slide.length == 1) {
$(this).addClass("no-prev-next");
}
slide.first().addClass("swiper-slide-active");
$(this).addClass(effect || "fadeInUp");
$(this).find(".p_btitle").each(function() {
let text = $(this).text();
text = text.trim();
let text_array = text.split("");
let html = text_array.join("");
$(this).html(html);
});
$(this).find(".p_summary").each(function() {
let text = $(this).text();
text = text.trim();
let text_array = text.split("");
let html = text_array.join("");
$(this).html(html);
});
$(this).find("span").each(function(i) {
if (Math.random() > 0.3) {
$(this).css("animation-delay", (0.3 + Math.random()) + "s");
}
});
});
if (!body.hasClass("front")) {
setTimeout(a => {
body.addClass("front");
}, 100);
}
} else {
body.addClass("make");
}
};
$(a => {
// Ĭ��fadeIn $("ѡ����").sub_banner();
$("#c_banner_008_P_151-1675934493171").sub_banner("fadeInUp");
// ������: fadeInUp fadeInDown fadeInLeft fadeInRight
// $("#c_banner_019-1660963287521").sub_banner("fadeInRight");
});