1///////////////////////////////////////////////////////////////////////////// 2var _thisLayout_style = {};var _orgLayout_style = {};var _thisPage_cfg = {}; 3function checkPageStyle(){ 4 _orgLayout_style = $.extend({},_thisLayout_style); _thisLayout_style = getPageStyle(); 5} 6function getPageStyle(){ 7 var pg_type = {}; 8 9 var chkW = $("body").width(); 10 if(_isLowBr_ && chkW >999) chkW = wsize.win.w; 11 12 return pg_type; 13 14} 15 16///////////////////////////////////////////////////////////////////////////// 17 18function _getLayoutHeaderHeight(){ 19 20 return $("#header-wrap").height(); 21} 22 23function _getLayoutFooterHeight(){ 24 25 return $("#footer-wrap").height(); 26} 27 28 29//////////////////////////////////////////////////// 30 31$(function() { 32 tabMenu.getTabState(); 33 tabMenu.mTabCast(); 34 //tabMenu.mTabAbtnCast(); 35}); 36var cWidth = $(window).width(); 37$(window).resize(function() { 38 if ( cWidth != $(window).width() ) { 39 tabMenu.getTabState(); 40 cWidth = $(window).width(); 41 } 42}); 43var tabMenu = { 44 init : function() { 45 }, 46 getTabState : function() { 47 var thiss = this; 48 if ( $(window).width() <= 800 ) { 49 if ( $("body .c-tab01 ul li").length > 4 ) { 50 $("body .c-tab01").each(function() { 51 thiss.setMtab( $(this), "set" ); 52 }); 53 } else { 54 $("body .c-tab01").addClass("mSpredCtab"); 55 } 56 57 if ( $("body .c-tab02 ul li").length > 4 ) { 58 $("body .c-tab02").each(function() { 59 thiss.setMtab( $(this), "set" ); 60 }); 61 } else { 62 $("body .c-tab02").addClass("mSpredCtab"); 63 } 64 65 if ( $("body .hasManualTab1 ul li").length > 4 ) { 66 $("body .hasManualTab1").each(function() { 67 thiss.setMtab( $(this), "set" ); 68 }); 69 } else { 70 $("body .hasManualTab1").addClass("mSpredCtab"); 71 } 72 } else if ( $(window).width() > 800 ) { 73 $("body .c-tab01").each(function() { 74 thiss.setMtab( $(this), "release" ); 75 }); 76 $("body .c-tab02").each(function() { 77 thiss.setMtab( $(this), "release" ); 78 }); 79 $("body .hasManualTab1").each(function() { 80 thiss.setMtab( $(this), "release" ); 81 }); 82 } 83 }, 84 setMtab : function( $obj, action ) { 85 var cTabType = $obj.attr("class").split(" ")[0]; 86 var num = util.getNumberOnly( cTabType ); 87 var txt = $obj.find("li.active a").text(); 88 if ( action == "set" ) { 89 $obj.addClass("mSet"); 90 if ( $obj.find(".ctab" + num + "Ctrl").length <= 0 ) { 91 $obj.prepend("<button class='ctab" + num + "Ctrl'><span>" + txt + "</span></button>"); 92 } else { 93 $obj.find(".ctab" + num + "Ctrl").removeClass("active"); 94 } 95 $("ul", $obj).hide(); 96 } else if ( action == "release" ) { 97 $obj.removeClass("mSet mSpredCtab"); 98 if ( $obj.find(".ctab" + num + "Ctrl").length >= 1 ) { 99 $obj.find(".ctab" + num + "Ctrl").remove(); 100 } 101 $("ul", $obj).show(); 102 } 103 }, 104 mTabCast : function() { 105 $(document).on("click", ".mSet > button", function( e ) { 106 if ( e.which ) { 107 var thisb = $(this); 108 $tabUL = $(this).next(); 109 if ( $(this).hasClass("active") ) { 110 $(this).removeClass("active"); 111 $tabUL.slideUp(); 112 } else { 113 $(this).addClass("active"); 114 $tabUL.slideDown(); 115 } 116 $(".mSet").each(function() { 117 $notThisb = $(".mSet > button").not( thisb ); 118 if ( $notThisb.hasClass("active") ) { 119 $notThisb.removeClass("active"); 120 $notThisb.next().slideUp(); 121 } 122 }); 123 } 124 }); 125 $(document).on("click", ".mSet ul li a", function() { 126 console.log( "1" ); 127 $txtMsg = $("span", $(this) ).text(); 128 $(this).closest("ul").prev().find("span").text( $txtMsg ); 129 $(this).closest("ul").slideUp(); 130 $(this).closest("ul").prev().removeClass("active"); 131 }); 132 }, 133 mTabAbtnCast : function(){ 134 var mTabAbtn = $(".mSet ul li a"); 135 mTabAbtn.on("click", function() { 136 console.log( "2" ); 137 $(this).closest("ul").prev().removeClass("active"); 138 $(this).closest("ul").slideUp(); 139 }); 140 } 141} 142 143 144///////////////////////////////////////////////////////////////////////////// 145 146 147//ì ì²´ ë©ë´ 보기 148function viewSiteAllMenu(){ 149 if(mainNavi.mnType=="H"){ 150 mainNavi_H.toggleMenu(); 151 return false; 152 }else{ 153 return true; 154 } 155 156} 157 158// ë°ìí í ì´ë¸ ìë´ë¬¸êµ¬ 159function setContAutoWidth(){ 160 if($(".is-wauto-box").length>0 ) { 161 if( typeof(setMinWidthAutoScrollBox) !="function" ) $.getScript("jquery.cs_wauto.js",function(){ setMinWidthAutoScrollBox(); }); 162 else{ setMinWidthAutoScrollBox(); } 163 } 164} 165 166 167//ë¤ì¤í´ë© 168function viewFolingListItem(idx){ 169 var obj = $(".foldings-list #foldings-data"+idx); 170 var obj_other = $(".foldings-list li").not("#foldings-data"+idx); 171 172 $(".foldings-in-cont",$(obj_other)).slideUp("fast"); 173 $(obj_other).removeClass("over"); 174 175 $(".foldings-list li div a").attr("title", "ì¶ìë¨"); 176 if(obj.hasClass("over")){ 177 178 $(".foldings-in-cont",$(obj)).slideUp("fast"); 179 $(obj).removeClass("over"); 180 //$(".foldings-list #foldings-data"+idx+" div a").attr("title", "ì¶ìë¨"); 181 }else{ 182 183 $(".foldings-in-cont",$(obj)).slideDown("fast"); 184 $(obj).addClass("over"); 185 $(".foldings-list #foldings-data"+idx+" div a").attr("title", "íì¥ë¨"); 186 } 187 188} 189 190//ì´ë¯¸ì§ íë보기 191function resetImgZoom(){ 192 var zwObj = $('.img-zoom'); 193 194 zwObj.each(function(){ 195 var this_s = $(this); 196 var zwObjImg = this_s.children("img"); 197 var zwObjUrl = zwObjImg.attr("src"); 198 var win_w = $(window).innerWidth(); 199 200 if(win_w<=768){ 201 if($(".btn-zoom", $(this)).length<1 ){
202 this_s.append("<a href='" + zwObjUrl + "' class='btn-zoom' target='_blank' title='ìì°½ì´ë¦¼'><span class='blind'>ì´ë¯¸ì§ íë보기</span></a>"); 203 zwObjImg.addClass("zoom"); 204 } 205 } else { 206 $(".btn-zoom", $(this).parent()).remove(); 207 zwObjImg.removeClass("zoom"); 208 } 209 }); 210 211} 212 213$(document).ready(function(){ 214 $(".fsitelink").each(function(){ 215 $(".tit a",this).click(function(){ 216 var gr = $($(this).parents(".fsitelink").get(0)); 217 var toH = $("ul",gr).outerHeight(); 218 if(gr.hasClass("is-open")){ 219 gr.removeClass("is-open"); 220 } 221 else { 222 $(".fsitelink").removeClass("is-open"); 223 gr.addClass("is-open"); 224 } 225 return false; 226 }); 227 }); 228}); 229 230$(function() { 231 lang.init(); 232 tsns.init(); 233 totaldsearch.init(); 234}); 235 236//ì¸ì´ì í 237var lang = { 238 init : function() { 239 this.exec(); 240 }, 241 exec : function() { 242 $langBtn = $(".gnb-links .lang button"); 243 $langBtn.on("click", function() { 244 $closeDL = $(this).closest("dl"); 245 if ( $closeDL.hasClass("over") ) { 246 $closeDL.removeClass("over"); 247 $("dd", $closeDL ).slideUp(); 248 $(".gnb-links .lang button").attr("title", "ì¸ì´ì í ì¶ìë¨"); 249 } else { 250 $closeDL.addClass("over"); 251 $("dd", $closeDL ).slideDown(); 252 $(".gnb-links .lang button").attr("title", "ì¸ì´ì í íì¥ë¨"); 253 } 254 }); 255 } 256} 257 258//ê³µì 259var tsns = { 260 init : function() { 261 this.exec(); 262 }, 263 exec : function() { 264 $tsnsBtn = $(".cont-top .utilBox .tsnsBox dl button"); 265 $tsnsBtn.on("click", function() { 266 $closeDL = $(this).closest("dl"); 267 if ( $closeDL.hasClass("over") ) { 268 $closeDL.removeClass("over"); 269 $("dd", $closeDL ).slideUp(); 270 } else { 271 $closeDL.addClass("over"); 272 $("dd", $closeDL ).slideDown(); 273 } 274 }); 275 } 276} 277 278//íµí©ê²ì - ìì¸ê²ì 279var totaldsearch = { 280 init : function() { 281 this.exec(); 282 }, 283 exec : function() { 284 $langBtn = $(".searchrst-form .bd-btn-dsearch dl dt button"); 285 $langBtn.on("click", function() { 286 $closeDL = $(this).closest("dl"); 287 if ( $closeDL.hasClass("over") ) { 288 $closeDL.removeClass("over"); 289 $("dd", $closeDL ).slideUp(); 290 $(".totalSearch-wr").removeClass("dschTop"); 291 } else { 292 $closeDL.addClass("over"); 293 $("dd", $closeDL ).slideDown(); 294 $(".totalSearch-wr").addClass("dschTop"); 295 } 296 }); 297 } 298} 299 300 301function getCookie(cookieName) { 302 cookieName = cookieName + '='; 303 var cookieData = document.cookie; 304 var start = cookieData.indexOf(cookieName); 305 var cookieValue = ''; 306 if(start != -1){ 307 start += cookieName.length; 308 var end = cookieData.indexOf(';', start); 309 if(end == -1)end = cookieData.length; 310 cookieValue = cookieData.substring(start, end); 311 } 312 return unescape(cookieValue); 313} 314 315function setCookie(cookieName, value, exdays){ 316 var exdate = new Date(); 317 exdate.setDate(exdate.getDate() + exdays); 318 var cookieValue = escape(value) + ((exdays==null) ? "" : "; expires=" + exdate.toGMTString()); 319 document.cookie = cookieName + "=" + cookieValue; 320} 321 322function deleteCookie(cookieName){ 323 var expireDate = new Date(); 324 expireDate.setDate(expireDate.getDate() - 1); 325 document.cookie = cookieName + "= " + "; expires=" + expireDate.toGMTString(); 326} 327 328function sendSns(sns) { 329 330 var o; 331 var _url = encodeURIComponent(location.href); 332 var _txt = encodeURIComponent(document.getElementsByTagName('TITLE')[0].text); 333 var _br = encodeURIComponent('\r\n'); 334 var _br2 = encodeURIComponent('\n'); 335 336 switch(sns) { 337 338 case 'facebook': 339 o = { 340 method:'popup', 341 url:'http://www.facebook.com/sharer/sharer.php?u=' + _url 342 }; 343 break; 344 345 case 'twitter': 346 o = { 347 method:'popup', 348 url:'http://twitter.com/intent/tweet?text=' + _txt + '&url=' + _url 349 }; 350 break; 351 352 case 'me2day': 353 o = { 354 method:'popup', 355 url:'http://me2day.net/posts/new?new_post[body]=' + _txt + _br + _url + '&new_post[tags]=epiloum' 356 }; 357 break; 358 case "naver": 359 o = { 360 method:'popup', 361 url:'http://blog.naver.com/openapi/share?title=' + _txt + '&url='+_url 362 }; 363 break; 364 case 'kakaotalk': 365 o = {
366 method:'web2app', 367 param:'sendurl?msg=' + _txt + '&url=' + _url + '&type=link&apiver=2.0.1&appver=2.0&appid=dev.epiloum.net&appname=' + encodeURIComponent('Epiloum ê°ë°ë ¸í¸'), 368 a_store:'itms-apps://itunes.apple.com/app/id362057947?mt=8', 369 g_store:'market://details?id=com.kakao.talk', 370 a_proto:'kakaolink://', 371 g_proto:'scheme=kakaolink;package=com.kakao.talk' 372 }; 373 break; 374 375 case 'kakaostory': 376 o = { 377 method:'popup2', 378 url:'https://story.kakao.com/s/share?url=' + _url +'&text='+ _txt 379 }; 380 break; 381 case 'band': 382 o = { 383 384 method:'popup2', 385 url:'http://www.band.us/plugin/share?body='+ _txt +''+ _br2 + '' +_url + '&route=www.gjfac.org' 386 387 }; 388 break; 389 390 default: 391 alert('ì§ìíì§ ìë SNSì ëë¤.'); 392 return false; 393 } 394 395 switch(o.method) { 396 397 case 'popup': 398 window.open(o.url); 399 break; 400 case 'popup2': 401 window.open(o.url,'', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600'); 402 break; 403 case 'web2app': 404 if(navigator.userAgent.match(/android/i)) 405 { 406 // Android 407 setTimeout(function(){ location.href = 'intent://' + o.param + '#Intent;' + o.g_proto + ';end'}, 100); 408 } 409 else if(navigator.userAgent.match(/(iphone)|(ipod)|(ipad)/i)) 410 { 411 // Apple 412 setTimeout(function(){ location.href = o.a_store; }, 200); 413 setTimeout(function(){ location.href = o.a_proto + o.param }, 100); 414 } 415 else 416 { 417 alert('ì´ ê¸°ë¥ì 모ë°ì¼ììë§ ì¬ì©í ì ììµëë¤.'); 418 } 419 break; 420 } 421}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.