1$(function () { 2 // $("#wrap #header .inner .issue_pick .list ul").slick({ 3 // slidesToShow: 4, 4 // slidesToScroll: 1, 5 // autoplay: true, 6 // autoplaySpeed: 3000, 7 // arrows: true, 8 // infinite: true, 9 // swipte: true, 10 // prevArrow: $('.issue_pick .btn_prev'), 11 // nextArrow: $('.issue_pick .btn_next') 12 // }); 13 14 // $(".main_webinar .list_box").slick({ 15 // slidesToShow: 1, 16 // slidesToScroll: 1, 17 // autoplay: true, 18 // autoplaySpeed: 3000, 19 // arrows: true, 20 // infinite: true, 21 // swipte: true, 22 // dots: true 23 // }); 24 25 /* íìì */ 26 $(".tab .tab_nav li").click(function () { 27 var _this = $(this); 28 var idx = _this.index(); 29 $(".tab .tab_nav li").removeClass("on"); 30 _this.addClass("on"); 31 _this.parent().parent().find(".tab_cont > div").removeClass("on"); 32 _this.parent().parent().find(".tab_cont > div").eq(idx).addClass("on"); 33 }); 34 35 /* ì¬ë¼ì´ë ì´ë¯¸ì§ ëë¤ */ 36 $.fn.randomize = function (selector) { 37 var $elems = selector ? $(this).find(selector) : $(this).children(), 38 $parents = $elems.parent(); 39 40 $parents.each(function () { 41 $(this).children(selector).sort(function (childA, childB) { 42 // * Prevent last slide from being reordered 43 if ($(childB).index() !== $(this).children(selector).length - 1) { 44 return Math.round(Math.random()) - 0.5; 45 } 46 }.bind(this)).detach().appendTo(this); 47 }); 48 49 return this; 50 }; 51 52 /* ì¬ë¼ì´ë ìì */ 53 $('.banner_slide').each(function () { 54 $(this).randomize().slick({ 55 slidesToShow: 1, 56 slidesToScroll: 1, 57 arrows: true, 58 dots: false, 59 autoplay: true, 60 autoplaySpeed: 4000, 61 fade: true 62 }); 63 }); 64 65 //gnb ìì ìì ////////////////////////////////////////////////////////////// 66 //ì ì²´ë©ë´ í´ë¦ì 67 $('.total_menu_btn').on('click', function () { 68 var classNme = $(this).hasClass('change'); 69 if (classNme) { 70 $(this).removeClass('change') 71 } else { 72 $(this).addClass('change') 73 } 74 }); 75 76 //ì ì²´ë©ë´ ë²í¼ í´ë¦ ì 77 $('.total_menu_btn').on('click', function () { 78 var displayVal = $('.total_menu_wrap').css('display'); 79 80 if (displayVal == 'block') { 81 $('.total_menu_wrap').stop().slideUp(); 82 } else if (displayVal == 'none') { 83 $('.total_menu_wrap').stop().slideDown(); 84 } 85 86 //ì ì²´ ë©ë´ masonry 87 $('.total_menu_wrap .inner .bottom_menu > ul').masonry({ 88 itemSelector: '.total_menu_wrap .inner .bottom_menu > ul li.panel', 89 columnWidth: 135, 90 gutter: 10, 91 horizontalOrder: true, 92 // originLeft: false //ì¼ìª½ë¶í° ì ë ¬ 93 // originTop: false //ë°ë¥ë¶í° 94 // transitionDuration: '0.2s' //ìì¹ ì í ìê° 95 }); 96 }); 97 98 //GNBë©ë´ 2depth ë©ë´ on/off 99 $("#gnb ul li .depth2_wrap").hide(); 100 $("#gnb ul li").eq(0).addClass('all_article'); 101 $.each($("#gnb ul li").find(".depth2_wrap"), function () { 102 $(this).parent().children('a').addClass('down'); 103 }); 104 $("#gnb li").hover(function () { 105 var lnbTotalWidth = 0; 106 $(this).find(".depth2_wrap").show(); 107 108 //lng ê¸¸ì´ ì¬ì widthê° ì¡°ì 109 $(this).find(".depth2_wrap .menu ul li").each(function () { 110 lnbTotalWidth = lnbTotalWidth + $(this).innerWidth() + 1; 111 //console.log($(this).innerWidth()); 112 }); 113 }, function () { 114 $(this).find(".depth2_wrap").hide(); 115 }); 116 117 //í¤ë ê²ìì´ ì ë ¥ í´ë¦ì on/off 118 /*$(".skin_search .search_on").click(function() { 119 var _this = $(this); 120 _this.parent().addClass("on"); 121 _this.next().find(".ipt").focus(); 122 _this.next().find(".ipt").focusout(function() { 123 $(".skin_search").removeClass("on"); 124 }); 125 });*/ 126 127 //í¸í° ë©ë´ masonry 128 /*$('.bottom_menu_wrap .inner .bottom_menu > ul').masonry({ 129 itemSelector: '.bottom_menu_wrap .inner .bottom_menu > ul li.panel', 130 columnWidth: 135, 131 gutter: 10, 132 horizontalOrder: true, 133 // originLeft: false //ì¼ìª½ë¶í° ì ë ¬ 134 // originTop: false //ë°ë¥ë¶í° 135 // transitionDuration: '0.2s' //ìì¹ ì í ìê° 136 });*/ 137 138 139 //íë¨ ë©ë´ on/off 140 $(".bottom_menu_top").click(function () { 141 if ($(this).hasClass("on")) { 142 $(this).removeClass("on"); 143 $(".bottom_menu_wrap .inner .bottom_cont").stop().slideUp(); 144 145 } else { 146 $(this).addClass("on"); 147 $(".bottom_menu_wrap .inner .bottom_cont").stop().slideDown(); 148 149 } 150 });
151 152 153 $(".file_box input").change(function () { 154 console.log("ddd"); 155 var value = $(this).val(); 156 $(this).prev().prev().html(value); 157 }); 158 //gnb ìì ë ////////////////////////////////////////////////////////////// 159 160 //기ì¬ìì¸ ìì ìì ////////////////////////////////////////////////////////////// 161 //ë·° í¤ë ê³µì í기 ëë ì ì 162 $('.article_head .util_box .tools .btns li.share').on('click', function () { 163 $('.url_copy :input').val(window.document.location.href); 164 var activityVal = $(this).hasClass('activity'); 165 if (activityVal) { 166 $(this).removeClass('activity'); 167 $(".article_head .share_tools").stop().slideUp(); 168 } else { 169 $(this).addClass('activity'); 170 $(".article_head .share_tools").stop().slideDown(); 171 } 172 }); 173 174 //기ì¬ë³¸ë¬¸ íë¦°í¸ 175 $(".article_head .util_box .tools .btns li.print").on("click", function (e) { 176 e.preventDefault(); 177 onPrint(); 178 }); 179 //기ì¬ìì¸ ìì ë ////////////////////////////////////////////////////////////// 180 181 //주ì ê·¸ë£¹ë³ ê¸°ì¬ ìì 182 if ($("div").hasClass("major_company")) { 183 $(".major_company .slider_major").slick({ 184 slidesToShow: 1, 185 slidesToScroll: 1, 186 dots: false, 187 autoplay: true, 188 autoplaySpeed: 3000, 189 prevArrow: $('.major_company .top .more .btn_arw_left'), 190 nextArrow: $('.major_company .top .more .btn_arw_right') 191 }); 192 } 193 194 if ($("div").hasClass("side_major_company")) { 195 $(".side_major_company .box > ul").slick({ 196 slidesToShow: 1, 197 slidesToScroll: 1, 198 dots: false, 199 autoplay: true, 200 autoplaySpeed: 3000, 201 prevArrow: $('.aside .side_major_company .top .more .btn_arw_left'), 202 nextArrow: $('.aside .side_major_company .top .more .btn_arw_right') 203 }); 204 } 205 206 if ($("div").hasClass("paper_list_slide")) { 207 $('.paper_list_slide ul').slick({ 208 slidesToShow: 1, 209 slidesToScroll: 1, 210 autoplay: true, 211 autoplaySpeed: 3000, 212 arrows: true, 213 infinite: true, 214 swipte: true, 215 prevArrow: $('.paper_list_slide .btn_prev'), 216 nextArrow: $('.paper_list_slide .btn_next') 217 }); 218 } 219}); 220 221//기ì¬ë³¸ë¬¸ í°í¸ì¬ì´ì¦ ì¡°ì 222function fontsize(mod) { 223 var size = $(".article_view .article_content p").css("font-size"); 224 size = parseInt(size, 10); 225 console.log(size); 226 if (mod == "up" && size <= 22) { 227 size = size + 2; 228 $(".article_view .article_content p").css("font-size", size + "px"); 229 } else if (mod == "down" && size >= 12) { 230 size = size - 2; 231 $(".article_view .article_content p").css("font-size", size + "px"); 232 } 233} 234 235//기ì¬ë³¸ë¬¸ íë¦°í¸ 236function onPrint() { 237 var g_oBeforeBody = document.getElementsByClassName('section')[0].innerHTML; 238 console.log(g_oBeforeBody); 239 // í린í¸ë¥¼ ë³´ì´ë ê·¸ëë¡ ëì¤ê¸°ìí ì í 240 window.onbeforeprint = function (ev) { 241 document.body.innerHTML = g_oBeforeBody; 242 }; 243 244 window.print(); 245 location.reload(); 246} 247 248function amiCopyUrlToClipboard() { 249 var obShareUrl = document.getElementById("ami_url_copy"); 250 obShareUrl.value = window.document.location.href; // íì¬ URL ì ì¸í í´ ì¤ëë¤. 251 252 obShareUrl.select(); // í´ë¹ ê°ì´ ì íëëë¡ select() í©ëë¤ 253 document.execCommand("copy"); // í´ë¦½ë³´ëì ë³µì¬í©ëë¤. 254 obShareUrl.blur(); // ì íë ê²ì ë¤ì ì íìëê²ì¼ë¡ ë°ê¿ëë¤. 255 256 alert("URLì´ í´ë¦½ë³´ëì ë³µì¬ëììµëë¤"); 257} 258 259function facebook_share() { 260 var url = window.document.location.href; 261 var facebook_url = "https://www.facebook.com/sharer/sharer.php?u=" + url + "&display=popup&ref=plugin&src=share_button"; 262 var fawin = window.open(facebook_url, 'fawin', 'width=600,height=500,scrollbars=no,resizable=no'); 263 if (fawin) fawin.focus(); 264} 265 266function twitter_share() { 267 var title = $(".article_view .article_head .title").text(); 268 var url = window.document.location.href; 269 var twitter_url = "https://twitter.com/intent/tweet?text=" + title + 270 "&url=" + url + "&original_referer=&ref=twit"; 271 var twwin = window.open(twitter_url, 'twwin', 'menubar=yes,toolbar=yes,status=yes,resizable=yes,location=yes,scrollbars=yes'); 272 if (twwin) twwin.focus(); 273} 274 275function kakao_share() { 276 var url = window.document.location.href; 277 var kakao_url = "https://story.kakao.com/share?url=" + url + "&ref=kko";
278 var kawin = window.open(kakao_url, 'kawin ', 'menubar=yes,toolbar=yes,status=yes,resizable=yes,location=yes,scrollbars=yes'); 279 if (kawin) kawin.focus(); 280} 281 282function band_share() { 283 var url = window.document.location.href; 284 var encodeRoute = encodeURIComponent(window.location.href); 285 286 var band_url = "http://band.us/plugin/share?body=ë°ì´í°ë´ì¤&route=" + encodeRoute; 287 console.log(band_url); 288 var bawin = window.open(band_url, 'bawin', 'menubar=yes,toolbar=yes,status=yes,resizable=yes,location=yes,scrollbars=yes'); 289 if (bawin) bawin.focus(); 290} 291 292function naver_share() { 293 var url = window.document.location.href; 294 var naver_url = "http://blog.naver.com/openapi/share?url=" + url; 295 var nvwin = window.open(naver_url, 'nvwin', 'menubar=yes,toolbar=yes,status=yes,resizable=yes,location=yes,scrollbars=yes'); 296 if (nvwin) nvwin.focus(); 297} 298 299function line_share() { 300 var url = encodeURIComponent(window.document.location.href); 301 var title = $(".article_view .article_head .title").text(); 302 var line_url = "https://social-plugins.line.me/lineit/share?url=" + url; 303 var lnwin = window.open(line_url, 'lnwin', 'menubar=yes,toolbar=yes,status=yes,resizable=yes,location=yes,scrollbars=yes'); 304 if (lnwin) lnwin.focus(); 305} 306 307function setCookie(cookie, exp, type){ 308 var date = new Date(); 309 date.setTime(date.getTime() + exp*24*60*60*1000); 310 document.cookie = 'popup_' + cookie + '=' + 'popup_' + cookie + ';expires=' + date.toUTCString() + ';path=/'; 311 if( type == 'P'){ 312 window.close(); 313 }else if( type == 'L'){ 314 $("#ad_popup"+cookie).hide(); 315 } 316} 317 318function delCookie(user, value, exp){ 319 var date = new Date(); 320 date.setTime(date.getTime() + exp*24*60*60*1000); 321 document.cookie = user + '=' + value + ';expires=' + date.toUTCString() + ';path=/'; 322} 323 324function setCookiePc(){ 325 var date = new Date(); 326 date.setTime(date.getTime() + 1*24*60*60*1000); 327 document.cookie = 'pc_view=1;expires=' + date.toUTCString() + ';path=/'; 328 location.href = "/"; 329} 330function delCookiePc(){ 331 var date = new Date(); 332 date.setTime(date.getTime() + 0*24*60*60*1000); 333 document.cookie = 'pc_view=0;expires=' + date.toUTCString() + ';path=/'; 334 location.href = "/"; 335} 336 337function logoutProcess(){ 338 var param = {}; 339 param.class = "/join/logoutProcess"; 340 $.ajax({
341 url : window.location.protocol + '//' + window.location.host + '/api.php', 342 type : "POST", 343 dataType : "JSON", 344 data : param, 345 success : function(result){ 346 if( result.status == "success"){ 347 location.href = "/"; 348 } 349 } 350 }); 351} 352 353function setCookie(cookie, exp, type){ 354 var date = new Date(); 355 date.setTime(date.getTime() + exp*24*60*60*1000); 356 document.cookie = 'popup_' + cookie + '=' + 'popup_' + cookie + ';expires=' + date.toUTCString() + ';path=/'; 357 if( type == 'P'){ 358 window.close(); 359 }else if( type == 'L'){ 360 $("#ad_popup"+cookie).hide(); 361 } 362} 363 364function frontPopup(idx){ 365 $("#ad_popup"+idx).hide(); 366} 367 368/* 369//sslider ê°ë° 370function slider() { 371 var idx = 1; // íì¬ ì¬ë¼ì´ë 372 var slide_num = $(".sslider .box > ul > li").last().index() + 1; //ì¬ë¼ì´ë ê°¯ì 373 var slide_width = $(".sslider .box > ul > li").width(); 374 $(".sslider .box > ul").addClass("sslider_wrap").css("width", slide_width * slide_num); //ulì wrapì ê°ì¸ê³ ì¬ë¼ì´ë ì´ê¸¸ì´ë¥¼ ë£ì´ì¤. 375 var slide_wrap = $(".sslider .sslider_wrap"); 376 $(".sslider .box > ul").wrap("<div class='sslider_viewport'></div>"); //íì¬ì¬ë¼ì´ë ë·° 377 $(".sslider .sslider_wrap > li").css("width", slide_width); //ì¬ë¼ì´ë ê¸¸ì´ ì§ì 378 379 //next prev 구í 380 $(".sslider .btn_arw_left").click(function (e) { 381 e.preventDefault(); 382 slide_wrap.css("transition", "2s").css("transform", "translate3d(" + slide_width * idx + "px, 0px, 0px)"); 383 idx = idx + 1; 384 //alert(idx); 385 }); 386 $(".sslider .btn_arw_right").click(function (e) { 387 e.preventDefault(); 388 slide_wrap.css("transition", "2s").css("transform", "translate3d(" + -slide_width * idx + "px, 0px, 0px)"); 389 idx = idx - 1; 390 //alert(idx); 391 }); 392} 393 394//ì¬ë¼ì´ë ì ì 395var slideTest = window.slideTest || {}; 396 397slideTest = (function() { 398 var test1 = { 399 slidesToShow : 2 400 } 401 402 var _ = this; 403 console.log("this2 = " + JSON.stringify(this)); 404 console.log("test1 = " + test1.slidesToShow); 405 console.log("_ = " + _.slidesToShow); 406}); 407 408$.fn.slideTest = function() { 409 var _ = this, 410 opt = arguments[0], 411 args = Array.prototype.slice.call(arguments, 1), 412 l = _.length, 413 i, 414 ret; 415 416 console.log("this1 = " + JSON.stringify(this)); 417 for (i = 0; i < l; i++) { 418 if (typeof opt == 'object' || typeof opt == 'undefined') 419 _[i].slideTest = new slideTest(_[i], opt); 420 else 421 ret = _[i].slideTest[opt].apply(_[i].slideTest, args); 422 if (typeof ret != 'undefined') return ret; 423 } 424 return _; 425}; 426 427$(function() { 428 $(".major_company").slideTest({slidesToShow: 1, slidesToScroll: 1,}); 429}); 430*/ 431 432 433/** 434 * Build full image URL for Front page. 435 */ 436function buildImageUrl(path) { 437 if (!path) return ''; 438 439 // If it is already a full URL (http or https), return 440 if (/^https?:\/\//i.test(path)) { 441 return path; 442 } 443 444 // Remove redundant slashes 445 const base = BASE_URL_FRONT.replace(/\/+$/, ''); 446 const relative = path.replace(/^\/+/, ''); 447 448 return `${base}/${relative}`; 449}
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.