1/* 2 * 3 * /common/js/common.js 4 * 5 */ 6 7(function($){ 8 'use strict'; 9 $(function(){ 10 var spmenu = $('.g-nav-vertical').clone().removeClass('g-nav-vertical').attr('id', 'js-drawer-menu'); 11 while (spmenu.find('div').length > 0) { 12 spmenu.find('div').children().unwrap(); 13 } 14 $('.g-nav-vertical').after(spmenu); 15 16 if ($('#js-drawer-menu').length > 0){ 17 var menubtns = $('#js-drawer-menu li.stateClose'); 18 var submenubtns = $('#js-drawer-menu li.stateClose p'); 19 var sub2 = $('.sub2'); 20 submenubtns.hide(); 21 var pos=-1; 22 var i, l; 23 for (i=0,l=submenubtns.length; i<l; i++) { 24 var element = submenubtns.eq(i); 25 if (element.hasClass('sub1')) { 26 pos = i; 27 element[0].state = 1; 28 } else if (element.hasClass('sub2')) { 29 element[0].anc=pos; 30 element[0].state = 0; 31 var target = submenubtns.eq(pos); 32 if (!target.hasClass('stateClose')) { 33 target.addClass('stateClose'); 34 } 35 } 36 } 37 38 menubtns.children('a').on('click', function(e) { 39 e.preventDefault(); 40 var o = $(this).parent('li'); 41 var btns = o.find('p'); 42 if (o.hasClass('stateClose')) { 43 o.removeClass('stateClose').addClass('stateOpen'); 44 for (var i=0,l=btns.length; i<l; i++) { 45 var element = btns.eq(i); 46 if (element[0].state > 0) { 47 element.show(); 48 } 49 } 50 } else { 51 o.removeClass('stateOpen').addClass('stateClose'); 52 btns.hide(); 53 } 54 }); 55 submenubtns.children('a').on('click', function(e) { 56 var o = $(this).parent('p'); 57 if (o.hasClass('sub1')) { 58 if (o.hasClass('stateClose') || o.hasClass('stateOpen') ) { 59 e.preventDefault(); 60 61 var pos = submenubtns.index(o); 62 var btns = $(); 63 var i,l; 64 for (i=0,l=sub2.length; i<l; i++) { 65 var element = sub2.eq(i); 66 if (element[0].anc === pos) { 67 btns = btns.add(element); 68 } else if (element[0].state === 1) { 69 element[0].state = 0; 70 submenubtns.eq(element[0].anc).removeClass('stateOpen').addClass('stateClose'); 71 element.hide(); 72 } 73 } 74 if (o.hasClass('stateClose')) { 75 o.removeClass('stateClose').addClass('stateOpen'); 76 btns.show(); 77 for (i=0,l=btns.length; i<l; i++) { 78 btns.eq(i)[0].state = 1; 79 } 80 } else if (o.hasClass('stateOpen')) { 81 o.removeClass('stateOpen').addClass('stateClose'); 82 btns.hide(); 83 for (i=0,l=btns.length; i<l; i++) { 84 btns.eq(i)[0].state = 0; 85 } 86 } 87 } 88 } 89 }); 90 91 $('#js-drawer-menu').mmenu({ 92 configuration:{ 93 selectedClass:"Selected", 94 pageNodetype:"div", 95 menuNodetype:"div", 96 slideDuration:500 97 }, 98 offCanvas:{ 99 position:'right' 100 } 101 }); 102 } 103 }); 104})(jQuery); 105 106 107jQuery(function($) { 108 $('tr[data-href]').addClass('clickable') 109 .click(function(e) { 110 if(!$(e.target).is('a')){ 111 window.location = $(e.target).closest('tr').data('href'); 112 }; 113 }); 114 115}); 116 117 118(function($){ 119 //hash smooth scroll 120 $(function(){ 121 $('a[href^=#]').not('[id="drawer-menu"]').on('click.o', function() { 122 var speed = 500, href = $(this).attr('href'); 123 if(href.replace(/\#/,'').length > 0){ 124 var target = $('[id=' + href.replace(/\#/,'') + ']'), position = 0; 125 if (target.length >= 1) { 126 target.each(function(i){ 127 position = Number($(this).offset().top) || position; 128 }) 129 $('html, body').animate({ 130 scrollTop : position 131 }, speed, 'easeOutExpo'); 132 } 133 return false; 134 } 135 }); 136 }); 137})(jQuery); 138 139 140;(function($, Modernizr) { 141 /* jsTableRepeatY transform table Y*/ 142 var breakPoint = 768, 143 m, root, mode = 'pc'; 144 function findComponent(){ 145 root = $('.jsTableRepeatY'); 146 } 147 function removeInner(elm){ 148 elm.children('*').each(function(){ 149 $(this).remove(); 150 }) 151 } 152 function nextCountHit(jElm, n){ 153 var i, l, j = jElm; 154 j = j.nextAll().eq(n); 155 return j; 156 } 157 function setUpData(){ 158 var i, l, j , k, yTableTamplate = ''; 159 root.each(function(t){ 160 yTableTamplate = ''; 161 l = $(this).find('.jsHeadX').length; 162 for(j = 0, k = $(this).find('.jsHeadY').length; j+1 < k; j++ ){ 163 yTableTamplate += '<table class="table-Repeat jsTableRepeatY jsTRYSP v-middle">'; 164 yTableTamplate += '<thead>
164<tr class="t-center">'; 165 yTableTamplate += '<th class="jsHeadX w-30-p">' + $(this).find('.jsHeadX').eq(0).html() + '</th>'; 166 yTableTamplate += '<th class="jsHeadX w-35-p">' + $(this).find('.jsHeadY').eq(j).html() + '</th>'; 167 yTableTamplate += '<th class="jsHeadX w-35-p">' + $(this).find('.jsHeadY').eq(j+1).html() + '</th>'; 168 yTableTamplate += '</tr>'; 169 yTableTamplate += '</thead>'; 170 yTableTamplate += '<tbody>'; 171 for (i = 1; i < l; i++){ 172 yTableTamplate += '<tr class="t-center">'; 173 yTableTamplate += '<th class="jsHeadY">' + $(this).find('.jsHeadX').eq(i).html() + '</th>'; 174 yTableTamplate += '<td>' + nextCountHit($(this).find('.jsHeadY').eq(j), i - 1).html()+ '</td>'; 175 yTableTamplate += '<td>' + nextCountHit($(this).find('.jsHeadY').eq(j+1), i - 1).html()+ '</td>'; 176 yTableTamplate += '</tr>'; 177 } 178 yTableTamplate += '</tbody>'; 179 yTableTamplate += '</table>'; 180 } 181 $(this).after(yTableTamplate); 182 }); 183 } 184 $(function() { 185 m = Modernizr.csstransitions; 186 findComponent(); 187 if(root.length > 0){ 188 setUpData(); 189 } 190 }); 191})(jQuery, Modernizr); 192 193 194;(function(){ 195 /* jsCarousel */ 196 var m, root, cache, active = 'active'; 197 function findComponent(){ 198 root = $('.jsCarousel'); 199 } 200 $(function() { 201 var bxs = []; 202 findComponent(); 203 if(root.length > 0){ 204 var ie8lower; 205 if(!window.__ua.isMSIE && window.__ua.isIEVersion < 1) { 206 ie8lower = false; 207 } else { 208 if(window.__ua.isIEVersion < 9){ 209 ie8lower = true; 210 } 211 } 212 root.each(function(j){ 213 var self = $(this), htmlStr = self.find('.carouselList').html(); 214 self.find('.carousePager').find('ul').addClass('pc'); 215 self.find('.carousePager').find('ul').clone().appendTo(self.find('.carousePager').find('ul').parent()).removeClass('pc').addClass('sp'); 216 self.find('ul.sp a').each(function(i){ 217 $(this).attr('data-slide-index', i); 218 $(this).removeClass('select'); 219 }); 220 221 bxs[j] = self.find('.carouselList').bxSlider({ 222 mode: 'fade', 223 pagerCustom: 'ul.sp', 224 onSlideAfter: function(){ 225 self.dtcarousel('onSlideChangeCompleteExternal') 226 } 227 }); 228 self.find('ul.sp').hide(); 229 self.find('.bx-controls.bx-has-controls-direction').hide(); 230 self.dtcarousel({ 231 ctrlWrapper: '.carousePager', 232 slide: '.carousePager > ul.pc', 233 slideSP: '.carousePager > ul.sp', 234 prevBtn: '.carouselPrev', 235 nextBtn: '.carouselNext', 236 pausePlayBtn: '.carouselStop', 237 autoPlay: true, 238 params: {overflowAmount: 4}, 239 banner: { 240 width: 150, 241 margin: 15 242 }, 243 onSlideChange: function(i){ 244 bxs[j].goToSlide(i); 245 }, 246 rwd: { 247 onBreak: function(s){ 248 } 249 }, 250 clickBannerToSlideMode: false, 251 isAbsolutePos: ie8lower 252 }); 253 self.on('click', '.carouselStop,.carouselPlayback', function(){ 254 if(self.attr('data-index') === 'sp'){ 255 if($(this).hasClass('carouselStop')){ 256 bxs[j].startAuto(); 257 } else if($(this).hasClass('carouselPlayback')){ 258 bxs[j].stopAuto(); 259 } 260 } 261 }); 262 }); 263 } 264 }); 265})(jQuery); 266 267 268;(function($){ 269 var root, active = 'select', amount = 0, slideWrapper, indecatorWrapper, controlWrapper, control = '', slideObj; 270 function findComponent(){ 271 root = $('.jsCarouselArea'); 272 slideWrapper = $('.jsCarouselArea > .carouselList'); 273 control += '<div class="carouselControl">\n<div class="carousePager">\n<ul class="clear"></ul>\n</div>\n'; 274 control += '<ul class="carouselBtn"><li><a href="javascript:;" class="carouselStop">忢</a></li></ul>\n</div>'; 275 $('.jsCarouselArea').append(control); 276 controlWrapper = $('.jsCarouselArea > .carouselControl'); 277 indecatorWrapper = $('.jsCarouselArea > .carouselControl > .carousePager > ul'); 278 } 279 function setAmount(){ 280 amount = slideWrapper.children().length; 281 } 282 function setIndicator(){ 283 var i, l, str = ''; 284 if (amount > 1){ 285 for(i = 0, l = amount; i < l; i++){ 286 str += '<li><a href="javascript:;" data-index="'+ i +'"><span>'+ (i + 1) +'</span></a></li>\n' 287 } 288 indecatorWrapper.html(str); 289 defaultSelected(0) 290 }else { 291 controlWrapper.css({'display': 'none'}) 292 } 293 } 294 function defaultSelected(n){ 295 indecatorWrapper.children().eq(n).children().addClass('select'); 296 } 297 $(function(){ 298 findComponent(); 299 if(root.length > 0){ 300 setAmount(); 301 setIndicator(); 302 if(amount > 1){ 303 slideObj = slideWrapper.bxSlider({ 304 controls: false, 305 mode: 'horizontal', 306 pager: false, 307 auto: true, 308 pause: 3000, 309 onSlideBefore: function(){ 310 indecatorWrapper.find('.select').removeClass('select'); 311 indecatorWrapper.children().eq(slideObj.getCurrentSlide()).children().addClass('select'); 312 } 313 }); 314 root.on('click', '.carouselStop,.carouselPlayback', function(){ 315 if($(this).hasClass('carouselStop')){ 316 $(this).addClass('carouselPlayback').removeClass('carouselStop').text('åç'); 317 slideObj.stopAuto(); 318 } else if($(this).hasClass('carouselPlayback')){ 319 $(this).addClass('carouselStop').removeClass('carouselPlayback').text('忢'); 320 slideObj.startAuto(); 321 } 322 return false; 323 }); 324 controlWrapper.find('[data-index]').css({'cursor':'pointer','width':'11px','height':'11px'}) 325 controlWrapper.find('[data-index]').on('click', function(){ 326 slideObj.goToSlide(Number($(this).attr('data-index'))); 327 return false; 328 }) 329 } 330 } 331 }); 332})(jQuery); 333 334;(function($){ 335 /* sp top only */ 336 var root, active = 'select', amount = 0, slideWrapper, indecatorWrapper, controlWrapper, control = '', slideObj; 337 function findComponent(){
338 root = $('.jsTopSpCarouselArea'); 339 slideWrapper = $('.jsTopSpCarouselArea > .carouselList'); 340 control += '<div class="carouselControl">\n<div class="carousePager">\n<ul class="clear"></ul>\n</div>\n'; 341 control += '<ul class="carouselBtn"><li><a href="javascript:;" class="carouselStop">忢</a></li></ul>\n</div>'; 342 controlWrapper = $('.jsTopSpCarouselArea').append(control); 343 indecatorWrapper = $('.jsTopSpCarouselArea > .carouselControl > .carousePager > ul'); 344 } 345 function setAmount(){ 346 amount = slideWrapper.children().length; 347 } 348 function setIndicator(){ 349 var i, l, str = ''; 350 if (amount > 1){ 351 for(i = 0,l = amount; i < l; i++){ 352 str += '<li><a href="javascript:;"><span>'+ (i + 1) +'</span></a></li>\n' 353 } 354 indecatorWrapper.html(str); 355 defaultSelected(0) 356 }else { 357 controlWrapper.css({ 358 'display': 'none' 359 }) 360 } 361 } 362 function defaultSelected(n){ 363 indecatorWrapper.children().eq(n).children().addClass('select'); 364 } 365 $(function(){ 366 findComponent(); 367 if(root.length > 0){ 368 setAmount(); 369 setIndicator(); 370 if(amount > 1){ 371 slideObj = slideWrapper.bxSlider({ 372 controls: false, 373 mode: 'horizontal', 374 pager: false, 375 auto: true, 376 pause: 3000, 377 onSlideAfter: function(){ 378 indecatorWrapper.find('.select').removeClass('select'); 379 indecatorWrapper.children().eq(slideObj.getCurrentSlide()).children().addClass('select'); 380 } 381 }); 382 root.on('click', '.carouselStop,.carouselPlayback', function(){ 383 if($(this).hasClass('carouselStop')){ 384 $(this).addClass('carouselPlayback').removeClass('carouselStop').text('åç'); 385 slideObj.stopAuto(); 386 } else if($(this).hasClass('carouselPlayback')){ 387 $(this).addClass('carouselStop').removeClass('carouselPlayback').text('忢'); 388 slideObj.startAuto(); 389 } 390 return false; 391 }); 392 } 393 } 394 }); 395})(jQuery); 396 397 398(function($) { 399 var bxsSlider,bxsSliderList = []; 400 (BxsSlider = function() { 401 this.init.apply(this, arguments); 402 }).prototype = { 403 root: undefined, amount: 0, prev: undefined, next: undefined, 404 slideWrapper: undefined, slideObj: undefined, 405 init: function(obj) { 406 var self = this; 407 self.root = obj.root; 408 self.prev = obj.prev; 409 self.next = obj.next; 410 self.slideWrapper = self.root.children('.carouselList'); 411 self.amount = self.slideWrapper.children().length; 412 if(self.amount > 1){ 413 self.slideObj = self.slideWrapper.bxSlider({ 414 controls: false, 415 mode: 'horizontal', 416 pager: false, 417 auto: true, 418 pause: 3000 419 }); 420 self.prev.on('click.smbc', function(){ 421 self.slideObj.goToNextSlide(); 422 return false; 423 }); 424 self.next.on('click.smbc', function(){ 425 self.slideObj.goToPrevSlide(); 426 return false; 427 }); 428 } 429 } 430 } 431 $(function(){ 432 $('.jsSpCarouselArea ').each(function(){ 433 bxsSliderList.push(new BxsSlider({root: $(this), prev: $(this).find('a.prev'), next: $(this).find('a.next')})) 434 }); 435 }) 436})(jQuery); 437 438;(function($) { 439 $(function(){ 440 var l = $('.jsCarouselAreaNormal01 ul > li').length; 441 var obj = $('.jsCarouselAreaNormal01 > ul').bxSlider({ 442 controls: false, 443 auto: true, 444 pause: 3000, 445 minSlides: 1, 446 maxSlides: 1, 447 moveSlides: 1, 448 mode: 'fade', 449 //startSlide: $('#topSliderInner > ul li').length - 1, 450 //pagerCustom: '#topSliderWrap > ul', 451 onSliderLoad:function(currentIndex){ 452 var nth = l+'n'; 453 $('.jsCarouselAreaNormal01 ul > li').removeClass('select'); 454 $('.jsCarouselAreaNormal01 ul > li:nth-child('+nth+')').addClass('select'); 455 }, 456 onSlideBefore: function($slideElement, oldIndex, newIndex){ 457 var new_i = newIndex % l; 458 var nth = (new_i < 0) ? l+'n' : l+'n'+new_i; 459 $('.jsCarouselAreaNormal01 ul li').removeClass('select'); 460 $('.jsCarouselAreaNormal01 ul > li:nth-child('+nth+')').addClass('select'); 461 obj.stopAuto(); 462 obj.startAuto(); 463 }, 464 onSlideAfter: function() { 465 obj.stopAuto(); 466 obj.startAuto(); 467 } 468 });
469 $('.jsCarouselAreaNormal01 .carouselNext').on('click.smbc', function(){ 470 obj.goToNextSlide(); 471 return false; 472 }); 473 $('.jsCarouselAreaNormal01 .carouselPrev').on('click.smbc', function(){ 474 obj.goToPrevSlide(); 475 return false; 476 }); 477 }) 478})(jQuery); 479 480;(function($) { 481 $(function(){ 482 var exeslide = $('.bx-slider').bxSlider({ 483 auto: true, 484 speed: 1000, 485 pause: 5000, 486 minSlides: 4, 487 maxSlides: 4, 488 slideWidth: 240, 489 moveSlides: 1, 490 pager: false, 491 prevText: '<', 492 nextText: '>', 493 infiniteLoop: true, 494 slideMargin: 25, 495 onSlideAfter: function () { exeslide.startAuto(); } 496 }); 497 }); 498})(jQuery); 499 500;(function($) { 501 var bxsSlider, bxsSliderList = []; 502 (BxsSlider = function() { 503 this.init.apply(this, arguments); 504 }).prototype = { 505 root: undefined, htmlStr: '', bxsObj: undefined, 506 init: function(obj) { 507 var self = this; 508 self.root = obj.root; 509 self.htmlStr = self.root.find('.carouselList').html(); 510 self.bxsObj = self.root.find('.carouselList').bxSlider({ 511 controls: false, 512 mode: 'fade', 513 pager: false 514 }); 515 var ie8lower; 516 if(!window.__ua.isMSIE && window.__ua.isIEVersion < 1) { 517 ie8lower = false; 518 } else { 519 if(window.__ua.isIEVersion < 9){ 520 ie8lower = true; 521 } 522 } 523 self.root.dtcarousel({ 524 ctrlWrapper: '.carousePager', 525 slide: '.carousePager > ul', 526 prevBtn: '.carouselPrev', 527 nextBtn: '.carouselNext', 528 pausePlayBtn: '.carouselStop', 529 autoPlay: true, 530 banner: { 531 width: 150, 532 margin: 15 533 }, 534 onSlideChange: function(i){ 535 self.bxsObj.goToSlide(i); 536 }, 537 rwd: { 538 enabled : false 539 }, 540 clickBannerToSlideMode: false, 541 isAbsolutePos: ie8lower 542 }); 543 self.root.on('click', '.carouselStop,.carouselPlayback', function(){ 544 if($(this).hasClass('carouselStop')){ 545 self.bxsObj.startAuto(); 546 } else if($(this).hasClass('carouselPlayback')){ 547 self.bxsObj.stopAuto(); 548 } 549 }) 550 } 551 } 552 $(function(){ 553 $('.jsTopCarousel').each(function(){ 554 bxsSliderList.push(new BxsSlider({root: $(this)})); 555 }); 556 }) 557})(jQuery); 558 559;(function($){ 560 var root, bxs = []; 561 function findComponent(){ 562 root = $('.jsTopTab'); 563 } 564 $(function(){ 565 findComponent(); 566 if(root.length > 0){ 567 root.each(function(j){ 568 $(this).dttab({}); 569 }); 570 } 571 }) 572})(jQuery); 573 574 575;(function($){ 576 var root, bxs = [],bxObj,breakPoint = 768, m, root, mode = '', slideCount; 577 function findComponent(){ 578 root = $('.jsCarouselAreaTwoFour'); 579 } 580 581 function checkModeChange(m){ 582 if(m != mode){ 583 if (m =='sp') { 584 rebuildSp(); 585 }else if(m == 'pc'){ 586 rebuildPc(); 587 } 588 mode = m; 589 } 590 } 591 function attachResizeEvent(){ 592 $(window).on('resize.smbcWidth', $.debounce(500, function(){ 593 var w = window.innerWidth; 594 if(w < breakPoint){ 595 checkModeChange('sp'); 596 }else{ 597 checkModeChange('pc'); 598 } 599 })); 600 $(window).trigger('resize') 601 } 602 function rebuildSp(){ 603 if(slideCount >=2){ 604 bxObj.reloadSlider({ 605 minSlides: 2, 606 maxSlides: 2, 607 moveSlides: 1, 608 slideWidth: 260, 609 slideMargin: 20, 610 auto: true, 611 pager: false, 612 useCSS: false 613 }); 614 root.find('.next,.prev').show(); 615 }else{ 616 bxObj.destroySlider(); 617 root.find('.next,.prev').hide(); 618 } 619 } 620 function rebuildPc(){ 621 if(slideCount >=4){ 622 bxObj.reloadSlider({ 623 minSlides: 4, 624 maxSlides: 4, 625 moveSlides: 1, 626 slideWidth: 156, 627 slideMargin: 22, 628 auto: true, 629 pager: false, 630 controls: false, 631 useCSS: false 632 }); 633 }else{ 634 bxObj.destroySlider(); 635 root.find('.next,.prev').hide(); 636 } 637 } 638 $(function(){ 639 findComponent(); 640 if(root.length > 0){ 641 slideCount = root.children('ul').find('li').length; 642 bxObj = root.children('ul').bxSlider({ 643 minSlides: 4, 644 maxSlides: 4, 645 moveSlides: 1, 646 slideWidth: 156, 647 slideMargin: 22, 648 auto: true, 649 pager: false, 650 controls: false,
651 useCSS: false 652 }); 653 root.on('click','.next',function(e){ 654 bxObj.goToNextSlide(); 655 }); 656 root.on('click','.prev',function(e){ 657 bxObj.goToPrevSlide(); 658 }); 659 attachResizeEvent(); 660 } 661 }) 662})(jQuery); 663 664;(function($){ 665 $(function(){ 666 667 var fw = $(window).width(); 668 var b = $('.jsCarouselAreaTop01 .carousel-btn'); 669 var l = $('.jsCarouselAreaTop01 .carousel > div').length; 670 var obj = $('.jsCarouselAreaTop01 .carousel').slick({ 671 arrows: false, 672 autoplay: true, 673 centerMode: true, 674 autoplaySpeed: 5000, 675 centerPadding: '0', 676 draggable: false, 677 pauseOnHover: false, 678 responsive: [{ 679 breakpoint: 768, 680 settings: { 681 initialSlide: 0, 682 asNavFor: '.thumbnail' 683 } 684 }] 685 }); 686 var l_p = $('.jsCarouselAreaTop01 .thumbnail > div').length; 687 var obj_p = $('.jsCarouselAreaTop01 .thumbnail').slick({ 688 arrows: false, 689 autoplay: true, 690 slidesToShow: l_p - 1, 691 slidesToScroll: 1, 692 centerMode: true, 693 autoplaySpeed: 1500, 694 draggable: false, 695 variableWidth: true, 696 focusOnSelect: true, 697 pauseOnHover: false, 698 responsive: [{ 699 breakpoint: 768, 700 settings: { 701 centerMode: false, 702 autoplay: false, 703 slidesToShow: l_p, 704 slidesToScroll: 3, 705 initialSlide: 0, 706 asNavFor: '.carousel' 707 } 708 }] 709 }); 710 function pagerMargin(){ 711 if(l_p > 8){ 712 obj_p.find('.slick-slide').css('margin', '0 7px'); 713 } 714 } 715 b.find('.prev').on('click',function(e){ 716 obj.slick('slickPrev'); 717 }); 718 b.find('.next').on('click',function(e){ 719 obj.slick('slickNext'); 720 }); 721 obj_p.find('a').on('click',function(e){ 722 e.preventDefault(); 723 slideIndex = $(this).parent('div').index(); 724 if(slideIndex > l_p-1 ){ 725 slideIndex = slideIndex - l_p; 726 } 727 obj.slick('slickGoTo', parseInt(slideIndex)); 728 $(this).blur(); 729 }); 730 $(window).on('resize', function() { 731 var rw = $(window).width(); //reset width 732 if(rw < 768 && fw != rw){ 733 obj.slick('slickGoTo', 0); 734 pagerMargin(); 735 } 736 }); 737 $.event.add(window,'load',function(){ 738 pagerMargin(); 739 }); 740 }); 741})(jQuery); 742;(function($){ 743 $(function() { 744 745 function pagePluginCode(w) { 746 if(w > 464) { 747 var h = 300; 748 } else { 749 var h = 350; 750 } 751 return '<div class="fb-page" data-href="https://www.facebook.com/lifecorp428" data-tabs="timeline" data-width="'+w+'" data-height="'+h+'" data-small-header="true" data-adapt-container-width="true" data-hide-cover="false" data-show-facepile="false"><blockquote cite="https://www.facebook.com/lifecorp428" class="fb-xfbml-parse-ignore"><a href="https://www.facebook.com/lifecorp428">ã©ã¤ããã¹ã¼ãã¼ãã¼ã±ãã</a></blockquote></div>'; 752 } 753 var facebookWrap = $('#facebook-area'); 754 var fbBeforeWidth = ''; 755 var fbWidth = facebookWrap.width(); 756 var fbTimer = false; 757 $(window).on('load resize', function() { 758 if(facebookWrap.length){ 759 if (fbTimer !== false) { 760 clearTimeout(fbTimer); 761 } 762 fbTimer = setTimeout(function() { 763 fbWidth = facebookWrap.width(); 764 if(fbWidth != fbBeforeWidth) { 765 facebookWrap.html(pagePluginCode(fbWidth)); 766 window.FB.XFBML.parse(); 767 fbBeforeWidth = fbWidth; 768 } 769 }, 200); 770 } 771 }); 772 }); 773})(jQuery); 774 775//ã©ã©ãã¼ãã£ã³ãã¼ã³ 776;(function($){ 777 $(function() { 778 $(".modal-btn").click(function(){ 779 $(this).css("display","none"); 780 781 }); 782 783 }); 784})(jQuery); 785 786
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.