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