You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

1 lines
21 KiB

!function(){"use strict";function e(e){e.fn._fadeIn=e.fn.fadeIn;var t=e.noop||function(){},o=/MSIE/.test(navigator.userAgent),n=/MSIE 6.0/.test(navigator.userAgent)&&!/MSIE 8.0/.test(navigator.userAgent),i=(document.documentMode,e.isFunction(document.createElement("div").style.setExpression));e.blockUI=function(e){r(window,e)},e.unblockUI=function(e){l(window,e)},e.growlUI=function(t,o,n,i){var s=e('<div class="growlUI"></div>');t&&s.append("<h1>"+t+"</h1>"),o&&s.append("<h2>"+o+"</h2>"),void 0===n&&(n=3e3);var a=function(t){t=t||{},e.blockUI({message:s,fadeIn:void 0!==t.fadeIn?t.fadeIn:700,fadeOut:void 0!==t.fadeOut?t.fadeOut:1e3,timeout:void 0!==t.timeout?t.timeout:n,centerY:!1,showOverlay:!1,onUnblock:i,css:e.blockUI.defaults.growlCSS})};a();s.css("opacity");s.mouseover(function(){a({fadeIn:0,timeout:3e4});var t=e(".blockMsg");t.stop(),t.fadeTo(300,1)}).mouseout(function(){e(".blockMsg").fadeOut(1e3)})},e.fn.block=function(t){if(this[0]===window)return e.blockUI(t),this;var o=e.extend({},e.blockUI.defaults,t||{});return this.each(function(){var t=e(this);o.ignoreIfBlocked&&t.data("blockUI.isBlocked")||t.unblock({fadeOut:0})}),this.each(function(){"static"==e.css(this,"position")&&(this.style.position="relative",e(this).data("blockUI.static",!0)),this.style.zoom=1,r(this,t)})},e.fn.unblock=function(t){return this[0]===window?(e.unblockUI(t),this):this.each(function(){l(this,t)})},e.blockUI.version=2.7,e.blockUI.defaults={message:"<h1>Please wait...</h1>",title:null,draggable:!0,theme:!1,css:{padding:0,margin:0,width:"30%",top:"40%",left:"35%",textAlign:"center",color:"#000",border:"3px solid #aaa",backgroundColor:"#fff",cursor:"wait"},themedCSS:{width:"30%",top:"40%",left:"35%"},overlayCSS:{backgroundColor:"#000",opacity:.6,cursor:"wait"},cursorReset:"default",growlCSS:{width:"350px",top:"10px",left:"",right:"10px",border:"none",padding:"5px",opacity:.6,cursor:"default",color:"#fff",backgroundColor:"#000","-webkit-border-radius":"10px","-moz-border-radius":"10px","border-radius":"10px"},iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank",forceIframe:!1,baseZ:1e3,centerX:!0,centerY:!0,allowBodyStretch:!0,bindEvents:!0,constrainTabKey:!0,fadeIn:200,fadeOut:400,timeout:0,showOverlay:!0,focusInput:!0,focusableElements:":input:enabled:visible",onBlock:null,onUnblock:null,onOverlayClick:null,quirksmodeOffsetHack:4,blockMsgClass:"blockMsg",ignoreIfBlocked:!1};var s=null,a=[];function r(r,c){var u,m,h=r==window,g=c&&void 0!==c.message?c.message:void 0;if(!(c=e.extend({},e.blockUI.defaults,c||{})).ignoreIfBlocked||!e(r).data("blockUI.isBlocked")){if(c.overlayCSS=e.extend({},e.blockUI.defaults.overlayCSS,c.overlayCSS||{}),u=e.extend({},e.blockUI.defaults.css,c.css||{}),c.onOverlayClick&&(c.overlayCSS.cursor="pointer"),m=e.extend({},e.blockUI.defaults.themedCSS,c.themedCSS||{}),g=void 0===g?c.message:g,h&&s&&l(window,{fadeOut:0}),g&&"string"!=typeof g&&(g.parentNode||g.jquery)){var b=g.jquery?g[0]:g,v={};e(r).data("blockUI.history",v),v.el=b,v.parent=b.parentNode,v.display=b.style.display,v.position=b.style.position,v.parent&&v.parent.removeChild(b)}e(r).data("blockUI.onUnblock",c.onUnblock);var y,k,w,x,I=c.baseZ;y=o||c.forceIframe?e('<iframe class="blockUI" style="z-index:'+I+++';display:none;border:none;margin:0;padding:0;position:absolute;width:100%;height:100%;top:0;left:0" src="'+c.iframeSrc+'"></iframe>'):e('<div class="blockUI" style="display:none"></div>'),k=c.theme?e('<div class="blockUI blockOverlay ui-widget-overlay" style="z-index:'+I+++';display:none"></div>'):e('<div class="blockUI blockOverlay" style="z-index:'+I+++';display:none;border:none;margin:0;padding:0;width:100%;height:100%;top:0;left:0"></div>'),c.theme&&h?(x='<div class="blockUI '+c.blockMsgClass+' blockPage ui-dialog ui-widget ui-corner-all" style="z-index:'+(I+10)+';display:none;position:fixed">',c.title&&(x+='<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(c.title||"&nbsp;")+"</div>"),x+='<div class="ui-widget-content ui-dialog-content"></div>',x+="</div>"):c.theme?(x='<div class="blockUI '+c.blockMsgClass+' blockElement ui-dialog ui-widget ui-corner-all" style="z-index:'+(I+10)+';display:none;position:absolute">',c.title&&(x+='<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(c.title||"&nbsp;")+"</div>"),x+='<div class="ui-widget-content ui-dialog-content"></div>',x+="</div>"):x=h?'<div class="blockUI '+c.blockMsgClass+' blockPage" style="z-index:'+(I+10)+';display:none;position:fixed"></div>':'<div class="blockUI '+c.blockMsgClass+' blockElement" style="z-index:'+(I+10)+';display:none;position:absolute"></div>',w=e(x),g&&(c.theme?(w.css(m),w.addClass("ui-widget-content")):w.css(u)),c.theme||k.css(c.overlayCSS),k.css("position",h?"fixed":"absolute"),(o||c.forceIframe)&&y.css("opacity",0);var P=[y,k,w],C=e(h?"body":r);e.each(P,function(){this.appendTo(C)}),c.theme&&c.draggable&&e.fn.draggable&&w.draggable({handle:".ui-dialog-titlebar",cancel:"li"});var E=i&&(!e.support.boxModel||e("object,embed",h?null:r).length>0);if(n||E){if(h&&c.allowBodyStretch&&e.support.boxModel&&e("html,body").css("height","100%"),(n||!e.support.boxModel)&&!h)var U=p(r,"borderTopWidth"),O=p(r,"borderLeftWidth"),M=U?"(0 - "+U+")":0,_=O?"(0 - "+O+")":0;e.each(P,function(e,t){var o=t[0].style;if(o.position="absolute",e<2)h?o.setExpression("height","Math.max(document.body.scrollHeight, document.body.offsetHeight) - (jQuery.support.boxModel?0:"+c.quirksmodeOffsetHack+') + "px"'):o.setExpression("height",'this.parentNode.offsetHeight + "px"'),h?o.setExpression("width",'jQuery.support.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"'):o.setExpression("width",'this.parentNode.offsetWidth + "px"'),_&&o.setExpression("left",_),M&&o.setExpression("top",M);else if(c.centerY)h&&o.setExpression("top",'(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"'),o.marginTop=0;else if(!c.centerY&&h){var n="((document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "+(c.css&&c.css.top?parseInt(c.css.top,10):0)+') + "px"';o.setExpression("top",n)}})}if(g&&(c.theme?w.find(".ui-widget-content").append(g):w.append(g),(g.jquery||g.nodeType)&&e(g).show()),(o||c.forceIframe)&&c.showOverlay&&y.show(),c.fadeIn){var A=c.onBlock?c.onBlock:t,T=c.showOverlay&&!g?A:t,R=g?A:t;c.showOverlay&&k._fadeIn(c.fadeIn,T),g&&w._fadeIn(c.fadeIn,R)}else c.showOverlay&&k.show(),g&&w.show(),c.onBlock&&c.onBlock.bind(w)();if(d(1,r,c),h?(s=w[0],a=e(c.focusableElements,s),c.focusInput&&setTimeout(f,20)):function(e,t,o){var n=e.parentNode,i=e.style,s=(n.offsetWidth-e.offsetWidth)/2-p(n,"borderLeftWidth"),a=(n.offsetHeight-e.offsetHeight)/2-p(n,"borderTopWidth");t&&(i.left=s>0?s+"px":"0");o&&(i.top=a>0?a+"px":"0")}(w[0],c.centerX,c.centerY),c.timeout){var j=setTimeout(function(){h?e.unblockUI(c):e(r).unblock(c)},c.timeout);e(r).data("blockUI.timeout",j)}}}function l(t,o){var n,i,r=t==window,l=e(t),u=l.data("blockUI.history"),f=l.data("blockUI.timeout");f&&(clearTimeout(f),l.removeData("blockUI.timeout")),o=e.extend({},e.blockUI.defaults,o||{}),d(0,t,o),null===o.onUnblock&&(o.onUnblock=l.data("blockUI.onUnblock"),l.removeData("blockUI.onUnblock")),i=r?e("body").children().filter(".blockUI").add("body > .blockUI"):l.find(">.blockUI"),o.cursorReset&&(i.length>1&&(i[1].style.cursor=o.cursorReset),i.length>2&&(i[2].style.cursor=o.cursorReset)),r&&(s=a=null),o.fadeOut?(n=i.length,i.stop().fadeOut(o.fadeOut,function(){0==--n&&c(i,u,o,t)})):c(i,u,o,t)}function c(t,o,n,i){var s=e(i);if(!s.data("blockUI.isBlocked")){t.each(function(e,t){this.parentNode&&this.parentNode.removeChild(this)}),o&&o.el&&(o.el.style.display=o.display,o.el.style.position=o.position,o.el.style.cursor="default",o.parent&&o.parent.appendChild(o.el),s.removeData("blockUI.history")),s.data("blockUI.static")&&s.css("position","static"),"function"==typeof n.onUnblock&&n.onUnblock(i,n);var a=e(document.body),r=a.width(),l=a[0].style.width;a.width(r-1).width(r),a[0].style.width=l}}function d(t,o,n){var i=o==window,a=e(o);if((t||(!i||s)&&(i||a.data("blockUI.isBlocked")))&&(a.data("blockUI.isBlocked",t),i&&n.bindEvents&&(!t||n.showOverlay))){var r="mousedown mouseup keydown keypress keyup touchstart touchend touchmove";t?e(document).bind(r,n,u):e(document).unbind(r,u)}}function u(t){if("keydown"===t.type&&t.keyCode&&9==t.keyCode&&s&&t.data.constrainTabKey){var o=a,n=!t.shiftKey&&t.target===o[o.length-1],i=t.shiftKey&&t.target===o[0];if(n||i)return setTimeout(function(){f(i)},10),!1}var r=t.data,l=e(t.target);return l.hasClass("blockOverlay")&&r.onOverlayClick&&r.onOverlayClick(t),l.parents("div."+r.blockMsgClass).length>0||0===l.parents().children().filter("div.blockUI").length}function f(e){if(a){var t=a[!0===e?a.length-1:0];t&&t.focus()}}function p(t,o){return parseInt(e.css(t,o),10)||0}}"function"==typeof define&&define.amd&&define.amd.jQuery?define(["jquery"],e):e(jQuery)}(),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?module.exports=e(require("jquery")):e(jQuery)}(function(e){var t=/\+/g;function o(e){return i.raw?e:encodeURIComponent(e)}function n(o,n){var s=i.raw?o:function(e){0===e.indexOf('"')&&(e=e.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return e=decodeURIComponent(e.replace(t," ")),i.json?JSON.parse(e):e}catch(e){}}(o);return e.isFunction(n)?n(s):s}var i=e.cookie=function(t,s,a){if(arguments.length>1&&!e.isFunction(s)){if("number"==typeof(a=e.extend({},i.defaults,a)).expires){var r=a.expires,l=a.expires=new Date;l.setMilliseconds(l.getMilliseconds()+864e5*r)}return document.cookie=[o(t),"=",function(e){return o(i.json?JSON.stringify(e):String(e))}(s),a.expires?"; expires="+a.expires.toUTCString():"",a.path?"; path="+a.path:"",a.domain?"; domain="+a.domain:"",a.secure?"; secure":""].join("")}for(var c,d=t?void 0:{},u=document.cookie?document.cookie.split("; "):[],f=0,p=u.length;f<p;f++){var m=u[f].split("="),h=(c=m.shift(),i.raw?c:decodeURIComponent(c)),g=m.join("=");if(t===h){d=n(g,s);break}t||void 0===(g=n(g))||(d[h]=g)}return d};i.defaults={},e.removeCookie=function(t,o){return e.cookie(t,"",e.extend({},o,{expires:-1})),!e.cookie(t)}}),function(e){e(["jquery"],function(e){return function(){var t,o,n,i=0,s={error:"error",info:"info",success:"success",warning:"warning"},a={clear:function(o,n){var i=u();t||r(i);l(o,i,n)||function(o){for(var n=t.children(),i=n.length-1;i>=0;i--)l(e(n[i]),o)}(i)},remove:function(o){var n=u();t||r(n);if(o&&0===e(":focus",o).length)return void f(o);t.children().length&&t.remove()},error:function(e,t,o){return d({type:s.error,iconClass:u().iconClasses.error,message:e,optionsOverride:o,title:t})},getContainer:r,info:function(e,t,o){return d({type:s.info,iconClass:u().iconClasses.info,message:e,optionsOverride:o,title:t})},options:{},subscribe:function(e){o=e},success:function(e,t,o){return d({type:s.success,iconClass:u().iconClasses.success,message:e,optionsOverride:o,title:t})},version:"2.1.2",warning:function(e,t,o){return d({type:s.warning,iconClass:u().iconClasses.warning,message:e,optionsOverride:o,title:t})}};return a;function r(o,n){return o||(o=u()),(t=e("#"+o.containerId)).length?t:(n&&(t=function(o){return(t=e("<div/>").attr("id",o.containerId).addClass(o.positionClass).attr("aria-live","polite").attr("role","alert")).appendTo(e(o.target)),t}(o)),t)}function l(t,o,n){var i=!(!n||!n.force)&&n.force;return!(!t||!i&&0!==e(":focus",t).length)&&(t[o.hideMethod]({duration:o.hideDuration,easing:o.hideEasing,complete:function(){f(t)}}),!0)}function c(e){o&&o(e)}function d(o){var s=u(),a=o.iconClass||s.iconClass;if(void 0!==o.optionsOverride&&(s=e.extend(s,o.optionsOverride),a=o.optionsOverride.iconClass||a),!function(e,t){if(e.preventDuplicates){if(t.message===n)return!0;n=t.message}return!1}(s,o)){i++,t=r(s,!0);var l=null,d=e("<div/>"),p=e("<div/>"),m=e("<div/>"),h=e("<div/>"),g=e(s.closeHtml),b={intervalId:null,hideEta:null,maxHideTime:null},v={toastId:i,state:"visible",startTime:new Date,options:s,map:o};return o.iconClass&&d.addClass(s.toastClass).addClass(a),o.title&&(p.append(s.escapeHtml?y(o.title):o.title).addClass(s.titleClass),d.append(p)),o.message&&(m.append(s.escapeHtml?y(o.message):o.message).addClass(s.messageClass),d.append(m)),s.closeButton&&(g.addClass("toast-close-button").attr("role","button"),d.prepend(g)),s.progressBar&&(h.addClass("toast-progress"),d.prepend(h)),s.newestOnTop?t.prepend(d):t.append(d),d.hide(),d[s.showMethod]({duration:s.showDuration,easing:s.showEasing,complete:s.onShown}),s.timeOut>0&&(l=setTimeout(k,s.timeOut),b.maxHideTime=parseFloat(s.timeOut),b.hideEta=(new Date).getTime()+b.maxHideTime,s.progressBar&&(b.intervalId=setInterval(I,10))),function(){d.hover(x,w),!s.onclick&&s.tapToDismiss&&d.click(k);s.closeButton&&g&&g.click(function(e){e.stopPropagation?e.stopPropagation():void 0!==e.cancelBubble&&!0!==e.cancelBubble&&(e.cancelBubble=!0),k(!0)});s.onclick&&d.click(function(e){s.onclick(e),k()})}(),c(v),s.debug&&console&&console.log(v),d}function y(e){return null==e&&(e=""),new String(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function k(t){var o=t&&!1!==s.closeMethod?s.closeMethod:s.hideMethod,n=t&&!1!==s.closeDuration?s.closeDuration:s.hideDuration,i=t&&!1!==s.closeEasing?s.closeEasing:s.hideEasing;if(!e(":focus",d).length||t)return clearTimeout(b.intervalId),d[o]({duration:n,easing:i,complete:function(){f(d),s.onHidden&&"hidden"!==v.state&&s.onHidden(),v.state="hidden",v.endTime=new Date,c(v)}})}function w(){(s.timeOut>0||s.extendedTimeOut>0)&&(l=setTimeout(k,s.extendedTimeOut),b.maxHideTime=parseFloat(s.extendedTimeOut),b.hideEta=(new Date).getTime()+b.maxHideTime)}function x(){clearTimeout(l),b.hideEta=0,d.stop(!0,!0)[s.showMethod]({duration:s.showDuration,easing:s.showEasing})}function I(){var e=(b.hideEta-(new Date).getTime())/b.maxHideTime*100;h.width(e+"%")}}function u(){return e.extend({},{tapToDismiss:!0,toastClass:"toast",containerId:"toast-container",debug:!1,showMethod:"fadeIn",showDuration:300,showEasing:"swing",onShown:void 0,hideMethod:"fadeOut",hideDuration:1e3,hideEasing:"swing",onHidden:void 0,closeMethod:!1,closeDuration:!1,closeEasing:!1,extendedTimeOut:1e3,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},iconClass:"toast-info",positionClass:"toast-top-right",timeOut:5e3,titleClass:"toast-title",messageClass:"toast-message",escapeHtml:!1,target:"body",closeHtml:'<button type="button">&times;</button>',newestOnTop:!0,preventDuplicates:!1,progressBar:!1},a.options)}function f(e){t||(t=r()),e.is(":visible")||(e.remove(),e=null,0===t.children().length&&(t.remove(),n=void 0))}}()})}("function"==typeof define&&define.amd?define:function(e,t){"undefined"!=typeof module&&module.exports?module.exports=t(require("jquery")):window.toastr=t(window.jQuery)}),window.console&&window.console.log||(window.console={log:function(){}}),$(function(){$(document).ajaxError(function(e,t,o){var n="알수없는 오류가 발생하였습니다.";void 0!==t.responseJSON&&void 0!==t.responseJSON.message?n=t.responseJSON.message:500==t.status?n="서버 코드 오류가 발생하였습니다.\n관리자에게 문의하세요":401==t.status&&(n="해당 명령을 실행할 권한이 없습니다."),toastr.error(n,"오류 발생")}).ajaxStart(function(){$.blockUI({css:{width:"25px",top:"49%",left:"49%",border:"0px none",backgroundColor:"transparent",cursor:"wait"},message:'<img src="/assets/images/common/ajax-loader.gif" alt="로딩중">',baseZ:1e4,overlayCSS:{opacity:0}})}).ajaxComplete(function(){$.unblockUI()})});var APP={POPUP:null,REGEX:{}};APP.REGEX.uniqueID=/^[a-z][a-z0-9_]{2,19}$/g,function(e){APP.POPUP=function(t){var o=e.extend({},{title:"_blank",width:800,height:600,url:""},t);cw=screen.availWidth,ch=screen.availHeight,sw=o.width,sh=o.height,ml=(cw-sw)/2,mt=(ch-sh)/2;t="width="+sw+",height="+sh+",top="+mt+",left="+ml+",scrollbars=yes,resizable=no";var n=window.open(o.url,o.title,t);(null==n||void 0===n||null==n&&0==n.outerWidth||null!=n&&0==n.outerHeight)&&alert("팝업 차단 기능이 설정되어있습니다\n\n차단 기능을 해제(팝업허용) 한 후 다시 이용해 주십시오.")}}(jQuery),APP.SET_LANG=function(e){$.cookie("site_lang",e,{expires:30,path:"/"}),location.reload()},$('[data-toggle="btn-popup-close"]').click(function(e){var t=$(this).data("type"),o=$(this).data("idx"),n=$(this).data("cookie");"Y"==t?window.close():"N"==t&&$("#popup-"+o).remove(),1==n&&$.cookie("popup_"+o,1,{expires:1,path:"/"})}),$("a[data-toggle='sns-share']").click(function(e){e.preventDefault();var t=$(this),o=t.data("service"),n=t.data("url"),i=t.data("title"),s="",a=$("meta[name='og:image']").attr("content");if(o&&n&&i){if("facebook"==o)s="//www.facebook.com/sharer/sharer.php?u="+encodeURIComponent(n);else if("twitter"==o)s="//twitter.com/home?status="+encodeURIComponent(i)+" "+n;else if("google"==o)s="//plus.google.com/share?url="+n;else if("pinterest"==o)s="//www.pinterest.com/pin/create/button/?url="+n+"&media="+a+"&description="+encodeURIComponent(i);else if("kakaostory"==o)s="https://story.kakao.com/share?url="+encodeURIComponent(n);else if("band"==o)s="http://www.band.us/plugin/share?body="+encodeURIComponent(i)+"%0A"+encodeURIComponent(n);else if("naver"==o)s="http://share.naver.com/web/shareView.nhn?url="+encodeURIComponent(n)+"&title="+encodeURIComponent(i);else{if("line"!=o)return!1;s="http://line.me/R/msg/text/?"+encodeURIComponent(i+"\n"+n)}return APP.POPUP({url:s}),!1}}),APP.MEMBER={},APP.MEMBER.init=function(){APP.MEMBER.InitLoginForm(),APP.MEMBER.initCheckExist(),APP.MEMBER.InitRegisterForm(),APP.MEMBER.InitMemberModifyForm()},APP.MEMBER.InitRegisterForm=function(){$('[data-form="form-register"]').submit(function(e){e.preventDefault();var t=$(this);$.ajax({type:"PUT",data:t.serialize(),url:base_url+"/ajax/members/info",success:function(e){1==e.result&&(alert(LANG.member_join_success),location.href=base_url+"/members/login")}})})},APP.MEMBER.InitMemberModifyForm=function(){$('[data-form="form-member-modify"]').submit(function(e){e.preventDefault();var t=$(this);$.ajax({type:"POST",data:t.serialize(),url:base_url+"/ajax/members/info",success:function(e){1==e.result&&(alert(e.message),location.reload())}})})},APP.MEMBER.InitLoginForm=function(){$('[data-role="form-login"]').submit(function(e){e.preventDefault();var t=$(this),o=t.find('[name="login_id"]'),n=t.find('[name="login_pass"]');return""==o.val().trim()?(alert(LANG.member_login_userid_required),o.focus(),!1):""==n.val().trim()?(alert(LANG.member_login_password_required),n.focus(),!1):void $.ajax({url:base_url+"ajax/members/login",type:"POST",data:t.serialize(),success:function(e){1==e.result&&(location.href=e.reurl?e.reurl:base_url)},error:function(e){n.val("")}})})},APP.MEMBER.initCheckExist=function(){$('[data-toggle="check-member-exist"]').each(function(){var e=$(this);e.on("click",function(){var t=$("#"+e.data("target")),o=e.data("check"),n=t.val();if(void 0===n||!n||!n.trim())return alert(LANG.member_join_user_id_required),t.focus(),!1;var i=APP.MEMBER.denyWordCheck(o,n);return"VALID_EMAIL"==i?(alert(LANG.member_join_no_valid_email_address),t.focus(),!1):i?APP.MEMBER.getInfo(o,n)?(alert(LANG.member_join_user_id_already_exists),t.focus(),!1):(alert(LANG.member_join_user_id_available),!0):(alert(LANG.member_join_user_id_contains_deny_word),t.focus(),!1)})})},APP.MEMBER.getInfo=function(e,t){var o=null;return $.ajax({url:base_url+"/ajax/members/info",type:"get",async:!1,cache:!1,data:{key:e,value:t},success:function(e){o=e.result}}),o},APP.MEMBER.denyWordCheck=function(e,t){var o=null;return $.ajax({url:base_url+"/ajax/members/word_check",type:"get",async:!1,cache:!1,data:{key:e,value:t},success:function(e){o=e.result}}),o},APP.MEMBER.POP_CHANGE_PHOTO=function(){APP.POPUP({url:"/members/photo_change",width:600,height:150})},$(document).ready(APP.MEMBER.init),APP.BOARD={},APP.BOARD.CATEGORY={},APP.BOARD.EXTRA={},APP.BOARD.COMMENT={},APP.BOARD.CATEGORY.count=function(e){if(void 0===e||!e)return 0;var t=0;return $.ajax({url:base_url+"/ajax/board/category_count",type:"get",cache:!1,async:!1,data:{bca_idx:e},success:function(e){t=e.result}}),t},APP.BOARD.CATEGORY.postCount=function(e){if(void 0===e||!e)return 0;var t=0;return $.ajax({url:base_url+"/ajax/board/category_post_count",type:"get",cache:!1,async:!1,data:{bca_idx:e},success:function(e){t=e.result}}),t},APP.BOARD.COMMENT.modify=function(e){APP.POPUP({title:"_blank",width:800,height:600,url:base_url+"/board/comment/modify/"+e})},APP.BOARD.COMMENT.reply=function(e,t){APP.POPUP({title:"_blank",width:800,height:600,url:base_url+"/board/comment/reply/"+e+"/"+t})},$(function(){var e=$('[data-form="post"]');e.length>0&&e.on("submit",function(){$.blockUI({css:{width:"25px",top:"49%",left:"49%",border:"0px none",backgroundColor:"transparent",cursor:"wait"},message:'<img src="/assets/images/common/ajax-loader.gif" alt="로딩중">',baseZ:1e4,overlayCSS:{opacity:0}})})});