$(function(){
var bgimg = $(".e_bannerA-2 .p_img img").attr("src");
if(bgimg){
$(".main").css("background","url("+ bgimg +") center no-repeat fixed");
$(".main").css("background-size","cover");
}
})
$(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)";
});
$("#c_static_001-1639409126741 .e_loop-2 .p_loopitem").hover(function() {
var newimg = $(this).find(".e_image-8 a img").attr("src");
if(newimg){
cursor.children("img").remove();
cursor.append("
");
cursor.addClass("cn-on cn-hover");
}
}, function() {
cursor.removeClass("cn-on cn-hover");
cursor.children("img").remove();
});
}
});