const appServerURL = "//apps.hyapps.com/"; var MorenvyBanner_AreaData = {"1da9":{"id":"1da9","name":"\uba54\uc778 : \ud31d\uc5c5","desc":"","displayType":"0","isActive":true,"createDate":"2022-12-02","bannerList":{"1669942106389":{"id":"1669942106389","name":"\uba54\uc778\ud31d\uc5c501","isActive":true,"displayType":0,"displayBeginTime":"2022-12-02 09:00:00","displayEndTime":"2022-12-02 15:00:00","html":"","img":[{"url":"https:\/\/ecudemo266774.cafe24.com\/web\/upload\/NNEditor\/20230127\/66acedd1e8f499369964ddb509ce6c27.png","type":2}],"link":[{"url":"\/product\/project.html?cate_no=57","openType":"_self"}],"AddOn":[""],"index":0},"1669942177046":{"id":"1669942177046","name":"\uba54\uc778\ud31d\uc5c502","isActive":false,"displayType":0,"displayBeginTime":"2022-12-02 09:00:00","displayEndTime":"2022-12-02 15:00:00","html":"","img":[{"url":"https:\/\/ecudemo266774.cafe24.com\/web\/upload\/NNEditor\/20230127\/754780f4961037f5c687705bc8a33ae3.png","type":2}],"link":[{"url":"\/product\/project.html?cate_no=57","openType":"_self"}],"AddOn":[""],"index":1}},"index":0},"2afe":{"id":"2afe","name":"\uba54\uc778 : \uba54\uc778\ube44\uc8fc\uc5bc","desc":"","displayType":"0","isActive":true,"createDate":"2022-12-02","bannerList":{"1669946481415":{"id":"1669946481415","name":"\uba54\uc778\ube44\uc8fc\uc5bc01","isActive":true,"displayType":0,"displayBeginTime":"2022-12-02 11:00:00","displayEndTime":"2022-12-02 11:00:00","html":"
\uc2e0\uaddc\uac00\uc785 & \uccab \uad6c\ub9e4<\/div>\n
2\ub9cc\uc6d0 \ucfe0\ud3f0\ud329
\uc989\uc2dc \uc9c0\uae09!<\/div>\n
\uc790\uc138\ud788 \ubcf4\uae30<\/div>","img":[{"url":"https:\/\/ecimg.cafe24img.com\/pg783b69323578017\/nrise200\/web\/upload\/NNEditor\/20240903\/55167734212adcdee734e45811cb323d.png","type":2}],"link":[{"url":"https:\/\/nrise200.cafe24.com\/skin-skin1\/article\/%EC%9D%B4%EB%B2%A4%ED%8A%B8\/8\/8\/page\/2\/categoryno\/1\/","openType":"_self"}],"AddOn":[""],"index":1,"repeatBeginTime":"2000-01-01 00:00:00","repeatEndTime":"2000-01-01 00:00:00","repeatType":"day","repeatData":{"day":"1","week":{"everyW":"1","everyD":0},"month":{"everyM":"1","month_type":"month_day","month_day":"1","month_week_everyW":"1","month_week_everyD":"7"}},"videoUrl":[{"url":"","ratioX":16,"ratioY":9,"autoPlay":false}]},"1669946568658":{"id":"1669946568658","name":"\uba54\uc778\ube44\uc8fc\uc5bc02","isActive":false,"displayType":1,"displayBeginTime":"2024-07-25 10:00:00","displayEndTime":"2024-07-26 00:00:00","html":"
\uc624\ub298 \ub2e8 \ud558\ub8e8!<\/div>\n
\ud398\uc774\ucf54 \uacb0\uc81c \uc2dc
13% \ud560\uc778!<\/div>\n
\uc790\uc138\ud788 \ubcf4\uae30<\/div>","img":[{"url":"https:\/\/ecimg.cafe24img.com\/pg783b69323578017\/nrise200\/web\/upload\/NNEditor\/20240724\/b107c39426c852792dee31e978f344f3.png","type":2}],"link":[{"url":"https:\/\/events.payco.com\/web\/share.nhn?evntPageNm=8dwdT9B&pubCode=PUBSTJUOE9","openType":"_blank"}],"AddOn":[""],"index":3,"repeatBeginTime":"2000-01-01 00:00:00","repeatEndTime":"2000-01-01 00:00:00","repeatType":"day","repeatData":{"day":"1","week":{"everyW":"1","everyD":0},"month":{"everyM":"1","month_type":"month_day","month_day":"1","month_week_everyW":"1","month_week_everyD":"7"}},"videoUrl":[{"url":"","ratioX":16,"ratioY":9,"autoPlay":false}]},"1669946569610":{"id":"1669946569610","name":"\uba54\uc778\ube44\uc8fc\uc5bc03","isActive":false,"displayType":1,"displayBeginTime":"2024-07-22 10:00:00","displayEndTime":"2024-08-04 23:59:00","html":"
\uc0d0\ub7ec\ub4dc \uad6c\ub9e4 \uc2dc<\/div>\n
\uc2dd\uc774\uc12c\uc720\ub97c \ub354\ud55c \ucc28
'\ub354\ud558\ub2e4' \uc99d\uc815!<\/div>\n
\uc790\uc138\ud788 \ubcf4\uae30<\/div>","img":[{"url":"https:\/\/ecimg.cafe24img.com\/pg783b69323578017\/nrise200\/web\/upload\/NNEditor\/20240719\/c2db31e6f077796f3f28f4c27f87b033.png","type":2},{"url":"","type":0}],"link":[{"url":"https:\/\/nrise200.cafe24.com\/article\/%EC%9D%B4%EB%B2%A4%ED%8A%B8\/8\/1013\/","openType":"_self"}],"AddOn":[""],"index":4,"repeatBeginTime":"2000-01-01 00:00:00","repeatEndTime":"2000-01-01 00:00:00","repeatType":"day","repeatData":{"day":"1","week":{"everyW":"1","everyD":0},"month":{"everyM":"1","month_type":"month_day","month_day":"1","month_week_everyW":"1","month_week_everyD":"7"}},"videoUrl":[{"url":"","ratioX":16,"ratioY":9,"autoPlay":false}]},"1673406003750":{"id":"1673406003750","name":"\uba54\uc778\ube44\uc8fc\uc5bc04","isActive":false,"displayType":0,"displayBeginTime":"2022-12-02 11:00:00","displayEndTime":"2022-12-02 11:00:00","html":"
\uc774\ub807\uac8c \ub2ec\ub77c\uc84c\uc5b4\uc694!<\/div>\n
\uc0c8\ub85c\uc6cc\uc9c4
\ud504\ub808\uc2dc\ucf54\ub4dc<\/div>\n
\uc790\uc138\ud788 \ubcf4\uae30<\/div>","img":[{"url":"https:\/\/ecimg.cafe24img.com\/pg783b69323578017\/nrise200\/web\/upload\/NNEditor\/20240524\/891c4534908e22a84a8b6acbe4aa61e9.png","type":2}],"link":[{"url":"https:\/\/freshcode.co.kr\/article\/%EC%9D%B4%EB%B2%A4%ED%8A%B8\/8\/475","openType":"_self"}],"AddOn":[""],"index":6,"repeatBeginTime":"2000-01-01 00:00:00","repeatEndTime":"2000-01-01 00:00:00","repeatType":"day","repeatData":{"day":"1","week":{"everyW":"1","everyD":0},"month":{"everyM":"1","month_type":"month_day","month_day":"1","month_week_everyW":"1","month_week_everyD":"7"}},"videoUrl":[{"url":"","ratioX":16,"ratioY":9,"autoPlay":false}]},"1721022923295":{"id":"1721022923295","name":"\uc2e0\uc81c\ud488 \ub7f0\uce6d_\ud0c0\ucf54\uc0d0\ub7ec\ub4dc","isActive":false,"displayType":0,"displayBeginTime":"2024-07-15 14:00:00","displayEndTime":"2024-07-15 14:00:00","html":"
\uc2e0\uc81c\ud488 \ub7f0\uce6d<\/div>\n
\uba55\uc2dc\uce78 \uc2a4\ud0c0\uc77c
\ud0c0\ucf54 \uc0d0\ub7ec\ub4dc 6\uc885<\/div>\n
\uad6c\uacbd\ud558\uae30<\/div>","img":[{"url":"https:\/\/ecimg.cafe24img.com\/pg783b69323578017\/nrise200\/web\/upload\/NNEditor\/20240715\/29009901ccd15c85b1d8d7180091f0b8.png","type":2}],"link":[{"url":"https:\/\/freshcode.co.kr\/product\/search.html?banner_action=&keyword=%ED%83%80%EC%BD%94","openType":"_self"}],"AddOn":[""],"index":5,"repeatBeginTime":"2000-01-01 00:00:00","repeatEndTime":"2000-01-01 00:00:00","repeatType":"day","repeatData":{"day":"1","week":{"everyW":"1","everyD":0},"month":{"everyM":"1","month_type":"month_day","month_day":"1","month_week_everyW":"1","month_week_everyD":"7"}},"videoUrl":[{"url":"","ratioX":16,"ratioY":9,"autoPlay":false}]},"1721896252582":{"id":"1721896252582","name":"\b\uba64\ubc84\uc2ed \uc548\ub0b4","isActive":true,"displayType":0,"displayBeginTime":"2024-07-26 00:00:00","displayEndTime":"2024-08-04 23:59:00","html":"
\uc990\uae38\uc218\ub85d \ub354 \ucee4\uc9c0\ub294 \ud61c\ud0dd<\/div>\n
\ud504\ub808\uc2dc\ucf54\ub4dc
\uba64\ubc84\uc2ed \ud61c\ud0dd \uc624\ud508!<\/div>\n
\uc790\uc138\ud788 \ubcf4\uae30<\/div>","img":[{"url":"https:\/\/ecimg.cafe24img.com\/pg783b69323578017\/nrise200\/web\/upload\/NNEditor\/20240829\/54b4d47ee772cca93b23df703c2507cf.png","type":2}],"link":[{"url":"https:\/\/nrise200.cafe24.com\/skin-skin1\/article\/%EC%9D%B4%EB%B2%A4%ED%8A%B8\/8\/1230\/categoryno\/1\/","openType":"_self"}],"AddOn":[""],"index":2,"repeatBeginTime":"2000-01-01 00:00:00","repeatEndTime":"2000-01-01 00:00:00","repeatType":"day","repeatData":{"day":"1","week":{"everyW":"1","everyD":0},"month":{"everyM":"1","month_type":"month_day","month_day":"1","month_week_everyW":"1","month_week_everyD":"7"}},"videoUrl":[{"url":"","ratioX":16,"ratioY":9,"autoPlay":false}]},"1723625608012":{"id":"1723625608012","name":"8\uc6d4 \uc99d\uc815\uc774\ubca4\ud2b8","isActive":false,"displayType":1,"displayBeginTime":"2024-08-16 09:00:00","displayEndTime":"2024-08-26 23:50:00","html":"
\uc2dd\ub2e8\uad00\ub9ac \uc751\uc6d0 \uc774\ubca4\ud2b8<\/div>\n
\uc2a4\ub9c8\ud2b8 \uccb4\uc911\uacc4 \uc99d\uc815
&\ud560\uc778 \ucfe0\ud3f0\uae4c\uc9c0!<\/div>\n
\ubcf4\ub7ec\uac00\uae30<\/div>","img":[{"url":"https:\/\/ecimg.cafe24img.com\/pg783b69323578017\/nrise200\/web\/upload\/NNEditor\/20240814\/4796b821247f88d63761f3f3be1e0645.png","type":2}],"link":[{"url":"https:\/\/freshcode.co.kr\/article\/%EC%9D%B4%EB%B2%A4%ED%8A%B8\/8\/1192","openType":"_self"}],"AddOn":[""],"index":0,"repeatBeginTime":"2000-01-01 00:00:00","repeatEndTime":"2000-01-01 00:00:00","repeatType":"day","repeatData":{"day":"1","week":{"everyW":"1","everyD":0},"month":{"everyM":"1","month_type":"month_day","month_day":"1","month_week_everyW":"1","month_week_everyD":"7"}},"videoUrl":[{"url":"","ratioX":16,"ratioY":9,"autoPlay":false}]}},"index":1},"7a9a":{"id":"7a9a","name":"\uba54\uc778 : \uce74\ud14c\uace0\ub9ac ","desc":"","displayType":"0","isActive":true,"createDate":"2022-12-02","bannerList":{"1669946622462":{"id":"1669946622462","name":"\uc2e0\uaddc\uac00\uc785 \ud61c\ud0dd","isActive":true,"displayType":0,"displayBeginTime":"2022-12-02 11:00:00","displayEndTime":"2022-12-02 11:00:00","html":"","img":[{"url":"https:\/\/ecimg.cafe24img.com\/pg783b69323578017\/nrise200\/web\/upload\/NNEditor\/20240903\/e295b1cdaf4efbbb5ee0235bd7b18f4a.png","type":2}],"link":[{"url":"https:\/\/nrise200.cafe24.com\/skin-skin1\/article\/%EC%9D%B4%EB%B2%A4%ED%8A%B8\/8\/8\/page\/2\/categoryno\/1\/","openType":"_self"}],"AddOn":[""],"index":0,"repeatBeginTime":"2000-01-01 00:00:00","repeatEndTime":"2000-01-01 00:00:00","repeatType":"day","repeatData":{"day":"1","week":{"everyW":"1","everyD":0},"month":{"everyM":"1","month_type":"month_day","month_day":"1","month_week_everyW":"1","month_week_everyD":"7"}},"videoUrl":[{"url":"","ratioX":16,"ratioY":9,"autoPlay":false}]},"1669946657088":{"id":"1669946657088","name":"\uc815\uae30\ubc30\uc1a1","isActive":true,"displayType":0,"displayBeginTime":"2022-12-02 11:00:00","displayEndTime":"2022-12-02 11:00:00","html":"","img":[{"url":"https:\/\/ecimg.cafe24img.com\/pg783b69323578017\/nrise200\/web\/upload\/NNEditor\/20240309\/257bf602599e4a59e9877f89356ecfd2.png","type":2}],"link":[{"url":"https:\/\/freshcode.co.kr\/product\/project.html?cate_no=42","openType":"_self"}],"AddOn":[""],"index":2,"repeatBeginTime":"2000-01-01 00:00:00","repeatEndTime":"2000-01-01 00:00:00","repeatType":"day","repeatData":{"day":"1","week":{"everyW":"1","everyD":0},"month":{"everyM":"1","month_type":"month_day","month_day":"1","month_week_everyW":"1","month_week_everyD":"7"}},"videoUrl":[{"url":"","ratioX":16,"ratioY":9,"autoPlay":false}]},"1669946657352":{"id":"1669946657352","name":"19\uc885 \uace8\ub77c\ub2f4\uae30","isActive":true,"displayType":0,"displayBeginTime":"2022-12-02 11:00:00","displayEndTime":"2022-12-02 11:00:00","html":"","img":[{"url":"https:\/\/ecimg.cafe24img.com\/pg783b69323578017\/nrise200\/web\/upload\/NNEditor\/20240715\/a0d927df5ebaab11ee49ce6df03a0683.png","type":2}],"link":[{"url":"https:\/\/freshcode.co.kr\/product\/%EC%83%90%EB%9F%AC%EB%93%9C-12%EC%A2%85-%EA%B3%A8%EB%9D%BC%EB%8B%B4%EA%B8%B0\/28\/category\/26\/display\/1\/","openType":"_self"}],"AddOn":[""],"index":3,"repeatBeginTime":"2000-01-01 00:00:00","repeatEndTime":"2000-01-01 00:00:00","repeatType":"day","repeatData":{"day":"1","week":{"everyW":"1","everyD":0},"month":{"everyM":"1","month_type":"month_day","month_day":"1","month_week_everyW":"1","month_week_everyD":"7"}},"videoUrl":[{"url":"","ratioX":16,"ratioY":9,"autoPlay":false}]},"1669946657552":{"id":"1669946657552","name":"\uccab\uad6c\ub9e4 \ubca0\uc2a4\ud2b8","isActive":true,"displayType":0,"displayBeginTime":"2022-12-02 11:00:00","displayEndTime":"2022-12-02 11:00:00","html":"","img":[{"url":"https:\/\/ecimg.cafe24img.com\/pg783b69323578017\/nrise200\/web\/upload\/NNEditor\/20240730\/f3c9453eac36585c90770ff2d70b578d.png","type":2}],"link":[{"url":"https:\/\/freshcode.co.kr\/product\/%EC%B2%AB%EA%B5%AC%EB%A7%A4%EC%A0%84%EC%9A%A9-%EC%83%90%EB%9F%AC%EB%93%9C-%EB%B2%A0%EC%8A%A4%ED%8A%B8-4%EC%A2%85-4%ED%8C%A9\/128\/category\/1\/display\/2\/","openType":"_self"}],"AddOn":[""],"index":4,"repeatBeginTime":"2000-01-01 00:00:00","repeatEndTime":"2000-01-01 00:00:00","repeatType":"day","repeatData":{"day":"1","week":{"everyW":"1","everyD":0},"month":{"everyM":"1","month_type":"month_day","month_day":"1","month_week_everyW":"1","month_week_everyD":"7"}},"videoUrl":[{"url":"","ratioX":16,"ratioY":9,"autoPlay":false}]},"1669946657760":{"id":"1669946657760","name":"\ud50c\uce5c\ucfe0\ud3f0","isActive":false,"displayType":0,"displayBeginTime":"2022-12-02 11:00:00","displayEndTime":"2022-12-02 11:00:00","html":"","img":[{"url":"https:\/\/ecimg.cafe24img.com\/pg783b69323578017\/nrise200\/web\/upload\/NNEditor\/20240816\/6b66a5f9b6bebfcd7906e23de7b13872.png","type":2}],"link":[{"url":"http:\/\/pf.kakao.com\/_sFrxaG","openType":"_blank"}],"AddOn":[""],"index":1,"repeatBeginTime":"2000-01-01 00:00:00","repeatEndTime":"2000-01-01 00:00:00","repeatType":"day","repeatData":{"day":"1","week":{"everyW":"1","everyD":0},"month":{"everyM":"1","month_type":"month_day","month_day":"1","month_week_everyW":"1","month_week_everyD":"7"}},"videoUrl":[{"url":"","ratioX":16,"ratioY":9,"autoPlay":false}]},"1669946657944":{"id":"1669946657944","name":"\ubd84\uc2dd\u00b7\ud280\uae40","isActive":false,"displayType":0,"displayBeginTime":"2022-12-02 11:00:00","displayEndTime":"2022-12-02 11:00:00","html":"","img":[{"url":"https:\/\/ecudemo266774.cafe24.com\/web\/upload\/NNEditor\/20230127\/b538c3be60b66f05e13354be479eb7f8.png","type":2}],"link":[{"url":"","openType":"_self"}],"AddOn":[""],"index":5,"repeatBeginTime":"2000-01-01 00:00:00","repeatEndTime":"2000-01-01 00:00:00","repeatType":"day","repeatData":{"day":"1","week":{"everyW":"1","everyD":0},"month":{"everyM":"1","month_type":"month_day","month_day":"1","month_week_everyW":"1","month_week_everyD":"7"}},"videoUrl":[{"url":"","ratioX":16,"ratioY":9,"autoPlay":false}]},"1673407407273":{"id":"1673407407273","name":"\ubc18\ucc2c\u00b7\uc18c\uc2a4","isActive":false,"displayType":0,"displayBeginTime":"2022-12-02 11:00:00","displayEndTime":"2022-12-02 11:00:00","html":"","img":[{"url":"https:\/\/ecudemo266774.cafe24.com\/web\/upload\/NNEditor\/20230127\/b13797ba9b1487d86b393ea3891bf665.png","type":2}],"link":[{"url":"","openType":"_self"}],"AddOn":[""],"index":6,"repeatBeginTime":"2000-01-01 00:00:00","repeatEndTime":"2000-01-01 00:00:00","repeatType":"day","repeatData":{"day":"1","week":{"everyW":"1","everyD":0},"month":{"everyM":"1","month_type":"month_day","month_day":"1","month_week_everyW":"1","month_week_everyD":"7"}},"videoUrl":[{"url":"","ratioX":16,"ratioY":9,"autoPlay":false}]},"1673407408113":{"id":"1673407408113","name":"\ubca0\uc774\ucee4\ub9ac","isActive":false,"displayType":0,"displayBeginTime":"2022-12-02 11:00:00","displayEndTime":"2022-12-02 11:00:00","html":"","img":[{"url":"https:\/\/ecudemo266774.cafe24.com\/web\/upload\/NNEditor\/20230127\/3b27090b4cce57a50f13c3420fbf9072.png","type":2}],"link":[{"url":"","openType":"_self"}],"AddOn":[""],"index":7,"repeatBeginTime":"2000-01-01 00:00:00","repeatEndTime":"2000-01-01 00:00:00","repeatType":"day","repeatData":{"day":"1","week":{"everyW":"1","everyD":0},"month":{"everyM":"1","month_type":"month_day","month_day":"1","month_week_everyW":"1","month_week_everyD":"7"}},"videoUrl":[{"url":"","ratioX":16,"ratioY":9,"autoPlay":false}]},"1673407408394":{"id":"1673407408394","name":"\uc815\uc721\u00b7\uc218\uc0b0","isActive":false,"displayType":0,"displayBeginTime":"2022-12-02 11:00:00","displayEndTime":"2022-12-02 11:00:00","html":"","img":[{"url":"https:\/\/ecudemo266774.cafe24.com\/web\/upload\/NNEditor\/20230127\/b287c932d9c0864c2fe01f932f54d234.png","type":2}],"link":[{"url":"","openType":"_self"}],"AddOn":[""],"index":8,"repeatBeginTime":"2000-01-01 00:00:00","repeatEndTime":"2000-01-01 00:00:00","repeatType":"day","repeatData":{"day":"1","week":{"everyW":"1","everyD":0},"month":{"everyM":"1","month_type":"month_day","month_day":"1","month_week_everyW":"1","month_week_everyD":"7"}},"videoUrl":[{"url":"","ratioX":16,"ratioY":9,"autoPlay":false}]},"1673407408602":{"id":"1673407408602","name":"\uac04\ud3b8\uc694\ub9ac","isActive":false,"displayType":0,"displayBeginTime":"2022-12-02 11:00:00","displayEndTime":"2022-12-02 11:00:00","html":"","img":[{"url":"https:\/\/ecudemo266774.cafe24.com\/web\/upload\/NNEditor\/20230127\/16208e419a12c9ffa1b0567173fcab9e.png","type":2}],"link":[{"url":"","openType":"_self"}],"AddOn":[""],"index":9,"repeatBeginTime":"2000-01-01 00:00:00","repeatEndTime":"2000-01-01 00:00:00","repeatType":"day","repeatData":{"day":"1","week":{"everyW":"1","everyD":0},"month":{"everyM":"1","month_type":"month_day","month_day":"1","month_week_everyW":"1","month_week_everyD":"7"}},"videoUrl":[{"url":"","ratioX":16,"ratioY":9,"autoPlay":false}]},"1673407408835":{"id":"1673407408835","name":"\ube44\uac74\u00b7\ucc44\uc2dd","isActive":false,"displayType":0,"displayBeginTime":"2022-12-02 11:00:00","displayEndTime":"2022-12-02 11:00:00","html":"","img":[{"url":"https:\/\/ecudemo266774.cafe24.com\/web\/upload\/NNEditor\/20230127\/c4901aab8f931cce948444b5b3eb5dfa.png","type":2}],"link":[{"url":"","openType":"_self"}],"AddOn":[""],"index":10,"repeatBeginTime":"2000-01-01 00:00:00","repeatEndTime":"2000-01-01 00:00:00","repeatType":"day","repeatData":{"day":"1","week":{"everyW":"1","everyD":0},"month":{"everyM":"1","month_type":"month_day","month_day":"1","month_week_everyW":"1","month_week_everyD":"7"}},"videoUrl":[{"url":"","ratioX":16,"ratioY":9,"autoPlay":false}]},"1673407415123":{"id":"1673407415123","name":"\ud648\u00b7\ub9ac\ube59","isActive":false,"displayType":0,"displayBeginTime":"2022-12-02 11:00:00","displayEndTime":"2022-12-02 11:00:00","html":"","img":[{"url":"https:\/\/ecudemo266774.cafe24.com\/web\/upload\/NNEditor\/20230127\/94115c8a7278c540f72af31442ac2f92.png","type":2}],"link":[{"url":"","openType":"_self"}],"AddOn":[""],"index":11,"repeatBeginTime":"2000-01-01 00:00:00","repeatEndTime":"2000-01-01 00:00:00","repeatType":"day","repeatData":{"day":"1","week":{"everyW":"1","everyD":0},"month":{"everyM":"1","month_type":"month_day","month_day":"1","month_week_everyW":"1","month_week_everyD":"7"}},"videoUrl":[{"url":"","ratioX":16,"ratioY":9,"autoPlay":false}]}},"index":3},"54bb":{"id":"54bb","name":"\uba54\uc778 : \uc774\ubca4\ud2b8 \ubc30\ub108","desc":"","displayType":"0","isActive":true,"createDate":"2022-12-02","bannerList":{"1669946703801":{"id":"1669946703801","name":"\uba54\uc778 \uc774\ubca4\ud2b8 \ubc30\ub10801","isActive":true,"displayType":0,"displayBeginTime":"2022-12-02 11:00:00","displayEndTime":"2022-12-02 11:00:00","html":"
\uc785\ub9db \ub530\ub77c \ucde8\ud5a5 \ub530\ub77c<\/div>\n
12\uc885 \uace8\ub77c\ub2f4\uae30<\/div>","img":[{"url":"https:\/\/ecimg.cafe24img.com\/pg783b69323578017\/nrise200\/web\/upload\/NNEditor\/20240204\/c122b99a95752d0dcbbb51736a6f9b25.png","type":2}],"link":[{"url":"https:\/\/freshcode.co.kr\/product\/%EC%83%90%EB%9F%AC%EB%93%9C-12%EC%A2%85-%EA%B3%A8%EB%9D%BC%EB%8B%B4%EA%B8%B0\/28\/category\/1\/display\/2\/","openType":"_self"}],"AddOn":[""],"index":0},"1669946719890":{"id":"1669946719890","name":"\uba54\uc778 \uc774\ubca4\ud2b8 \ubc30\ub10802","isActive":true,"displayType":0,"displayBeginTime":"2022-12-02 11:00:00","displayEndTime":"2022-12-02 11:00:00","html":"
\ub9e4\uc8fc \uc9d1 \uc55e\uc73c\ub85c 5\ud329<\/div>\n
2, 4\uc8fc \uc815\uae30\ubc30\uc1a1<\/div>","img":[{"url":"https:\/\/ecimg.cafe24img.com\/pg783b69323578017\/nrise200\/web\/upload\/NNEditor\/20240218\/e55d99b91315b8baba9d0ef5713ec058.png","type":2}],"link":[{"url":"https:\/\/freshcode.co.kr\/product\/project.html?cate_no=42","openType":"_self"}],"AddOn":[""],"index":1}},"index":2},"c3d9":{"id":"c3d9","name":"\uba54\uc778 : \ucd94\ucc9c \ud0a4\uc6cc\ub4dc","desc":"","displayType":"0","isActive":true,"createDate":"2022-12-02","bannerList":{"1669946889744":{"id":"1669946889744","name":"\b\ud0c0\ucf54\uc0d0\ub7ec\ub4dc","isActive":true,"displayType":0,"displayBeginTime":"2022-12-02 11:00:00","displayEndTime":"2022-12-02 11:00:00","html":"","img":[{"url":"","type":0}],"link":[{"url":"\/product\/search.html?keyword=\ud0c0\ucf54&x=0&y=0","openType":"_self"}],"AddOn":[""],"index":0,"repeatBeginTime":"2000-01-01 00:00:00","repeatEndTime":"2000-01-01 00:00:00","repeatType":"day","repeatData":{"day":"1","week":{"everyW":"1","everyD":0},"month":{"everyM":"1","month_type":"month_day","month_day":"1","month_week_everyW":"1","month_week_everyD":"7"}},"videoUrl":[{"url":"","ratioX":16,"ratioY":9,"autoPlay":false}]},"1669946895873":{"id":"1669946895873","name":"\uc815\uae30\ubc30\uc1a1","isActive":true,"displayType":0,"displayBeginTime":"2022-12-02 11:00:00","displayEndTime":"2022-12-02 11:00:00","html":"","img":[{"url":"","type":0}],"link":[{"url":"\/product\/project.html?cate_no=42","openType":"_self"}],"AddOn":[""],"index":1,"repeatBeginTime":"2000-01-01 00:00:00","repeatEndTime":"2000-01-01 00:00:00","repeatType":"day","repeatData":{"day":"1","week":{"everyW":"1","everyD":0},"month":{"everyM":"1","month_type":"month_day","month_day":"1","month_week_everyW":"1","month_week_everyD":"7"}},"videoUrl":[{"url":"","ratioX":16,"ratioY":9,"autoPlay":false}]},"1669946896395":{"id":"1669946896395","name":"\uce74\ud504\ub808\uc81c","isActive":true,"displayType":0,"displayBeginTime":"2022-12-02 11:00:00","displayEndTime":"2022-12-02 11:00:00","html":"","img":[{"url":"","type":0}],"link":[{"url":"\/product\/search.html?banner_action=&keyword=\uce74\ud504\ub808\uc81c","openType":"_self"}],"AddOn":[""],"index":2,"repeatBeginTime":"2000-01-01 00:00:00","repeatEndTime":"2000-01-01 00:00:00","repeatType":"day","repeatData":{"day":"1","week":{"everyW":"1","everyD":0},"month":{"everyM":"1","month_type":"month_day","month_day":"1","month_week_everyW":"1","month_week_everyD":"7"}},"videoUrl":[{"url":"","ratioX":16,"ratioY":9,"autoPlay":false}]},"1669946896601":{"id":"1669946896601","name":"\uc544\ubcf4\uce74\ub3c4","isActive":true,"displayType":0,"displayBeginTime":"2022-12-02 11:00:00","displayEndTime":"2022-12-02 11:00:00","html":"","img":[{"url":"","type":0}],"link":[{"url":"\/product\/search.html?banner_action=&keyword=\uc544\ubcf4\uce74\ub3c4","openType":"_self"}],"AddOn":[""],"index":3,"repeatBeginTime":"2000-01-01 00:00:00","repeatEndTime":"2000-01-01 00:00:00","repeatType":"day","repeatData":{"day":"1","week":{"everyW":"1","everyD":0},"month":{"everyM":"1","month_type":"month_day","month_day":"1","month_week_everyW":"1","month_week_everyD":"7"}},"videoUrl":[{"url":"","ratioX":16,"ratioY":9,"autoPlay":false}]},"1673417639301":{"id":"1673417639301","name":"\ud504\ub85c\ud2f4 \uadf8\ub798\ub180\ub77c","isActive":true,"displayType":0,"displayBeginTime":"2023-01-11 15:00:00","displayEndTime":"2023-01-11 15:00:00","html":"","img":[{"url":"","type":0}],"link":[{"url":"\/product\/search.html?keyword=\ud504\ub85c\ud2f4 \uadf8\ub798\ub180\ub77c&x=21&y=17","openType":"_self"}],"AddOn":[""],"index":4,"repeatBeginTime":"2000-01-01 00:00:00","repeatEndTime":"2000-01-01 00:00:00","repeatType":"day","repeatData":{"day":"1","week":{"everyW":"1","everyD":0},"month":{"everyM":"1","month_type":"month_day","month_day":"1","month_week_everyW":"1","month_week_everyD":"7"}},"videoUrl":[{"url":"","ratioX":16,"ratioY":9,"autoPlay":false}]},"1673417648494":{"id":"1673417648494","name":"\ud478\ub8ec\ubc14\ub098\ub098","isActive":true,"displayType":0,"displayBeginTime":"2023-01-11 15:00:00","displayEndTime":"2023-01-11 15:00:00","html":"","img":[{"url":"","type":0}],"link":[{"url":"\/product\/search.html?keyword=\ud478\ub8ec\ubc14\ub098\ub098&x=0&y=0","openType":"_self"}],"AddOn":[""],"index":5,"repeatBeginTime":"2000-01-01 00:00:00","repeatEndTime":"2000-01-01 00:00:00","repeatType":"day","repeatData":{"day":"1","week":{"everyW":"1","everyD":0},"month":{"everyM":"1","month_type":"month_day","month_day":"1","month_week_everyW":"1","month_week_everyD":"7"}},"videoUrl":[{"url":"","ratioX":16,"ratioY":9,"autoPlay":false}]},"1673417656606":{"id":"1673417656606","name":"\ub9ac\ucf54\ud0c0\ub2ed\uac00\uc2b4\uc0b4","isActive":true,"displayType":0,"displayBeginTime":"2023-01-11 15:00:00","displayEndTime":"2023-01-11 15:00:00","html":"","img":[{"url":"","type":0}],"link":[{"url":"\/product\/search.html?keyword=\ub9ac\ucf54\ud0c0\ub2ed\uac00\uc2b4\uc0b4&x=0&y=0","openType":"_self"}],"AddOn":[""],"index":6,"repeatBeginTime":"2000-01-01 00:00:00","repeatEndTime":"2000-01-01 00:00:00","repeatType":"day","repeatData":{"day":"1","week":{"everyW":"1","everyD":0},"month":{"everyM":"1","month_type":"month_day","month_day":"1","month_week_everyW":"1","month_week_everyD":"7"}},"videoUrl":[{"url":"","ratioX":16,"ratioY":9,"autoPlay":false}]},"1673417663062":{"id":"1673417663062","name":"\uc544\uc784\ub2ed","isActive":false,"displayType":0,"displayBeginTime":"2023-01-11 15:00:00","displayEndTime":"2023-01-11 15:00:00","html":"","img":[{"url":"","type":0}],"link":[{"url":"\/product\/search.html?keyword=\uc544\uc784\ub2ed&x=0&y=0","openType":"_self"}],"AddOn":[""],"index":7,"repeatBeginTime":"2000-01-01 00:00:00","repeatEndTime":"2000-01-01 00:00:00","repeatType":"day","repeatData":{"day":"1","week":{"everyW":"1","everyD":0},"month":{"everyM":"1","month_type":"month_day","month_day":"1","month_week_everyW":"1","month_week_everyD":"7"}},"videoUrl":[{"url":"","ratioX":16,"ratioY":9,"autoPlay":false}]}},"index":4},"43b3":{"id":"43b3","name":"\uba54\uc778 : \uc2a4\uc640\uc774\ud504 \ubc30\ub108","desc":"","displayType":"0","isActive":true,"createDate":"2022-12-02","bannerList":{"1669947352274":{"id":"1669947352274","name":"\ucfe1\uc787\ud3ec\ucc28","isActive":true,"displayType":0,"displayBeginTime":"2022-12-02 11:00:00","displayEndTime":"2022-12-02 11:00:00","html":"
\ucd9c\ucd9c\ud560\ub54c \uc0dd\uac01\ub098\ub294 \ucfe1\uc787\uba54\uc774\ub4dc
\uc57c\uc2dd \uc804\ubb38 \ube0c\ub79c\ub4dc<\/div>","img":[{"url":"https:\/\/ecudemo266774.cafe24.com\/web\/upload\/NNEditor\/20230127\/511c50f8f03a3b0d046971d050b365e9.png","type":2}],"link":[{"url":"","openType":"_self"}],"AddOn":[""],"index":0},"1669947390277":{"id":"1669947390277","name":"\ucfe1\uc787\ubd84\uc2dd","isActive":true,"displayType":0,"displayBeginTime":"2022-12-02 11:00:00","displayEndTime":"2022-12-02 11:00:00","html":"
\ucd9c\ucd9c\ud560\ub54c \uc0dd\uac01\ub098\ub294 \ucfe1\uc787\uba54\uc774\ub4dc
\uc57c\uc2dd \uc804\ubb38 \ube0c\ub79c\ub4dc<\/div>","img":[{"url":"https:\/\/ecudemo266774.cafe24.com\/web\/upload\/NNEditor\/20230127\/00cede83f86f631cd5e0751fb5f02359.png","type":2}],"link":[{"url":"","openType":"_self"}],"AddOn":[""],"index":1},"1669947390830":{"id":"1669947390830","name":"\ucfe1\uc787\ud3ec\ucc28","isActive":true,"displayType":0,"displayBeginTime":"2022-12-02 11:00:00","displayEndTime":"2022-12-02 11:00:00","html":"
\ucd9c\ucd9c\ud560\ub54c \uc0dd\uac01\ub098\ub294 \ucfe1\uc787\uba54\uc774\ub4dc
\uc57c\uc2dd \uc804\ubb38 \ube0c\ub79c\ub4dc<\/div>","img":[{"url":"https:\/\/ecudemo266774.cafe24.com\/web\/upload\/NNEditor\/20230127\/982fc5a70f7e83849838ec84beaa3229.png","type":2}],"link":[{"url":"","openType":"_self"}],"AddOn":[""],"index":2}},"index":5},"6d87":{"id":"6d87","name":"\uba54\uc778 : \uc720\ud29c\ube0c","desc":"","displayType":"0","isActive":true,"createDate":"2022-12-02","bannerList":{"1669947207369":{"id":"1669947207369","name":"dSAqBBUeQDk","isActive":true,"displayType":0,"displayBeginTime":"2022-12-02 11:00:00","displayEndTime":"2022-12-02 11:00:00","html":"
\ucd94\uc6b8\ub54c\ub294 \ub530\ub73b\ud55c \uac00\ub9c8\ubcf4\uaf2c \uc5b4\ubb35\uc804\uace8<\/div>\n
#\ucfe1\uc787\ub9c8\ucf13 #\uc5b4\ubb35\uc804\uace8 #\uac00\ub9c8\ubcf4\uaf2c<\/div>","img":[{"url":"https:\/\/ecudemo266774.cafe24.com\/web\/upload\/NNEditor\/20230127\/a3209c9d601c7dcc5db97f0ef3aade0a.png","type":2}],"link":[{"url":"","openType":"_self"}],"AddOn":[""],"index":0},"1669947232135":{"id":"1669947232135","name":"hKiibDRN-Xk","isActive":true,"displayType":0,"displayBeginTime":"2022-12-02 11:00:00","displayEndTime":"2022-12-02 11:00:00","html":"
\ube44\uc624\ub294\ub0a0 \uc218\uc81c\ubaa8\ub4ec\uc804 \ub354 \ub9db\uc788\uac8c \uc990\uae30\uae30<\/div>\n
#\ube44\uc624\ub294\ub0a0 #\uc218\uc81c\ubaa8\ub4ec\uc804<\/div>","img":[{"url":"https:\/\/ecudemo266774.cafe24.com\/web\/upload\/NNEditor\/20230127\/d3fe8409c04b6afe237761adf757dae0.png","type":2}],"link":[{"url":"","openType":"_self"}],"AddOn":[""],"index":1}},"index":6},"af2f":{"id":"af2f","name":"\ubd84\ub958 : \uc774\ubca4\ud2b8 \ubc30\ub108","desc":"","displayType":"0","isActive":true,"createDate":"2022-12-02","bannerList":{"1669948839896":{"id":"1669948839896","name":"\ubd84\ub958 \uc774\ubca4\ud2b8 \ubc30\ub10801","isActive":true,"displayType":0,"displayBeginTime":"2022-12-02 11:00:00","displayEndTime":"2022-12-02 11:00:00","html":"
\uc785\ub9db \ub530\ub77c \ucde8\ud5a5 \ub530\ub77c<\/div>\n
12\uc885 \uace8\ub77c\ub2f4\uae30<\/div>","img":[{"url":"https:\/\/ecimg.cafe24img.com\/pg783b69323578017\/nrise200\/web\/upload\/NNEditor\/20240221\/41a36dbd1748ef4dd62db34b61500481.png","type":2}],"link":[{"url":"\/product\/\uc0d0\ub7ec\ub4dc-12\uc885-\uace8\ub77c\ub2f4\uae30\/28\/category\/26\/display\/1\/","openType":"_self"}],"AddOn":[""],"index":0},"1669948872261":{"id":"1669948872261","name":"\ubd84\ub958 \uc774\ubca4\ud2b8 \ubc30\ub10802","isActive":true,"displayType":0,"displayBeginTime":"2022-12-02 11:00:00","displayEndTime":"2022-12-02 11:00:00","html":"
\ub9db\uc788\uac8c \ucc44\uc6b0\ub294 \ub2e8\ubc31\uc9c8<\/div>\n
\ud504\ub85c\ud2f4 \uadf8\ub798\ub180\ub77c<\/div>","img":[{"url":"https:\/\/ecimg.cafe24img.com\/pg783b69323578017\/nrise200\/web\/upload\/NNEditor\/20240221\/87fe15f67822fd6e1696f4367d843829.png","type":2}],"link":[{"url":"\/product\/\ud504\ub85c\ud2f4-\uadf8\ub798\ub180\ub77c-2\uc885-\uc624\ub9ac\uc9c0\ub110\uce74\uce74\uc624\/11\/category\/24\/display\/1\/","openType":"_self"}],"AddOn":[""],"index":1}},"index":7},"0e49":{"id":"0e49","name":"\uc0c1\uc138 : \uc774\ubca4\ud2b8 \ubc30\ub108","desc":"","displayType":"0","isActive":true,"createDate":"2022-12-02","bannerList":{"1673416057836":{"id":"1673416057836","name":"\uc0c1\uc138 \uc774\ubca4\ud2b8 \ubc30\ub10801","isActive":false,"displayType":0,"displayBeginTime":"2023-01-11 14:00:00","displayEndTime":"2023-01-11 14:00:00","html":"
10% \ucd94\uac00 \ud560\uc778 \ubc1b\uace0 \uc2f6\ub2e4\uba74!<\/div>\n
\ub124\uc774\ubc84 \ud398\uc774\ub85c \uad6c\ub9e4\ud558\uae30<\/div>","img":[{"url":"https:\/\/ecudemo266774.cafe24.com\/web\/upload\/NNEditor\/20230127\/b8849af317a7c702e2776a23ae2c87c3.png","type":2}],"link":[{"url":"","openType":"_self"}],"AddOn":[""],"index":0},"1673416096279":{"id":"1673416096279","name":"\uc0c1\uc138 \uc774\ubca4\ud2b8 \ubc30\ub10801","isActive":false,"displayType":0,"displayBeginTime":"2023-01-11 14:00:00","displayEndTime":"2023-01-11 14:00:00","html":"
\uc88b\uc544\uc694 \ub204\ub974\uba74 \ucfe0\ud3f0\uc744 \ub4dc\ub824\uc694<\/div>\n
\ud55c\ub07c\ub450\ub07c \uc88b\uc544\uc694 \uc774\ubca4\ud2b8<\/div>","img":[{"url":"https:\/\/ecudemo266774.cafe24.com\/web\/upload\/NNEditor\/20230127\/4e7e5dfee4ee0e2aa6cff02631fb0df0.png","type":2}],"link":[{"url":"","openType":"_self"}],"AddOn":[""],"index":1}},"index":8},"e237":{"id":"e237","name":"\ub808\uc774\uc544\uc6c3 : \uc88c\uce21\ubc30\ub108","desc":"","displayType":"0","isActive":true,"createDate":"2023-01-11","bannerList":{"1673416153908":{"id":"1673416153908","name":"\uc88c\uce21\ubc30\ub108","isActive":true,"displayType":0,"displayBeginTime":"2023-01-11 14:00:00","displayEndTime":"2023-01-11 14:00:00","html":"","img":[{"url":"https:\/\/ecimg.cafe24img.com\/pg783b69323578017\/nrise200\/web\/upload\/NNEditor\/20240208\/20ad1236ebc5355ac0511b3aad22584e.png","type":2}],"link":[{"url":"","openType":"_self"}],"AddOn":[""],"index":0}},"index":9}}; var LastSaveData = { "lastSaveSkin": "한끼두끼", "lastSaveDate": "2024-09-03 19:18:55" }; // 아이콘 var IconsPC = {"soldout":"https:\/\/img.echosting.cafe24.com\/design\/skin\/admin\/ko_KR\/ico_product_soldout.gif"}; var IconsMobile = {"soldout":"https:\/\/img.echosting.cafe24.com\/design\/skin\/admin\/ko_KR\/ico_product_soldout.gif"}; // 활성된 배너 엘리먼트, 배너 데이터 var activeBannerElem = []; // 동영상 url 구분하기 function getVideoDetails( url ) { try { const urlObj = new URL( url ); let site = ""; let videoID = ""; if( urlObj.hostname.includes( "youtube.com" ) || urlObj.hostname.includes( "youtu.be" ) ) { site = "youtube"; if( urlObj.hostname.includes( "youtube.com" ) ) { const shortsIndex = url.indexOf("/shorts/"); if( shortsIndex !== -1 ) { let videoIDWithParams = url.substring( shortsIndex + 8 ); const paramIndex = videoIDWithParams.indexOf( "?" ); if( paramIndex !== -1 ) videoID = videoIDWithParams.substring( 0, paramIndex ); else videoID = videoIDWithParams; } else { videoID = urlObj.searchParams.get( "v" ); } } else if( urlObj.hostname.includes( "youtu.be" ) ) { videoID = urlObj.pathname.slice( 1 ); } } else if( urlObj.hostname.includes( "vimeo.com" ) ) { site = "vimeo"; if( urlObj.hostname.includes( "player.vimeo.com" ) ) videoID = urlObj.pathname.split( "/" )[ 2 ]; else videoID = urlObj.pathname.split( "/" )[ 1 ]; } else if( urlObj.hostname.includes( "charlla.io" ) ) { site = "charlla"; videoID = urlObj.pathname.split( "/" )[ 1 ]; } else if( urlObj.pathname.endsWith( ".mp4" ) ) { site = "mp4"; videoID = urlObj.pathname; } else { site = "unknown"; videoID = null; } return { site, videoID }; } catch( error ) { console.error( "유효한 URL이 아닙니다:", error ); return null; } } function makeVideoTag( html, data ) { for( let i in data.videoUrl ) { const urlData = data.videoUrl[ i ]; if( null == urlData.url || "undefined" == urlData.url || "" == urlData.url ) { switch( i ) { case "0" : html = html.replace( /{#video_1}/gi, "" ); break; case "1" : html = html.replace( /{#video_2}/gi, "" ); break; case "2" : html = html.replace( /{#video_3}/gi, "" ); break; } continue; } const siteUrl = getVideoDetails( urlData.url ); if( null == siteUrl ) { switch( i ) { case "0" : html = html.replace( /{#video_1}/gi, "" ); break; case "1" : html = html.replace( /{#video_2}/gi, "" ); break; case "2" : html = html.replace( /{#video_3}/gi, "" ); break; } continue; } let pointerEvent = ""; if( true == urlData.autoPlay ) pointerEvent = "pointer-events:none;" else pointerEvent = "pointer-events:auto;" let aspectRatio = urlData.ratioX + "/" + urlData.ratioY; let iframeElem = ""; switch( siteUrl.site ) { case "youtube" : { iframeElem = "
"; } break; case "vimeo" : { iframeElem = "
"; } break; case "charlla" : { iframeElem = "
"; } break; case "mp4" : { let autoplay_chk = ""; if( true == urlData.autoPlay ) autoplay_chk = "autoplay"; iframeElem = "
"; } break; default : { console.log( "영상없음" ); } break; } switch( i ) { case "0" : html = html.replace( /{#video_1}/gi, iframeElem ); break; case "1" : html = html.replace( /{#video_2}/gi, iframeElem ); break; case "2" : html = html.replace( /{#video_3}/gi, iframeElem ); break; } } return html; } //--------------------------------------------------------------------------------------------------------------------------------- // 배너 관리자 Init_MorenvyBannerManager(); //(function( CAFE24API ) function Init_MorenvyBannerManager() { console.log( "%c----- Banner Manager -----", "color:rgb(20, 85, 249); font-size: 25px;" ); console.log( "최종 수정 스킨 : " + LastSaveData[ "lastSaveSkin" ] ); console.log( "최종 수정 일자 : " + LastSaveData[ "lastSaveDate" ] ); console.log( "https://morenvy.com" ); console.log( "%c--------------------------", "color:rgb(20, 85, 249); font-size: 25px;" ); // 배너영역 클래스 검색 var bannerAreaList = document.getElementsByClassName( "morenvy-banner-area" ); if( null == bannerAreaList ) return; for( var i = 0; i < bannerAreaList.length; ) { // HTML에서 배너영역 ID 가져온다 var bannerArea = bannerAreaList[ i ]; var areaID = bannerArea.getAttribute( "area_id" ); // 배너영역 ID로 데이터 검색 var areaData = MorenvyBanner_AreaData[ areaID ]; if( null == areaData ) { bannerArea.style.display = "none"; ++i; continue; } // 순서대로 출력 var bannerArray = []; if( "0" == areaData.displayType ) { for( var key in areaData.bannerList ) { bannerArray.push( areaData.bannerList[ key ] ); } bannerArray.sort( function( a, b ) { return a.index > b.index ? 1 : -1; } ); } // 랜덤 출력 else if( "1" == areaData.displayType ) { for( var key in areaData.bannerList ) { areaData.bannerList[ key ].random = Math.random(); bannerArray.push( areaData.bannerList[ key ] ); } bannerArray.sort( function( a, b ) { return a.random > b.random ? 1 : -1; } ); } var bannerList = bannerAreaList[ i ].getElementsByClassName( "morenvy-banner" ); if( 0 == bannerList.length ) { bannerArea.style.display = "none"; ++i; continue; } // 설정 수 보다 엘리먼트가 부족할 경우 마지막 엘리먼트 복사 if( bannerList.length < bannerArray.length ) { var copyTarget = bannerList[ bannerList.length - 1 ]; var loopCount = bannerArray.length - bannerList.length; for( var j = 0; j < loopCount; ++j ) { var copyElem = copyTarget.cloneNode( true ); //bannerAreaList[ i ].append( copyElem ); copyTarget.parentElement.append( copyElem ); } } var showIndex = 0; for( var j = 0; j < bannerList.length; ) { var bannerData = j >= bannerArray.length ? null : bannerArray[ j ]; // 배너 데이터 없음 if( null == bannerData ) { bannerList[ j ].remove(); bannerArray.splice( j, 1 ); continue; } // 활성 중? if( false == bannerData.isActive ) { bannerList[ j ].remove(); bannerArray.splice( j, 1 ); continue; } // 기간 노출 if( 1 == bannerData.displayType ) { var beginDate = new Date( bannerData.displayBeginTime.replace( /-/g, "/" ) ); var endDate = new Date( bannerData.displayEndTime.replace( /-/g, "/" ) ); var curTime = new Date(); if( beginDate > curTime || endDate < curTime ) { bannerList[ j ].remove(); bannerArray.splice( j, 1 ); continue; } } // 반복 노출 if( 2 == bannerData.displayType ) { let curTime = new Date(); const getWeek = () => { const now = new Date(); const currentDate = now.getDate(); const firstDay = new Date( now.setDate( 1 ) ).getDay(); return Math.ceil( (currentDate + firstDay) / 7 ); }; const checkDay = ( day ) => { return curTime.getDate() == day; }; const checkWeek = ( week, day, isFlag ) => { if( getWeek() == week ) { if( true == isFlag ) { let flag = 0x00000000; switch( curTime.getDay() ) { case 1 : flag = 0x00000001; break; case 2 : flag = 0x00000002; break; case 3 : flag = 0x00000004; break; case 4 : flag = 0x00000008; break; case 5 : flag = 0x00000010; break; case 6 : flag = 0x00000012; break; case 7 : flag = 0x00000014; break; } if( flag & day ) return true; } else { if( curTime.getDay() == day ) return true; } } return false; }; let isRemove = false; const repeatData = bannerData.repeatData; // 매월 특정 일마다 반복 if( "day" == bannerData.repeatType ) { if( false == checkDay( repeatData.day ) ) isRemove = true; } // 특정 주, 요일 마다 반복 else if( "week" == bannerData.repeatType ) { if( false == checkWeek( repeatData.week.everyW, repeatData.week.everyD, true ) ) isRemove = true; } // 특정 월 반복 else if( "month" == bannerData.repeatType ) { if( curTime.getMonth() + 1 == repeatData.month.everyM ) { // 특정 일 반복 if( "month_day" == repeatData.month.month_type ) { if( false == checkDay( repeatData.month.month_day ) ) isRemove = true; } // 특정 주, 요일 마다 반복 else { if( false == checkWeek( repeatData.month.month_week_everyW, repeatData.month.month_week_everyD, false ) ) isRemove = true; } } else { isRemove = true; } } if( true == isRemove ) { bannerList[ j ].remove(); bannerArray.splice( j, 1 ); continue; } } var html = bannerList[ j ].innerHTML; html = html.replace( /%7B/gi, "{" ); html = html.replace( /%7D/gi, "}" ); html = html.replace( /{#areaName}/gi, areaData.name ); html = html.replace( /{#areaDesc}/gi, areaData.desc ); html = html.replace( /{#areaDisplayType}/gi, areaData.displayType ); html = html.replace( /{#num}/gi, ++showIndex ); html = html.replace( /{#title}/gi, bannerData.name ); html = html.replace( /{#displayType}/gi, bannerData.displayType ); html = html.replace( /{#displayBeginTime}/gi, bannerData.displayBeginTime ); html = html.replace( /{#displayEndTime}/gi, bannerData.displayEndTime ); html = html.replace( /{#text_1}/gi, 0 < bannerData.AddOn.length ? bannerData.AddOn[ 0 ] : "" ); html = html.replace( /{#text_2}/gi, 1 < bannerData.AddOn.length ? bannerData.AddOn[ 1 ] : "" ); html = html.replace( /{#text_3}/gi, 2 < bannerData.AddOn.length ? bannerData.AddOn[ 2 ] : "" ); html = html.replace( /{#link_1}/gi, 0 < bannerData.link.length ? bannerData.link[ 0 ].url : "" ); html = html.replace( /{#link_2}/gi, 1 < bannerData.link.length ? bannerData.link[ 1 ].url : "" ); html = html.replace( /{#link_3}/gi, 2 < bannerData.link.length ? bannerData.link[ 2 ].url : "" ); html = html.replace( /{#target_1}/gi, 0 < bannerData.link.length ? bannerData.link[ 0 ].openType : "" ); html = html.replace( /{#target_2}/gi, 1 < bannerData.link.length ? bannerData.link[ 1 ].openType : "" ); html = html.replace( /{#target_3}/gi, 2 < bannerData.link.length ? bannerData.link[ 2 ].openType : "" ); html = html.replace( /{#html}/gi, bannerData.html ); // 비디오 or 이미지 태그를 데이터 값에 따라 명확히 구분 if( null != bannerData.videoUrl && "undefined" != bannerData.videoUrl ) { if( 0 < bannerData.videoUrl.length ) { const url = bannerData.videoUrl[ 0 ].url; if( null != url && "" != url ) html = html.replace( /{#imgTag_1_or_video_1}/gi, "{#video_1}" ); else html = html.replace( /{#imgTag_1_or_video_1}/gi, "{#imgTag_1}" ); } else { html = html.replace( /{#imgTag_1_or_video_1}/gi, "{#imgTag_1}" ); } if( 1 < bannerData.videoUrl.length ) { const url = bannerData.videoUrl[ 1 ].url; if( null != url && "" != url ) html = html.replace( /{#imgTag_2_or_video_2}/gi, "{#video_2}" ); else html = html.replace( /{#imgTag_2_or_video_2}/gi, "{#imgTag_2}" ); } else { html = html.replace( /{#imgTag_2_or_video_2}/gi, "{#imgTag_2}" ); } if( 2 < bannerData.videoUrl.length ) { const url = bannerData.videoUrl[ 2 ].url; if( null != url && "" != url ) html = html.replace( /{#imgTag_3_or_video_3}/gi, "{#video_3}" ); else html = html.replace( /{#imgTag_3_or_video_3}/gi, "{#imgTag_3}" ); } else { html = html.replace( /{#imgTag_3_or_video_3}/gi, "{#imgTag_3}" ); } } html = html.replace( /{#imgTag_1}/gi, 0 < bannerData.img.length ? "" : "" ); html = html.replace( /{#imgTag_2}/gi, 1 < bannerData.img.length ? "" : "" ); html = html.replace( /{#imgTag_3}/gi, 2 < bannerData.img.length ? "" : "" ); html = html.replace( /{#imgSrc_1}/gi, 0 < bannerData.img.length ? bannerData.img[ 0 ].url : "" ); html = html.replace( /{#imgSrc_2}/gi, 1 < bannerData.img.length ? bannerData.img[ 1 ].url : bannerData.img[ bannerData.img.length - 1 ].url ); html = html.replace( /{#imgSrc_3}/gi, 2 < bannerData.img.length ? bannerData.img[ 2 ].url : bannerData.img[ bannerData.img.length - 1 ].url ); // 비디오 태그 생성 html = makeVideoTag( html, bannerData ); bannerList[ j ].innerHTML = html; activeBannerElem.push( { elem : bannerList[ j ], bannerData : bannerData } ); ++j; } if( 0 == bannerList.length ) bannerArea.style.display = "none"; ++i; bannerArea.classList.add( "init" ); } }/* )( CAFE24API.init( { version: "2022-09-01", client_id: "gSOPn7dNJxAp8cu31kDDtD" } ) );*/ //---------------------------------------------------------------------------------------------------------------------------- // 상품 진열 플러그인 function Init_MorenvyProductDisplay() { // 상품 정보 요청 최대 개수, cafe24에서 최대 100개까지 지원됨. const maxSearchCount = 100; // 상품 정보 요청할 상품 번호 var needToSearchProduct = {}; // 상품 정보 콜백 받은 후 html replace 필요한 엘리먼트들, 해당 엘리먼트 내 상품 번호 var needToReplaceElems = []; // 초기화 필요한 product area var needToInitPrudctArea = []; // replace 필요한 상품 배열 데이터 var needToReplaceArray = {}; // 모바일인지 체크 var isMobile = /Mobi/i.test( window.navigator.userAgent ); // 상품 관련 태그를 상품 번호 태그로 매핑 // ex) {#productName} ----> {#19_Name} function replaceToProductNo( html, tagName, productNo, replace ) { const regExp = new RegExp( `{${"#" + tagName}}`, "gi" ); if( null != productNo ) html = html.replace( regExp, "{#" + productNo + "_" + replace + "}" ); else html = html.replace( regExp, "" ); return html; } // 배열 데이터 태그 replace function replaceToArrayProductNo( html, tagName, productNo, replace ) { var nextIndex = 0; while( true ) { var startIndex = html.indexOf( "{#" + tagName, nextIndex ); if( -1 == startIndex ) break; var endIndex = html.indexOf( "}", startIndex ); if( -1 == endIndex ) break; var arrayIndex = html.slice( startIndex + String( "{#" + tagName ).length + 1, endIndex ); if( null == needToReplaceArray[ productNo ] ) needToReplaceArray[ productNo ] = new Object(); if( null == needToReplaceArray[ productNo ][ replace ] ) needToReplaceArray[ productNo ][ replace ] = new Object(); needToReplaceArray[ productNo ][ replace ][ arrayIndex ] = 0; nextIndex = endIndex + 1; } const regExp = new RegExp( `{${"#" + tagName + "_"}`, "gi" ); if( null != productNo ) html = html.replace( regExp, "{#" + productNo + "_" + replace + "_" ); else html = html.replace( regExp, "" ); return html; } // 상품 번호로 매핑된 태그를 실제 상품 정보로 replace function replaceTag( html, productNo, tag, replace ) { const regExp = new RegExp( `{${"#" + productNo + "_" + tag}}`, "gi" ); html = html.replace( regExp, replace ); return html; } // 상품 번호로 매핑된 태그를 실제 상품 정보로 replace (한개만) function replaceOneTag( html, productNo, tag, replace ) { html = html.replace( "{#" + productNo + "_" + tag + "}", replace ); return html; } // 상품 번호로 매핑된 태그를 실제 상품 정보로 replace function replaceArrayTag( index, html, productNo, tag, replace ) { const regExp = new RegExp( `{${"#" + productNo + "_" + tag + "_" + index}}`, "gi" ); html = html.replace( regExp, replace ); return html; } // 배너관리자에서 활성된 배너 for( var key in activeBannerElem ) { // 활성된 배너 데이터 var bannerData = activeBannerElem[ key ].bannerData; // 상품 진열 데이터 없음 if( null == bannerData.productDisplay || 0 == bannerData.productDisplay.length ) continue; // 상품 진열 영역 var productAreaList = activeBannerElem[ key ].elem.getElementsByClassName( "morenvy-product-area" ); if( null == productAreaList || 0 == productAreaList.length ) continue; for( var i = 0; i < productAreaList.length; ) { var productArea = productAreaList[ i ]; var productList = productArea.getElementsByClassName( "morenvy-product" ); if( null == productList || 0 == productList.length ) { productAreaList[ i ].remove(); continue; } // 설정 수 보다 엘리먼트가 부족할 경우 마지막 엘리먼트 복사 if( productList.length < bannerData.productDisplay.length ) { var copyTarget = productList[ productList.length - 1 ]; var loopCount = bannerData.productDisplay.length - productList.length; for( var j = 0; j < loopCount; ++j ) { var copyElem = copyTarget.cloneNode( true ); productArea.append( copyElem ); } } for( var j = 0; j < productList.length; ) { // 상품 검색 최대 수 도달 if( maxSearchCount <= Object.keys( needToSearchProduct ).length ) break; var productNo = j >= bannerData.productDisplay.length ? null : bannerData.productDisplay[ j ]; // 상품 데이터 없음 if( null == productNo ) { productList[ j ].remove(); bannerData.productDisplay.splice( j, 1 ); continue; } var html = productList[ j ].innerHTML; html = html.replace( /%7B/gi, "{" ); html = html.replace( /%7D/gi, "}" ); // 모바일/PC에 따라 아이콘 다름 if( false == isMobile ) { html = html.replace( /{#soldout_icon}/gi, IconsPC[ "soldout" ] ); html = html.replace( /{#soldout_iconTag}/gi, "" ); } else { html = html.replace( /{#soldout_icon}/gi, IconsMobile[ "soldout" ] ); html = html.replace( /{#soldout_iconTag}/gi, "" ); } // 상품 번호 매핑 html = html.replace( /{#productNo}/gi, productNo ); // 상품 태그를 상품 번호 태그로 매핑 html = replaceToProductNo( html, "link", productNo, "Link" ); html = replaceToProductNo( html, "name", productNo, "Name" ); html = replaceToProductNo( html, "nameEn", productNo, "NameEn" ); html = replaceToProductNo( html, "price", productNo, "Price" ); html = replaceToProductNo( html, "retailPrice", productNo, "RetailPrice" ); html = replaceToProductNo( html, "discountPrice", productNo, "DiscountPrice" ); html = replaceToProductNo( html, "imgBig", productNo, "ImgBig" ); html = replaceToProductNo( html, "imgBigTag", productNo, "ImgBigTag" ); html = replaceToProductNo( html, "imgMedium", productNo, "ImgMedium" ); html = replaceToProductNo( html, "imgMediumTag", productNo, "ImgMediumTag" ); html = replaceToProductNo( html, "imgSmall", productNo, "ImgSmall" ); html = replaceToProductNo( html, "imgSmallTag", productNo, "ImgSmallTag" ); html = replaceToProductNo( html, "imgTiny", productNo, "ImgTiny" ); html = replaceToProductNo( html, "imgTinyTag", productNo, "ImgTinyTag" ); html = replaceToProductNo( html, "summaryDesc", productNo, "SummaryDesc" ); html = replaceToProductNo( html, "simpleDesc", productNo, "SimpleDesc" ); html = replaceToProductNo( html, "customCode", productNo, "CustomCode" ); html = replaceToProductNo( html, "modelName", productNo, "ModelName" ); html = replaceToProductNo( html, "brand", productNo, "Brand" ); html = replaceToProductNo( html, "trend", productNo, "Trend" ); html = replaceToProductNo( html, "manu", productNo, "Manu" ); html = replaceToProductNo( html, "opt_discountPrice", productNo, "Opt_DiscountPrice" ); html = replaceToProductNo( html, "coupon_discountPrice", productNo, "Coupon_DiscountPrice" ); html = replaceToProductNo( html, "promotion_period", productNo, "Promotion_Period" ); // addImg / addImgTag 처럼 태그 이름이 확장되는 경우 확장된 놈부터 replace, 에러남 html = replaceToArrayProductNo( html, "addInfo_name", productNo, "AddInfo_Name" ); html = replaceToArrayProductNo( html, "addInfo_value", productNo, "AddInfo_Value" ); html = replaceToArrayProductNo( html, "addImgTag", productNo, "AddImgTag" ); html = replaceToArrayProductNo( html, "addImg", productNo, "AddImg" ); productList[ j ].innerHTML = html; needToSearchProduct[ productNo ] = 0; needToReplaceElems.push( { areaElem : productArea, productNo : productNo, productElem : productList[ j ] } ); ++j; } needToInitPrudctArea.push( productArea ); ++i; } } // 상품 검색 Search(); function applyProductData( products ) { // replace가 먼저 되면 엘리먼트 삭제가 안된다. // 삭제할 엘리먼트만 먼저 찾아서 삭제 for( var key in needToReplaceElems ) { // 상품 엘리먼트 var productElem = needToReplaceElems[ key ].productElem; // 상품 번호 var productNo = needToReplaceElems[ key ].productNo; // 해당 번호의 상품 데이터 없음. 엘리먼트 삭제 var data = products[ productNo ]; if( null == data ) { productElem.remove(); continue; } // 진열중 아니거나 판매중 아니면 엘리먼트 삭제 if( "F" == data.selling || "F" == data.display ) { productElem.remove(); continue; } } // 검색된 상품 정보를 각각의 엘리먼트에 상품 번호로 매핑된 태그를 찾아 replace for( var key in needToReplaceElems ) { // 상품 영역 엘리먼트 var productAreaElem = needToReplaceElems[ key ].areaElem; // 상품 엘리먼트 var productElem = needToReplaceElems[ key ].productElem; // 상품 번호 var productNo = needToReplaceElems[ key ].productNo; var data = products[ productNo ]; if( null == data || "F" == data.selling || "F" == data.display ) continue; // PC/모바일 할인가가 다름 var discount = true == isMobile ? data.discountprice.mobile_discount_price : data.discountprice.pc_discount_price; var html = productAreaElem.innerHTML; html = html.replace( /%7B/gi, "{" ); html = html.replace( /%7D/gi, "}" ); html = replaceTag( html, data.product_no, "Link", "/product/detail.html?product_no=" + data.product_no ); html = replaceTag( html, data.product_no, "Name", data.product_name ); html = replaceTag( html, data.product_no, "NameEn", data.eng_product_name ); html = replaceTag( html, data.product_no, "Price", parseInt( data.price ).toLocaleString() ); html = replaceTag( html, data.product_no, "RetailPrice", parseInt( data.retail_price ).toLocaleString() ); html = replaceTag( html, data.product_no, "DiscountPrice", parseInt( discount ).toLocaleString() ); html = replaceTag( html, data.product_no, "ImgBig", data.detail_image ); html = replaceTag( html, data.product_no, "ImgBigTag", "" ); html = replaceTag( html, data.product_no, "ImgMedium", data.list_image ); html = replaceTag( html, data.product_no, "ImgMediumTag", "" ); html = replaceTag( html, data.product_no, "ImgSmall", data.small_image ); html = replaceTag( html, data.product_no, "ImgSmallTag", "" ); html = replaceTag( html, data.product_no, "ImgTiny", data.tiny_image ); html = replaceTag( html, data.product_no, "ImgTinyTag", "" ); html = replaceTag( html, data.product_no, "SummaryDesc", data.summary_description ); html = replaceTag( html, data.product_no, "CustomCode", data.custom_product_code ); html = replaceTag( html, data.product_no, "ModelName", data.model_name ); productAreaElem.innerHTML = html; ++i; } // 상품 영역 초기화 완료 for( var key in needToInitPrudctArea ) { needToInitPrudctArea[ key ].classList.add( "init" ); } } function Search() { // 검색 필요한 상품 없음 if( 0 == Object.keys( needToSearchProduct ).length ) return; var count = 0; // 상품 검색 파라미터 var searchParam = "?embed=discountprice&product_no="; for( var key in needToSearchProduct ) { ++count; if( 1 < count ) searchParam += ","; searchParam += key; } // 상품 검색 개수, cafe24에서 최대 100개까지 지원됨. searchParam += "&limit=" + maxSearchCount; // 상품 검색 요청 CAFE24API.get( "/api/v2/products" + searchParam, function( err, res ) { // 상품 번호를 키로 object 변환 var products = {}; for( var i in res.products ) { products[ res.products[ i ].product_no ] = res.products[ i ]; } applyProductData( products ); var reqDetailCount = 0; var totalReqCount = 0; var totalApplyCount = 0; function reqDetail() { var arrProductNo = Object.keys( needToSearchProduct ); if( 0 == arrProductNo ) return; ++reqDetailCount; ++totalReqCount; var productNo = arrProductNo[ 0 ]; CAFE24API.get( "/api/v2/productsdetail/" + productNo, function( err, res ) { applyProductDetail( res.productsdetail ); ++totalApplyCount; if( totalApplyCount == totalReqCount ) replaceNaN(); } ); delete needToSearchProduct[ productNo ]; if( 40 <= reqDetailCount ) { setTimeout( function() { reqDetailCount = 0; reqDetail(); }, 2500 ); } else { reqDetail(); } } reqDetail(); function applyProductDetail( data ) { // 상품 진열 영역 var productAreaList = document.getElementsByClassName( "morenvy-product-area" ); if( null == productAreaList || 0 == productAreaList.length ) return; for( var i = 0; i < productAreaList.length; ++i ) { var elem = productAreaList[ i ]; var html = elem.innerHTML; html = html.replace( /%7B/gi, "{" ); html = html.replace( /%7D/gi, "}" ); html = replaceTag( html, data.product_no, "SimpleDesc", null == data.simple_description ? "" : data.simple_description ); html = replaceTag( html, data.product_no, "Brand", null == data.brand_name ? "" : data.brand_name ); html = replaceTag( html, data.product_no, "Trend", null == data.trend_name ? "" : data.trend_name ); html = replaceTag( html, data.product_no, "Manu", null == data.manufacturer_name ? "" : data.manufacturer_name ); html = replaceTag( html, data.product_no, "Opt_DiscountPrice", null == data.optimum_discount_price ? "" : arseInt( data.optimum_discount_price ).toLocaleString() ); html = replaceTag( html, data.product_no, "Coupon_DiscountPrice", null == data.coupon_discounted_price ? "" : parseInt( data.coupon_discounted_price ).toLocaleString() ); if( null != data.promotion_period ) { var startDate = new Date( data.promotion_period.start_date ); var endDate = new Date( data.promotion_period.end_date ); var timeText = startDate.getFullYear() + "-" + (startDate.getMonth() + 1).toString().padStart( 2, "0" ) + "-" + startDate.getDate().toString().padStart( 2, "0" ) + " " + startDate.getHours().toString().padStart( 2, "0" ) + ":" + startDate.getMinutes().toString().padStart( 2, "0" ) + " ~ " + endDate.getFullYear() + "-" + (endDate.getMonth() + 1).toString().padStart( 2, "0" ) + "-" + endDate.getDate().toString().padStart( 2, "0" ) + " " + endDate.getHours().toString().padStart( 2, "0" ) + ":" + endDate.getMinutes().toString().padStart( 2, "0" ); html = replaceTag( html, data.product_no, "Promotion_Period", timeText ); } else { html = replaceTag( html, data.product_no, "Promotion_Period", data.coupon_discounted_price ); } if( null != data.additional_information ) { for( var j = 0; j < data.additional_information.length; ++j ) { const info = data.additional_information[ j ]; html = replaceArrayTag( j + 1, html, data.product_no, "AddInfo_Name", info.name ); html = replaceArrayTag( j + 1, html, data.product_no, "AddInfo_Value", info.value ); if( null != needToReplaceArray[ data.product_no ] ) { if( null != needToReplaceArray[ data.product_no ][ "AddInfo_Name" ] ) delete needToReplaceArray[ data.product_no ][ "AddInfo_Name" ][ (j + 1).toString() ]; if( null != needToReplaceArray[ data.product_no ][ "AddInfo_Value" ] ) delete needToReplaceArray[ data.product_no ][ "AddInfo_Value" ][ (j + 1).toString() ]; } } } if( null != data.additional_images ) { for( var j = 0; j < data.additional_images.length; ++j ) { const img = data.additional_images[ j ]; html = replaceArrayTag( j + 1, html, data.product_no, "AddImg", img.big ); html = replaceArrayTag( j + 1, html, data.product_no, "AddImgTag", "" ); if( null != needToReplaceArray[ data.product_no ] ) { if( null != needToReplaceArray[ data.product_no ][ "AddImg" ] ) delete needToReplaceArray[ data.product_no ][ "AddImg" ][ (j + 1).toString() ]; if( null != needToReplaceArray[ data.product_no ][ "AddImgTag" ] ) delete needToReplaceArray[ data.product_no ][ "AddImgTag" ][ (j + 1).toString() ]; } } } elem.innerHTML = html; } } } ); } // 태그 변수 입력은 됐는데 실제 조회 후 데이터가 없는 경우 NaN으로 replace function replaceNaN() { for( var keyProductNo in needToReplaceArray ) { for( var keyTag in needToReplaceArray[ keyProductNo ] ) { for( var keyNum in needToReplaceArray[ keyProductNo ][ keyTag ] ) { for( var i = 0; i < productAreaList.length; ++i ) { var elem = productAreaList[ i ]; var html = elem.innerHTML; html = replaceTag( html, keyProductNo, keyTag + "_" + keyNum, "" ); elem.innerHTML = html; } } } } } } let Morenvy_Wait_CAEF24 = setInterval( () => { if( typeof CAFE24API != "undefined" ) { clearInterval( Morenvy_Wait_CAEF24 ); (function( CAFE24API ) { Init_MorenvyProductDisplay(); } )( CAFE24API.init( { version: "2022-09-01", client_id: "gSOPn7dNJxAp8cu31kDDtD" } ) ); } }, 50 );