$(function(){let t,e,a;$("#ext_search select").selectric(),function t(){let e="",a=[],i=[],n=window.location.search,r=new URLSearchParams(n);if($("select[name=com_board_category_code]").length){let l=r.get("com_board_category_code"),s=$("select[name=com_board_category_code]").attr("onchange").split("'")[1]+"com_board_category_code=",c="";$("select[name=com_board_category_code] option").each(function(){let t=$(this);a.push(t.text()),i.push(t.val())});for(let o=0;o${a[o]}`;$(".category-button-wrapper").empty().append(e)}}(),t=$("input[type=image]"),e=$("img"),a=["검색","확인","댓글작성","삭제","이동","복사","이전","목록","다음","스팸신고","수정","삭제","답변","글쓰기","작성완료","취소"],t.each(function(){let t=$(this).attr("src");t.indexOf("search.gif")>-1&&($(this).before(``),$(document).on("click","#btn-search",function(){$(this).next("input[type=image]").trigger("click")}),$(this).hide()),t.indexOf("confirm.gif")>-1&&($(this).before(``),$(this).hide()),t.indexOf("comment_write.gif")>-1&&($(this).before(``),$(document).on("click","#btn-comment-write",function(){$(this).next("input[type=image]").trigger("click")}),$(this).hide())}),e.each(function(){let t=$(this).attr("src"),e=$(this).attr("onclick");t.indexOf("btn_sdel.gif")>-1&&($(this).before(``),$(this).remove()),t.indexOf("move.gif")>-1&&($(this).before(``),$(this).remove()),t.indexOf("copy.gif")>-1&&($(this).before(``),$(this).remove()),t.indexOf("/prev.gif")>-1&&$(this).parent().addClass("button-b button--default").text(a[6]),t.indexOf("list.gif")>-1&&$(this).parent().addClass("button-b button--dark").text(a[7]),t.indexOf("/next.gif")>-1&&$(this).parent().addClass("button-b button--default").text(a[8]),t.indexOf("spam.gif")>-1&&($(this).before(``),$(this).remove()),t.indexOf("modify.gif")>-1&&$(this).parent().addClass("button-b button--default").text(a[10]),t.indexOf("delete.gif")>-1&&$(this).parent().addClass("button-b button--default").text(a[11]),t.indexOf("reply.gif")>-1&&$(this).parent().addClass("button-b button--default").text(a[12]),t.indexOf("write.gif")>-1&&$(this).parent().addClass("button-b button--dark size--3").text(a[13]),t.indexOf("btn_confirm.gif")>-1&&$(this).parent().addClass("button-b button--primary").text(a[14]),t.indexOf("cancel.gif")>-1&&$(this).parent().addClass("button-b button--default button--lg").text(a[15])}),function t(){if(!$(".board-gallery").length)return!1;let e=[],a=[],i=[],n=[],r="",l=$(".board-gallery .gallery-list").data("column")?$(".board-gallery .gallery-list").data("column"):3,s="";switch(l){case 1:s="col-xl-12";break;case 2:s="col-xl-6";break;case 3:default:s="col-xl-4";break;case 4:s="col-xl-3";break;case 5:s="col-xl-2-5";break;case 6:s="col-xl-2"}if($(".board-gallery").hasClass("type-a")){$(".board-gallery .article-wrapper > .photo-article-list > tbody > tr").each(function(){let t=$(this).find(".bbsnewf5");e.push(t.find("img").attr("src")),a.push(t.find(".gallery_subject>a").attr("href")),i.push(t.find(".gallery_title").text()),n.push(t.find(".gallery_etc").text().split(":")[1].replace("]",""))}),r='
';for(let c=0;c
${i[c]}
${n[c]}
${i[c]}
`;r+="",$(".board-gallery .article-wrapper").empty().append(r)}else if($(".board-gallery").hasClass("type-b")){$(".board-gallery .article-wrapper > .photo-article-list > tbody > tr").each(function(){let t=$(this).find(".bbsnewf5");e.push(t.find("img").attr("src")),a.push(t.find(".gallery_subject>a").attr("href")),i.push(t.find(".gallery_title").text()),n.push(t.find(".gallery_etc").text().split(":")[1].replace("]",""))}),r='
';for(let o=0;o
${i[o]}
${n[o]}
${i[o]}
`;r+="",$(".board-gallery .article-wrapper").empty().append(r)}}(),function t(){if(!$(".faq-list .table-article-list .titdesign").length)return!1;let e=`
`;$(".faq-list .table-article-list .bbsnewf5 > a").on("click",t=>{if(!$('input[name="delete_check_notice[]"]').length){t.preventDefault();let a=$(t.currentTarget),i=a.attr("href"),n="";$.ajax({url:i,method:"GET",contentType:"application/x-www-form-urlencoded;charset=euc-kr",dataType:"html",async:!1,success:function(t){n=` ${$(t).find("#post_area").html()} `,a.closest(".titdesign").hasClass("article--open")?(a.parent().siblings(".reply-content").remove(),a.closest(".titdesign").removeClass("article--open")):($(".titdesign").removeClass("article--open"),$(".reply-content").remove(),a.parent().after(n),a.closest(".titdesign").addClass("article--open"))},error:function(t){alert("오류가 발생하였습니다.")},beforeSend:function(t){t.overrideMimeType("application/x-www-form-urlencoded;charset=euc-kr"),$("body").prepend(e)},complete:function(){$("#ajax-loader").remove()}})}})}(),function t(){if(!$(".board-event").length)return!1;let e=[],a=[],i=[],n=[],r=[],l="";$(".board-event .article-wrapper > .event-article-list > tbody > tr").each(function(){let t=$(this).find(".bbsnewf5");e.push(t.find("img").attr("src")),a.push(t.find(".gallery_subject>a").attr("href")),i.push(t.find(".gallery_title").text()),n.push(t.find(".gallery_etc").text().split(":")[1].replace(",","").replace("이벤트 종료일","")),r.push(t.find(".gallery_etc").text().split(":")[2].replace("]",""))}),l='
';for(let s=0;s
${i[s]}
${n[s]} ~ ${r[s]}

${i[s]}

`;l+="",$(".board-event .article-wrapper").empty().append(l)}()});