1$(function(){ 2 3 var wow = new WOW({ 4 offset: 200 5 }); 6 wow.init(); 7 8 //nav 9 $('.main-nav > li').on('mouseenter', function(){ 10 $('.sub').stop(false, true).slideUp(200); 11 $(this).find('.sub').stop().slideDown(200); 12 }); 13 $('.main-nav > li').on('mouseleave', function(){ 14 $('.main-nav .sub').stop().slideUp(200); 15 }); 16 $('.util-nav .btn-mypage').on('mouseenter', function(){ 17 $(this).find('.mypage-sub').stop().slideDown(200); 18 }); 19 $('.util-nav .btn-mypage').on('mouseleave', function(){ 20 $('.mypage-sub').stop().slideUp(200); 21 }); 22 $('.util-nav .btn-global').on('mouseenter', function () { 23 $(this).find('.global-sub').stop().slideDown(200); 24 }); 25 $('.util-nav .btn-global').on('mouseleave', function () { 26 $('.global-sub').stop().slideUp(200); 27 }); 28 29 //kv 30 /*var kvNum = $('.kv li').length; 31 if(kvNum > 1){ 32 var kv = $('.kv ul').bxSlider({ 33 auto: true, 34 controls: true, 35 nextText:"<img id='next-btn-main' src=' /images/main/slide_right_button.png' />", 36 prevText: "<img id='prev-btn-main' src=' /images/main/slide_left_button.png' />", 37 autoHover:true 38 //pause: 3000 39 }); 40 }*/ 41 42 $('.popup-banner').bxSlider({ 43 /*mode: 'horizontal',*/ 44 auto: false, 45 controls: true, 46 slideWidth: 420, 47 minSlides: 1, 48 maxSlides: 1, 49 moveSlides: 1, 50 pager: false, 51 infiniteLoop: true, 52 nextText: "<img id='next-btn-pop' src=' /images/common/popup_arrow_R.svg' />", 53 prevText: "<img id='prev-btn-pop' src=' /images/common/popup_arrow_L.svg' />" 54 }); 55 56 $('.main-banner').bxSlider({ 57 mode: 'fade', 58 auto: true, 59 speed: 300, 60 pause: 3500, 61 captions: false, 62 controls: true, 63 minSlides: 1, 64 maxSlides: 1, 65 moveSlides: 1, 66 pager: true, 67 infiniteLoop: true 68 }); 69 $('.main-banner a').on('click', function (e) { 70 e.preventDefault(); 71 window.location.href = $(this).attr('href'); 72 }); 73 74 $(function () { 75 // BEST ë°°ë 76 var bestLen = $('.best-banner .best').length; 77 $('.best-banner .best').each(function (index, element) { 78 $(this).attr('data-idx', index); 79 }); 80 var bestSlider = $('.best-banner').bxSlider({ 81 mode: 'horizontal', 82 auto: true, 83 autoControls: true, 84 speed: 1000, 85 pause: 4000, 86 autoDelay: 4000, 87 controls: true, 88 minSlides: 3, 89 maxSlides: 3, 90 moveSlides: 1, 91 slideWidth: 378, 92 slideMargin: 30, 93 pager: false, 94 infiniteLoop: true, 95 nextText: "<img id='next-btn-rec' src=' /images/common/main_arrow_R.svg' />", 96 prevText: "<img id='prev-btn-rec' src=' /images/common/main_arrow_L.svg' />", 97 onSlideBefore: function ($slideElement, oldIndex, newIndex) { 98 show_zx(newIndex, bestLen, '.best'); 99 } 100 }); 101 102 // NEW ë°°ë 103 var newLen = $('.new-banner .new').length; 104 $('.new-banner .new').each(function (index, element) { 105 $(this).attr('data-idx', index); 106 }); 107 var newSlider = $('.new-banner').bxSlider({ 108 mode: 'horizontal', 109 auto: true, 110 autoControls: true, 111 speed: 1000, 112 pause: 4000, 113 autoDelay: 4000, 114 controls: true, 115 minSlides: 3, 116 maxSlides: 3, 117 moveSlides: 1, 118 slideWidth: 378, 119 slideMargin: 30, 120 pager: false, 121 infiniteLoop: true, 122 nextText: "<img id='next-btn-rec' src=' /images/common/main_arrow_R.svg' />", 123 prevText: "<img id='prev-btn-rec' src=' /images/common/main_arrow_L.svg' />", 124 onSlideBefore: function ($slideElement, oldIndex, newIndex) { 125 show_zx(newIndex, newLen, '.new'); 126 } 127 }); 128 129 function show_zx(new_idx, len, className) { 130 $(className).removeClass('zx'); 131 $(className).each(function (index, element) { 132 var idx = parseInt($(this).attr('data-idx')); 133 if ( 134 ((new_idx + 0) % len != idx % len) && 135 ((new_idx + 1) % len != idx % len) && 136 ((new_idx + 2) % len != idx % len) 137 ) { 138 $(this).addClass('zx'); 139 } 140 }); 141 } 142 show_zx(0, bestLen, '.best'); 143 show_zx(0, newLen, '.new'); 144 145 $('.bx-next, .bx-prev').click(function () { 146 newSlider.stopAuto(); 147 bestSlider.stopAuto(); 148 149 setTimeout(function () { 150 newSlider.startAuto(); 151 bestSlider.startAuto(); 152 }, 3000); 153 154 }); 155 }); 156 157 $('.sns-banner').bxSlider({
158 auto: false, 159 controls: true, 160 minSlides: 1, 161 maxSlides: 1, 162 moveSlides: 1, 163 slideWidth: 1154, 164 pager: true, 165 pagerType: 'short', 166 infiniteLoop: true, 167 nextText: "<img id='next-btn-sns' src=' /images/main/sns_arrow_R.png' />", 168 prevText: "<img id='prev-btn-sns' src=' /images/main/sns_arrow_L.png' />" 169 }); 170 171 //select 172 $('.select span').on('click', function(){ 173 var selectPos = $(this).offset().top + $(this).height(); 174 var bottomPos = $(document).height() - selectPos; 175 if(bottomPos < $(this).next('.select-option').height()){ 176 $(this).next('.select-option').addClass('up'); 177 } 178 $('.select-option').stop().slideUp(); 179 $(this).next('.select-option').stop().slideDown(); 180 return false; 181 }); 182 $('.select-option li').on('click', function(){ 183 var txt = $(this).text(); 184 $(this).addClass('active').siblings().removeClass('active'); 185 $(this).parents('.select-option').prev('span').text(txt); 186 $('.select-option').stop().slideUp(); 187 }); 188 $('body').on('click', function(){ 189 $('.select-option').stop().slideUp(); 190 }); 191 192 // ----------------------------------------------------------------------- 193 //210317 ì ìì§ ì¶ê° 194 $('.selectPurchase span').on('click', function () { 195 196 // select ì ííì ë ì ë³ê²½ 197 $(".productType").css("border-color", "#d9dbe1"); 198 $(this).css("border-color", "#d71a22"); 199 200 var selectPos = $(this).offset().top + $(this).height(); 201 var bottomPos = $(document).height() - selectPos; 202 203 if (bottomPos < $(this).next('.selectPurchase-option').height()) { 204 $(this).next('.selectPurchase-option').addClass('up'); 205 } 206 207 $(this).next('.selectPurchase-option').addClass('up'); 208 209 $('.selectPurchase-option').stop().slideUp(); 210 $(this).next('.selectPurchase-option').stop().slideDown(); 211 212 return false; 213 214 }); 215 /* 216 $('.selectPurchase-option li').on('click', function () { 217 //var txt = $(this).text(); 218 219 var replaceText = "í ì¸ê°"; 220 var monthlyText = "ì"; 221 var oneyearText = "1ë "; 222 var twoyearText = "2ë "; 223 var txt = $(this).text().replace(replaceText, ' '); 224 225 txt = txt.replace(monthlyText, '<div class="liFirst">ì</div>'); 226 txt = txt.replace(oneyearText, '<div class="liFirst">1ë </div>'); 227 txt = txt.replace(twoyearText, '<div class="liFirst">2ë </div>'); 228 229 $(this).addClass('active').siblings().removeClass('active'); 230 //$(this).parents('.selectPurchase-option').prev('span').text(txt); 231 232 $(this).parents('.selectPurchase-option').prev('span').html(txt); 233 $('.selectPurchase-option').stop().slideUp(); 234 }); 235 236 $('body').on('click', function () { 237 $('.selectPurchase-option').stop().slideUp(); 238 }); 239 */ 240 // ----------------------------------------------------------------------- 241 242 //tag 243 $('.tag-list button').on('click', function(){ 244 $(this).toggleClass('active'); 245 }); 246 247 //tab 248 $('.tab a').on('click', function(e){ 249 e.preventDefault(); 250 var target = $(this.hash); 251 252 var id = $(this).attr('id'); 253 254 if (id == "font") { 255 window.open("/Font/List"); 256 } else { 257 $(this).parent().addClass('active').siblings().removeClass('active') 258 $(target).addClass('active').siblings().removeClass('active'); 259 260 //calli 261 if ($('.bx-wrapper').length) { 262 calliSlide.reloadSlider(); 263 } 264 } 265 }); 266 267 //type tab 268 $('.type-tab a').on('click', function(e){ 269 e.preventDefault(); 270 var target = $(this).attr('href'); 271 $(this).parent().addClass('active').siblings().removeClass('active'); 272 console.log(target) 273 if(target == '#deposit'){ 274 $('.deposit').show(); 275 } else{ 276 $('.deposit').hide(); 277 } 278 }); 279 280 //mix 281 $(window).on('load', function(){ 282 $('.option-list').mCustomScrollbar(); 283 }); 284 $('.btn-select').on('click', function () { 285 286 var display = $(this).next('div.option').css("display"); 287 288 if (display == "none") { 289 $('.option').stop().slideUp(); 290 $(this).next('.option').stop().slideDown(0); 291 } else { 292 $(this).next('.option').stop().slideUp(); 293 } 294 return false; 295 }); 296 $('.option-list li').on('click', function(){ 297 298 if (!$(this).hasClass("disable")) { 299 var txt = $(this).text(); 300 $(this).addClass('active').siblings().removeClass('active'); 301 $(this).parents('.option').prev('.btn-select').text(txt); 302 $('.option').stop().slideUp(); 303 } 304 }); 305 ////$('body').on('click', function(){ 306 //// $('.option').stop().slideUp(); 307 ////}); 308 $('.btn-detail').on('click', function(){
309 $('.detail-setting').fadeIn(200); 310 $('.other-option').css("padding-bottom", "70px"); 311 }); 312 $('.detail-setting .btn-close').on('click', function(){ 313 $('.detail-setting').fadeOut(200); 314 $('.other-option').css("padding-bottom", "0"); 315 }); 316 var step = 2; 317 $('.btn-up').on('click', function(){ 318 319 var config = $(this).parent('.step').prev('input').attr('id'); 320 321 if (String(config).toLowerCase().indexOf('hanzi') > 0) { 322 323 console.log('hanzi : ' + fontfamily); 324 325 if (fontfamily.length == 0) { 326 return false; 327 } 328 } 329 330 var value = $(this).parent('.step').prev().val(); 331 var option = $(this).closest('.step').parent().data('option'); 332 333 step = 2; 334 335 switch (option) { 336 case 'size': 337 case 'strech': 338 if(value < 120){ 339 $(this).closest('.step').prev('input').val(value*1+step); 340 } 341 break; 342 case 'spacing': 343 if (value < 200) { 344 $(this).closest('.step').prev('input').val(value * 1 + step); 345 } 346 break; 347 case 'height': 348 step = 5; 349 350 if(value < 200){ 351 $(this).closest('.step').prev('input').val(value*1+step); 352 } 353 break; 354 } 355 356 SetFontWidthAndSpacing(); 357 }); 358 $('.btn-down').on('click', function(){ 359 360 var config = $(this).parent('.step').prev('input').attr('id'); 361 362 if (String(config).toLowerCase().indexOf('hanzi') > 0) { 363 364 var fontfamily = $('#SetHanziFontFamily').val(); 365 366 if (fontfamily.length == 0) { 367 return false; 368 } 369 } 370 371 var value = $(this).parent('.step').prev().val(); 372 var option = $(this).closest('.step').parent().data('option'); 373 374 step = 2; 375 376 switch (option) { 377 case 'size': 378 case 'strech': 379 if(value > 80 ){ 380 $(this).closest('.step').prev('input').val(value*1-step); 381 } 382 break; 383 case 'spacing': 384 if (value > -200) { 385 $(this).closest('.step').prev('input').val(value * 1 - step); 386 } 387 break; 388 case 'height': 389 step = 5; 390 391 if (value > -200) { 392 $(this).closest('.step').prev('input').val(value*1-step); 393 } 394 break; 395 } 396 397 SetFontWidthAndSpacing(); 398 }); 399 400 //toggle 401 $('.toggle li').on('click', function(){ 402 var pos = $(this).data('pos'); 403 $(this).addClass('active').siblings().removeClass('active'); 404 $(this).parent().removeClass().addClass('toggle '+pos); 405 }); 406 407 //toggle-SNS (ê°í¸ë¡ê·¸ì¸ì¼ë¡ ì¶ê°) 408 //$('.memberInfoSNSToggle li').on('click', function () { 409 // var pos = $(this).data('pos'); 410 // $(this).addClass('active').siblings().removeClass('active'); 411 // $(this).parent().removeClass().addClass('memberInfoSNSToggle ' + pos); 412 //}); 413 414 //modal 415 $('.btn-modal').on('click', function(e){ 416 e.preventDefault(); 417 var target = $(this).attr('href'); 418 $(target).fadeIn(); 419 if($('.bx-wrapper').length){ 420 mixGuide.reloadSlider(); 421 } 422 }); 423 424 //guide 425 var mixGuide = $('.mix-guide ol').bxSlider({ 426 controls: false, 427 infiniteLoop: false 428 }); 429 $('.modal .btn-close').on('click', function(){ 430 $(this).parents('.modal').fadeOut(); 431 }); 432 433 //cloud 434 $('.function-summary ul').bxSlider({ 435 infiniteLoop: false, 436 hideControlOnEnd: true, 437 onSlideBefore: function($slideElement, oldIndex, newIndex){ 438 439 }, 440 onSlideAfter: function($slideElement, oldIndex, newIndex){ 441 $('.function-summary li').eq(newIndex).addClass('active'); 442 $('.function-summary li').eq(oldIndex).removeClass('active'); 443 } 444 }); 445 446 //calli-slide 447 var calliSlide = $('.calli-slide ul').bxSlider({ 448 controls: false 449 }); 450 451 //qna 452 $('.btn-qna').on('click', function(e){ 453 e.preventDefault(); 454 var answer = $(this).parents('tr').next().find('.qna-con'); 455 if(answer.is(':visible')){ 456 $('.qna-con').stop().slideUp(200); 457 } else{ 458 $('.qna-con').stop().slideUp(200); 459 answer.stop().slideDown(200); 460 } 461 }); 462 463 //faq 464 $('.faq-list span').on('click', function(){ 465 var answer = $(this).next('div'); 466 if(answer.is(':hidden')){ 467 $('.faq-list li').removeClass('active').find('div').slideUp(200); 468 $(this).parent().addClass('active'); 469 answer.slideDown(200); 470 } else{ 471 $(this).parent().removeClass('active'); 472 answer.slideUp(200); 473 } 474 });
475 $('.file input:file').on('change', function(){ 476 var fileName = $(this).val().split('\\').pop(); 477 $(this).parent().prev().val(fileName); 478 }); 479 480 //member 481 $('.member-find input:radio').on('change', function(){ 482 var type = $(this).attr('id'); 483 if(type == 'personal'){ 484 $('.personal-member').addClass('active'); 485 $('.biz-member').removeClass('active'); 486 } else if(type == 'biz'){ 487 $('.personal-member').removeClass('active'); 488 $('.biz-member').addClass('active'); 489 } 490 491 }); 492 493 //mypage 494 $('.purchase-detail .btn-view').on('click', function(e){ 495 e.preventDefault(); 496 var detail = $(this).parents('tr').next().find('.breakdown'); 497 if(detail.is(':visible')){ 498 $(this).removeClass('active'); 499 $('.breakdown').stop().slideUp(200); 500 } else{ 501 $('.purchase-detail .btn-view').removeClass('active'); 502 $(this).addClass('active'); 503 $('.breakdown').stop().slideUp(200); 504 detail.stop().slideDown(200); 505 } 506 }); 507 508 //clause 509 $('.join-form .clause').mCustomScrollbar(); 510 511 //scroll 512 $(window).scroll(function(){ 513 var value = $(this).scrollTop(); 514 }); 515 516 //mixFontManagement_ì ìì§ì¶ê°_20200825 517 $('.mixFontManageMent .btn-view').on('click', function (e) { 518 e.preventDefault(); 519 var detail = $(this).parents('tr').next().find('.breakdown'); 520 if (detail.is(':visible')) { 521 $(this).removeClass('active'); 522 $('.breakdown').stop().slideUp(200); 523 } else { 524 $('.mixFontManageMent .btn-view').removeClass('active'); 525 $(this).addClass('active'); 526 $('.breakdown').stop().slideUp(200); 527 detail.stop().slideDown(200); 528 } 529 }); 530 531 532 //mixFontManagement_ì ìì§ì¶ê°_20200827 533 $('.mixFontWaitingManageMent .btn-view').on('click', function (e) { 534 e.preventDefault(); 535 var detail = $(this).parents('tr').next().find('.breakdown'); 536 if (detail.is(':visible')) { 537 $(this).removeClass('active'); 538 $('.breakdown').stop().slideUp(200); 539 } else { 540 $('.mixFontManageMent .btn-view').removeClass('active'); 541 $(this).addClass('active'); 542 $('.breakdown').stop().slideUp(200); 543 detail.stop().slideDown(200); 544 } 545 }); 546 547 548 $('.tuningFontManageMent .btn-view').on('click', function (e) { 549 e.preventDefault(); 550 var detail = $(this).parents('tr').next().find('.breakdown'); 551 if (detail.is(':visible')) { 552 $(this).removeClass('active'); 553 $('.breakdown').stop().slideUp(200); 554 } else { 555 $('.tuningFontManageMent .btn-view').removeClass('active'); 556 $(this).addClass('active'); 557 $('.breakdown').stop().slideUp(200); 558 detail.stop().slideDown(200); 559 } 560 }); 561 562 563 564 $('.tuningFontWaitingManageMent .btn-view').on('click', function (e) { 565 e.preventDefault(); 566 var detail = $(this).parents('tr').next().find('.breakdown'); 567 if (detail.is(':visible')) { 568 $(this).removeClass('active'); 569 $('.breakdown').stop().slideUp(200); 570 } else { 571 $('.tuningFontManageMent .btn-view').removeClass('active'); 572 $(this).addClass('active'); 573 $('.breakdown').stop().slideUp(200); 574 detail.stop().slideDown(200); 575 } 576 }); 577 578 579 580}); 581
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.