1//æåã³ã¼ãã¯utf-8 2/* matchmedia 3----------------------------------------------*/ 4function isMatchMedia(){ 5 if(window.matchMedia("(max-width:767px)").matches){ 6 return "smartphone"; 7 } else { 8 return "pc"; 9 } 10} 11 12$(window).on('load',function (){ 13 if(isMatchMedia() == "smartphone"){ 14 window.ontouchstart = function() {}; 15 window.addEventListener('touchstart', function() {}, true); 16 window.addEventListener('touchstart', function() {}, false); 17 } 18}); 19 20/* header 21----------------------------------------------*/ 22$(function(){ 23 $('.js-navOpen').on('click',function(){ 24 $(this).toggleClass("is-open"); 25 $('#gMenu').toggleClass("is-open"); 26 $('body').toggleClass('is-open'); 27 }); 28}); 29 30// ä¸å±¤ãããã¼ 31$(function(){ 32 var pos = 0; 33 let target = $("#js-navSp"); 34 $(window).on('scroll load', function(){ 35 if(isMatchMedia() == "smartphone"){ 36 if($(this).scrollTop() < pos || $(this).scrollTop() < 100){ 37 $('.header--under').addClass("is-act"); 38 }else{ 39 $('.header--under').removeClass("is-act"); 40 } 41 pos = $(this).scrollTop(); 42 } 43 }); 44}); 45 46/* animation 47----------------------------------------------*/ 48var animation04 = lottie.loadAnimation({ 49 container: document.getElementById("jsRizeAnim"), 50 renderer: "svg", 51 loop: false, 52 autoplay: false, 53 path: "/assets/json/rizekuma.json" 54}); 55 56 57/* shapes 58----------------------------------------------*/ 59var shape01 = lottie.loadAnimation({ 60 container: document.getElementById("jsShape01"), 61 renderer: "svg", 62 loop: true, 63 autoplay: true, 64 path: "/assets/json/shapes/shape_1.json" 65}); 66var shape02 = lottie.loadAnimation({ 67 container: document.getElementById("jsShape02"), 68 renderer: "svg", 69 loop: true, 70 autoplay: true, 71 path: "/assets/json/shapes/shape_2.json" 72}); 73var shape03 = lottie.loadAnimation({ 74 container: document.getElementById("jsShape03"), 75 renderer: "svg", 76 loop: true, 77 autoplay: true, 78 path: "/assets/json/shapes/shape_3.json" 79}); 80var shape04 = lottie.loadAnimation({ 81 container: document.getElementById("jsShape04"), 82 renderer: "svg", 83 loop: true, 84 autoplay: true, 85 path: "/assets/json/shapes/shape_4.json" 86}); 87var shape05 = lottie.loadAnimation({ 88 container: document.getElementById("jsShape05"), 89 renderer: "svg", 90 loop: true, 91 autoplay: true, 92 path: "/assets/json/shapes/shape_5.json" 93}); 94var shape06 = lottie.loadAnimation({ 95 container: document.getElementById("jsShape06"), 96 renderer: "svg", 97 loop: true, 98 autoplay: true, 99 path: "/assets/json/shapes/shape_4.json" 100}); 101var shape07 = lottie.loadAnimation({ 102 container: document.getElementById("jsShape07"), 103 renderer: "svg", 104 loop: true, 105 autoplay: true, 106 path: "/assets/json/shapes/shape_1.json" 107}); 108 109// classã®ç®æã«ã·ã§ã¤ããæ¿å ¥ 110$(window).on('load',function (){ 111 var nums = 7; // å®ç¾©ã·ã§ã¤ãæå¤§æ° 112 for (var i = 0; i <= nums; i++) { 113 if($(".jsInsShape0" + i).length){ 114 $('.jsInsShape0' + i).prepend($('#jsShape0' + i)); 115 $('#jsShape0' + i).css("display", "block"); 116 } 117 } 118}); 119 120/* kv 121----------------------------------------------*/ 122$(window).on('load',function (){ 123 //ã©ã³ãã 124 //$(".jsKvSlideInner").each(function(){ 125 // var randomContent = []; 126 // $(this).find('li').each(function() { 127 // randomContent.push($(this).html()); 128 // }); 129 // randomContent.sort(function() { 130 // return Math.random() - Math.random(); 131 // }); 132 // $(this).find('li').empty(); 133 // i = 0; 134 // $(this).find('li').each(function() { 135 // $(this).append(randomContent[i]); 136 // i++; 137 // }); 138 //}); 139 140 function slideList(slide){ 141 $(slide).each(function(){ 142 var li = $(this).children("li"); 143 var nums = li.length; 144 var count = 0; 145 li.eq(count).fadeIn(800); 146 setInterval(slide, 4500); 147 function slide(){ 148 if(count >= (nums-1)){ 149 count = 0; 150 li.eq(count).addClass("is-act"); 151 li.eq(nums-1).removeClass("is-act"); 152 }else{ 153 li.eq(count).removeClass("is-act"); 154 li.eq(count +1).addClass("is-act"); 155 count = count + 1; 156 } 157 } 158 });
159 } 160 161 setTimeout(function(){ 162 slideList(".jsKvSlideInnerTop"); 163 $(".topKv").addClass("is-second"); 164 $('.krkr-button-img').addClass('is-act'); 165 },3000); 166 setTimeout(function(){ 167 slideList(".jsKvSlideInnerBottom"); 168 },4000); 169 setTimeout(function(){ 170 $(".jsKvSlide").removeClass("is-first"); 171 },1000); 172 173}); 174$(window).on('scroll', function(){ 175 if($(this).scrollTop() < 0 || $(this).scrollTop() < 300){ 176 $('.header').removeClass('header--top'); 177 $(".topKv").addClass("is-scroll"); 178 $(".krkr-button-img").addClass("is-scroll"); 179 } 180}); 181 182 183/* anchor link 184----------------------------------------------*/ 185$(function(){ 186 var move_sec = 500; 187 $('a.jsAnchor[href^="#"]').on("click", function () { 188 var _this = $(this); 189 $('body, html').animate({ 190 scrollTop: $(_this.attr("href")).offset().top// - header.outerHeight() - 30 191 }, move_sec); 192 return false; 193 }); 194}); 195 196 197$(window).on('scroll load',function (){ 198 if( $('#jsMapAnime').length){ 199 let scroll = $(window).scrollTop(), 200 triggeAnime = $('#jsMapAnime').offset().top - 10, 201 windowHeight = $(window).height(), 202 animateClass = ('is-act'); 203 if (scroll > triggeAnime - windowHeight){ 204 $('.topHistory__map').addClass(animateClass); 205 setTimeout(function(){ 206 $('.jsCount01').html(24); 207 $('.jsCount02').html(29); 208 },1000); 209 } 210 } 211}); 212 213$(window).on('scroll load',function (){ 214 if( $('#jsRizeAnim').length){ 215 let scroll = $(window).scrollTop(), 216 triggeAnime = $('#jsRizeAnim').offset().top - 10, 217 windowHeight = $(window).height(), 218 animateClass = ('is-act'); 219 if (scroll > triggeAnime - windowHeight){ 220 setTimeout(function(){ 221 animation04.play(); 222 $("#jsRizeDetail").addClass("is-act"); 223 },1000); 224 } 225 } 226}); 227 228 229$(function(){ 230 if($('.skinSlider')[0]) { 231 const swiperSkin = new Swiper('.skinSlider',{ 232 loop: true, 233 slidesPerView: 'auto', 234 speed: 1000, 235 autoplay: { 236 delay: 4000, 237 }, 238 spaceBetween: 0, 239 pagination: { 240 el: '.swiper-pagination', 241 type: 'bullets', 242 clickable: true, 243 }, 244 spaceBetween: 20, 245 touchRatio: 0.02, 246 grabCursor: true, 247 slidesPerView: 1, 248 breakpoints: { 249 768: { 250 spaceBetween: 45, 251 }, 252 }, 253 }); 254 $(window).resize(function(){ 255 swiperSkin.autoplay.paused = false; 256 swiperSkin.autoplay.start(); 257 }); 258 } 259}); 260 261$(function(){ 262 if($('.skinConbinationSlider')[0]) { 263 const swiperSkinConbination = new Swiper('.skinConbinationSlider',{ 264 loop: true, 265 slidesPerView: 'auto', 266 speed: 1000, 267 autoplay: { 268 delay: 4000, 269 }, 270 spaceBetween: 0, 271 pagination: { 272 el: '.swiper-pagination', 273 type: 'bullets', 274 clickable: true, 275 }, 276 spaceBetween: 20, 277 touchRatio: 0.02, 278 grabCursor: true, 279 slidesPerView: 1, 280 breakpoints: { 281 768: { 282 spaceBetween: 45, 283 }, 284 }, 285 }); 286 $(window).resize(function(){ 287 swiperSkinConbination.autoplay.paused = false; 288 swiperSkinConbination.autoplay.start(); 289 }); 290 } 291}); 292 293$(function(){ 294 if($('.skinBaSlider')[0]) { 295 const swiperSkinBa = new Swiper('.skinBaSlider',{ 296 loop: true, 297 slidesPerView: 'auto', 298 speed: 1000, 299 autoplay: { 300 delay: 4000, 301 }, 302 spaceBetween: 0, 303 pagination: { 304 el: '.swiper-pagination', 305 type: 'bullets', 306 clickable: true, 307 }, 308 spaceBetween: 20, 309 touchRatio: 0.02, 310 grabCursor: true, 311 slidesPerView: 1, 312 breakpoints: { 313 768: { 314 spaceBetween: 45, 315 }, 316 }, 317 }); 318 $(window).resize(function(){ 319 swiperSkinBa.autoplay.paused = false; 320 swiperSkinBa.autoplay.start(); 321 }); 322 } 323}); 324 325$(function(){ 326 if($('.topInfoSlider')[0]) {
327 const swiperInfo = new Swiper('.topInfoSlider',{ 328 loop: true, 329 loopAdditionalSlides: 8, 330 speed: 9000, 331 freeMode: true, 332 autoplay: { 333 delay: 0, 334 disableOnInteraction: false, 335 }, 336 spaceBetween: 20, 337 slidesPerView: 'auto', 338 breakpoints: { 339 768: { 340 spaceBetween: 45, 341 }, 342 }, 343 }); 344 $(window).resize(function(){ 345 swiperInfo.autoplay.paused = false; 346 swiperInfo.autoplay.start(); 347 }); 348 } 349}); 350 351$(function(){ 352 if($('.swiperColumn')[0]) { 353 const swiperColumn = new Swiper('.swiperColumn',{ 354 loop: true, 355 loopAdditionalSlides: 8, 356 speed: 9000, 357 freeMode: true, 358 autoplay: { 359 delay: 0, 360 disableOnInteraction: false, 361 }, 362 spaceBetween: 20, 363 slidesPerView: 'auto', 364 breakpoints: { 365 768: { 366 spaceBetween: 20, 367 }, 368 }, 369 }); 370 $(window).resize(function(){ 371 swiperColumn.autoplay.paused = false; 372 swiperColumn.autoplay.start(); 373 }); 374 } 375}); 376 377$(function(){ 378 if($('.swiperInsideClinic')[0]) { 379 const swiperInsideClinic = new Swiper('.swiperInsideClinic',{ 380 loop: true, 381 loopAdditionalSlides: 8, 382 speed: 9000, 383 freeMode: true, 384 grabCursor: true, 385 //autoplay: { 386 // delay: 0, 387 // disableOnInteraction: false, 388 //}, 389 spaceBetween: 20, 390 slidesPerView: 1.5, 391 breakpoints: { 392 768: { 393 spaceBetween: 20, 394 slidesPerView: 'auto', 395 }, 396 }, 397 }); 398 $(window).resize(function(){ 399 swiperInsideClinic.autoplay.paused = false; 400 swiperInsideClinic.autoplay.start(); 401 }); 402 } 403}); 404 405$(function(){ 406 if($('.whatwedoSlider')[0]) { 407 const swiper = new Swiper('.whatwedoSlider',{ 408 loop: true, 409 loopAdditionalSlides: 8, 410 speed: 800, 411 freeMode: true, 412 freeModeMomentum: true, 413 grabCursor: true, 414 spaceBetween: 20, 415 slidesPerView: 'auto', 416 breakpoints: { 417 768: { 418 spaceBetween: 20, 419 }, 420 } 421 }); 422 } 423}); 424 425$(function(){ 426 if($('.locationsSlider')[0]) { 427 const swiper = new Swiper('.locationsSlider',{ 428 loop: true, 429 loopAdditionalSlides: 8, 430 speed: 800, 431 freeMode: false, 432 grabCursor: true, 433 spaceBetween: 20, 434 slidesPerView: 1, 435 pagination: { 436 el: '.swiper-pagination', 437 type: 'bullets', 438 clickable: true, 439 }, 440 breakpoints: { 441 768: { 442 spaceBetween: 45, 443 }, 444 } 445 }); 446 } 447}); 448 449$(function(){ 450 if($('.plansSlider')[0]) { 451 const swiper = new Swiper('.plansSlider',{ 452 loop: true, 453 loopAdditionalSlides: 8, 454 speed: 800, 455 freeMode: false, 456 grabCursor: true, 457 spaceBetween: 20, 458 slidesPerView: 1, 459 pagination: { 460 el: '.swiper-pagination', 461 type: 'bullets', 462 clickable: true, 463 }, 464 breakpoints: { 465 768: { 466 spaceBetween: 45, 467 }, 468 } 469 }); 470 } 471}); 472 473$(function(){ 474 if($('.otherPlanSlider')[0]) { 475 const swiperOtherPlan = new Swiper('.otherPlanSlider',{ 476 loop: true, 477 slidesPerView: 'auto', 478 speed: 1000, 479 autoplay: { 480 delay: 4000, 481 }, 482 spaceBetween: 0, 483 pagination: { 484 el: '.swiper-pagination', 485 type: 'bullets', 486 clickable: true, 487 }, 488 spaceBetween: 20, 489 touchRatio: 0.02, 490 grabCursor: true, 491 slidesPerView: 1, 492 breakpoints: { 493 768: { 494 spaceBetween: 45, 495 }, 496 }, 497 }); 498 $(window).resize(function(){ 499 swiperOtherPlan.autoplay.paused = false; 500 swiperOtherPlan.autoplay.start(); 501 }); 502 } 503}); 504 505 506const mediaQuery = window.matchMedia('(max-width: 767px)'); 507let reasonTabmenu = null; 508let reasonTabcontent = null; 509var flag = false; 510$(window).on('load resize',function(){ 511 if($('.whatwedo__reason .reason__head').length){ 512 if(isMatchMedia() == "pc"){ 513 if(flag){ 514 reasonTabmenu.destroy(); 515 reasonTabcontent.destroy(); 516 flag = false; 517 } else { 518 return false; 519 } 520 }else{ 521 if(flag){ 522 let ua = navigator.userAgent; 523 if ((ua.indexOf('iPhone') > 0 || ua.indexOf('Android') > 0) && ua.indexOf('Mobile') > 0) { 524 return false 525 } 526 } 527 flag = true; 528 reasonTabmenu = new Swiper('.reason__head', { 529 slidesPerView: 2, 530 freeMode: false, 531 watchSlidesVisibility: true, 532 watchSlidesProgress: true, 533 slideActiveClass: 'swiper-slide-active', 534 touchRatio: 0.02, 535 }); 536 537 reasonTabcontent = new Swiper('.reason__body', { 538 autoHeight: false, 539 slidesPerView: 1, 540 freeMode: false, 541 spaceBetween: 1, 542 touchRatio: 0.02, 543 allowTouchMove: false, 544 thumbs: { 545 swiper: reasonTabmenu 546 } 547 }); 548 } 549 } 550}); 551 552// ã¿ãåãæ¿ã 553$(document).ready(function() { 554 var tabFlag = true; 555 var this_url = window.location.href; 556 var param = this_url.split("?sid="); 557 var sid = param[1]; 558 var target = "#tabAnesthesia"; 559 var hushParts = this_url.split("#"); 560 var hushId = hushParts[1]; 561 var targetParts = "#tabPricelist"; 562 563 if( $('.modTab').length ){ 564 $(window).on('scroll',function (){ 565 let scroll = $(window).scrollTop(), 566 trgTab = $('.modTab').offset().top - 100, 567 windowHeight = $(window).height(); 568 if (scroll > trgTab - windowHeight){ 569 if(tabFlag){ 570 if(target){ 571 if(sid == "gas"){ 572 $(".tabCream").each(function () { 573 $(this).removeClass("is-active"); 574 }); 575 $(".tabGas").each(function () { 576 $(this).addClass("is-active"); 577 }); 578 $(".tabTape").each(function () { 579 $(this).removeClass("is-active"); 580 }); 581 const modTabmenu__anesthesia = new Swiper('.modTab__header--anesthesia', { 582 slidesPerView: 3, 583 initialSlide: 1, 584 freeMode: false, 585 watchSlidesVisibility: true, 586 watchSlidesProgress: true, 587 slideActiveClass: 'swiper-slide-active', 588 touchRatio: 0.02, 589 }); 590 591 const modTabcontent__anesthesia = new Swiper('.modTab__body--anesthesia', { 592 autoHeight: true, 593 slidesPerView: 1, 594 initialSlide: 1, 595 spaceBetween: 1, 596 nested: true, 597 touchRatio: 0.02, 598 thumbs: { 599 swiper: modTabmenu__anesthesia 600 } 601 }); 602 } else if(sid == "tape"){
603 $(".tabCream").each(function () { 604 $(this).removeClass("is-active"); 605 }); 606 $(".tabGas").each(function () { 607 $(this).removeClass("is-active"); 608 }); 609 $(".tabTape").each(function () { 610 $(this).addClass("is-active"); 611 }); 612 const modTabmenu__anesthesia = new Swiper('.modTab__header--anesthesia', { 613 slidesPerView: 3, 614 initialSlide: 2, 615 freeMode: false, 616 watchSlidesVisibility: true, 617 watchSlidesProgress: true, 618 slideActiveClass: 'swiper-slide-active', 619 touchRatio: 0.02, 620 }); 621 622 const modTabcontent__anesthesia = new Swiper('.modTab__body--anesthesia', { 623 autoHeight: true, 624 slidesPerView: 1, 625 initialSlide: 2, 626 spaceBetween: 1, 627 nested: true, 628 touchRatio: 0.02, 629 thumbs: { 630 swiper: modTabmenu__anesthesia 631 } 632 }); 633 } else if(hushId == "parts"){ 634 $(".tabPlan").each(function () { 635 $(this).removeClass("is-active"); 636 }); 637 $(".tabParts").each(function () { 638 $(this).addClass("is-active"); 639 }); 640 const modTabmenu = new Swiper('.modTab__header', { 641 slidesPerView: 2, 642 initialSlide: 1, 643 freeMode: false, 644 watchSlidesVisibility: true, 645 watchSlidesProgress: true, 646 slideActiveClass: 'swiper-slide-active', 647 touchRatio: 0.02, 648 }); 649 650 const modTabcontent = new Swiper('.modTab__body', { 651 autoHeight: true, 652 slidesPerView: 1, 653 initialSlide: 1, 654 spaceBetween: 1, 655 nested: true, 656 touchRatio: 0.02, 657 thumbs: { 658 swiper: modTabmenu 659 } 660 }); 661 } else { 662 initialTabSwiper(); 663 initialTabSwiper__topflow(); 664 initialTabSwiper__anesthesia() 665 } 666 } else { 667 initialTabSwiper(); 668 initialTabSwiper__topflow(); 669 initialTabSwiper__anesthesia() 670 } 671 tabFlag = false; 672 } 673 } 674 }); 675 } 676 677 function initialTabSwiper() { 678 const modTabmenu = new Swiper('.modTab__header', { 679 slidesPerView: 2, 680 freeMode: false, 681 watchSlidesVisibility: true, 682 watchSlidesProgress: true, 683 slideActiveClass: 'swiper-slide-active', 684 touchRatio: 0.02, 685 threshold: 15, 686 }); 687 688 const modTabcontent = new Swiper('.modTab__body', { 689 autoHeight: true, 690 slidesPerView: 1, 691 spaceBetween: 1, 692 nested: true, 693 touchRatio: 0.02, 694 allowTouchMove: false, 695 thumbs: { 696 swiper: modTabmenu 697 }, 698 }); 699 } 700 701 function initialTabSwiper__topflow() { 702 const modTabmenu__topflow = new Swiper('.modTab__header--topflow', { 703 slidesPerView: 2, 704 freeMode: false, 705 watchSlidesVisibility: true, 706 watchSlidesProgress: true, 707 slideActiveClass: 'swiper-slide-active', 708 touchRatio: 0.02, 709 threshold: 15, 710 }); 711 712 const modTabcontent__topflow = new Swiper('.modTab__body--topflow', { 713 autoHeight: true, 714 slidesPerView: 1, 715 spaceBetween: 1, 716 nested: true, 717 touchRatio: 0.02, 718 allowTouchMove: false, 719 thumbs: { 720 swiper: modTabmenu__topflow 721 }, 722 }); 723 } 724 725 function initialTabSwiper__anesthesia() { 726 const modTabmenu__anesthesia = new Swiper('.modTab__header--anesthesia', { 727 slidesPerView: 3, 728 freeMode: false, 729 watchSlidesVisibility: true, 730 watchSlidesProgress: true, 731 slideActiveClass: 'swiper-slide-active', 732 touchRatio: 0.02, 733 });
734 735 const modTabcontent__anesthesia = new Swiper('.modTab__body--anesthesia', { 736 autoHeight: true, 737 slidesPerView: 1, 738 spaceBetween: 1, 739 nested: true, 740 touchRatio: 0.02, 741 allowTouchMove: false, 742 thumbs: { 743 swiper: modTabmenu__anesthesia 744 }, 745 }); 746 } 747}); 748 749 750 751let mySwiper = null; 752 753const initSwiper = () => { 754 mySwiper = new Swiper('.topAboutSlider',{ 755 loop: true, 756 loopedSlides: 3, 757 loopAdditionalSlides: 12, 758 slidesPerView: 2.5, 759 speed: 8000, 760 freeMode: true, 761 freeModeMomentum: true, 762 autoplay: { 763 delay: 0, 764 disableOnInteraction: false, 765 }, 766 centeredSlides: true, 767 spaceBetween: 20, 768 }); 769}; 770 771const checkBreakpoint = (e) => { 772 if (e.matches) { 773 initSwiper(); 774 } else if (mySwiper) { 775 mySwiper.destroy(false, true); 776 } 777} 778 779if($('.topAboutSlider').length){ 780 mediaQuery.addListener(checkBreakpoint); 781 checkBreakpoint(mediaQuery); 782} 783 784 785function fadeUp(element) { 786 let scroll = $(window).scrollTop(); 787 animateClass = ('is-act'); 788 element.each(function(){ 789 var $this = $(this); 790 triggerTop = $this.offset().top - 0, 791 windowHeight = $(window).height(); 792 if (scroll > triggerTop - windowHeight){ 793 $this.addClass(animateClass); 794 } 795 }); 796 $(window).on('load scroll',function(){ 797 var scroll = $(window).scrollTop(); 798 element.each(function(){ 799 var $this = $(this); 800 triggerTop = $this.offset().top - 0, 801 windowHeight = $(window).height(); 802 if (scroll > triggerTop - windowHeight){ 803 $this.addClass(animateClass); 804 } 805 }); 806 }); 807} 808 809function Sacleup_h(element) { 810 animateClass = ('is-act'); 811 element.each(function(){ 812 let scroll = $(window).scrollTop(), 813 triggerTop = $(this).offset().top - 200, 814 windowHeight = $(window).height(); 815 if (scroll > triggerTop - windowHeight){ 816 $(this).addClass(animateClass); 817 } 818 }); 819} 820 821$(window).on('scroll load',function (){ 822 if ( $('.jsAct').length ) { 823 Sacleup_h($('.jsAct')); 824 } 825}); 826 827if ( $('.jsFadeup').length ) { 828 fadeUp($('.jsFadeup')); 829 fadeUp($('.jsFadeup2')); 830} 831 832$(function() { 833 fnLead(); 834}) 835$(window).on('resize',function(){ 836 fnLead(); 837}); 838function fnLead() { 839 if( $('.jsFadeupLead').length ) { 840 let str_brSp = '\<br class=\"modBpSp\">'; 841 let replaceText = '</span></span><span class=\"row\"><span class=\"line\">'; 842 $('.jsFadeupLead').each(function () { 843 var text = $(this).html(); 844 if(isMatchMedia() == "smartphone"){ 845 var strArray; 846 var result = ""; 847 if(text.indexOf(str_brSp) > -1){ 848 result_br = str_brSp; 849 strArray = text.split(str_brSp); 850 for (var i = 0; i <= strArray.length -1; i++) { 851 if(i==strArray.length -1){ 852 result += strArray[i]; 853 }else{ 854 result += strArray[i] + replaceText; 855 } 856 } 857 $(this).html(result); 858 } 859 }else{ 860 $(this).html(text); 861 } 862 }); 863 setTimeout(function(){ 864 fadeUp($('.jsFadeupLead')); 865 },300); 866 } 867} 868$(window).on('scroll load',function (){ 869 if ( $('.jsScaleup_h').length ) { 870 Sacleup_h($('.jsScaleup_h')); 871 } 872}); 873if ( $('.js-check').length ) { 874 setTimeout(function(){ 875 fadeUp($('.js-check')); 876 },1000); 877} 878 879// 1è¡ãã¤ãã§ã¼ãã¤ã³ 880//$(document).ready(function () { 881 // let str_br = '\<br\>'; 882 // let str_brSp = '\<br class=\"modBpSp\">'; 883// let str_brPc = '\<br class=\"modBpPc\">'; 884 885// $('.jsFadeinText .inner').each(function () { 886// var text = $(this).html(); 887// var strArray; 888// var strArray2; 889// var result = ""; 890// var result2 = ""; 891 892 //if(isMatchMedia() == "smartphone"){ 893 // spç¨brã§åå² 894 // result_br = str_brSp; 895 // strArray = text.split(str_br); 896 897 // for (var i = 0; i <= strArray.length -1; i++) { 898 // result += "<span class=\"row\">" + strArray[i] + "</span>"; 899 // } 900 // strArray2 = result.split(str_brSp); 901 // for (var i = 0; i <= strArray2.length -1; i++) { 902 // result2 += "</span><span class=\"row\">" + strArray2[i]; 903 // } 904 // $(this).html(result2); 905 // } else { 906 // brã§åå² 907 // result_br = str_br; 908 // strArray = text.split(str_br); 909 // for (var i = 0; i <= strArray.length -1; i++) { 910 // result += "<span class=\"row\">" + strArray[i] + "</span>"; 911 // } 912 // strArray2 = result.split(str_brPc); 913 // for (var i = 0; i <= strArray2.length -1; i++) { 914 // result2 += "</span><span class=\"row\">" + strArray2[i]; 915 // } 916 // $(this).html(result2); 917 // } 918 // }); 919//}); 920 921//$('.jsFadeinText').each(function () { 922// $(this).on('inview', function(event, isInView) { 923// if (isInView) { 924// $(this).addClass("is-act"); 925 // } 926// }); 927//}); 928 929 930function splitString(val){ 931 var textbox = ""; 932 val.split('').forEach(function (t, i) { 933 if (t !== " ") { 934 if (i < 10) { 935 textbox += '<span style="transition-delay:.' + i + 's;">' + t + '</span>'; 936 } else { 937 var n = i / 10; 938 textbox += '<span style="transition-delay:' + n + 's;">' + t + '</span>'; 939 } 940 } else { 941 textbox += t; 942 } 943 }); 944 return textbox; 945} 946// ã»ã¯ã·ã§ã³ã¿ã¤ãã« 947function splitTitle(element){ 948 let str_br = '\<br\>'; 949 let str_brPc = '\<br class=\"modBpPc\">'; 950 let str_brSp = '\<br class=\"modBpSp\">'; 951 var wsize = isMatchMedia();
952 953 element.each(function () { 954 var result_br = ''; 955 var strArray = ""; 956 var result = ""; 957 var text = $(this).html(); 958 959 if(text.indexOf(str_br) > -1){ 960 // console.log("æ¹è¡ãã"); 961 result_br = str_br; 962 } else if(text.indexOf(str_brPc) > -1){ 963 // console.log("pcã®ã¿æ¹è¡"); 964 result_br = str_brPc; 965 } else if(text.indexOf(str_brSp) > -1){ 966 // console.log("spã®ã¿æ¹è¡"); 967 result_br = str_brSp; 968 } else{ 969 // æ¹è¡ãªã 970 $(this).html(splitString(text)); 971 return; 972 } 973 strArray = text.split(result_br); 974 975 if(result_br == str_brPc && wsize == "smartphone"){ 976 for (var i = 0; i <= strArray.length -1; i++) { 977 result += strArray[i]; 978 } 979 result = splitString(result); 980 } else if(result_br == str_brSp && wsize == "pc"){ 981 for (var i = 0; i <= strArray.length -1; i++) { 982 result += strArray[i]; 983 } 984 result = splitString(result); 985 } else { 986 for (var i = 0; i <= strArray.length -1; i++) { 987 if(i > 0){ 988 result += result_br; 989 } 990 result += splitString(strArray[i]); 991 } 992 } 993 $(this).html(result); 994 }); 995} 996 997$(window).on('scroll load',function (){ 998 if ( $('.jsScaleup').length ) { 999 Sacleup_h($('.jsScaleup')); 1000 } 1001 if ( $('.modContentFree__img .zero').length ) { 1002 Sacleup_h($('.modContentFree__img .zero')); 1003 } 1004 if ( $('.js-usf').length ) { 1005 Sacleup_h($('.js-usf')); 1006 } 1007}); 1008 1009$('.jsCountYear').each(function () { 1010 $(this).on('inview', function(event, isInView) { 1011 if (isInView) { 1012 $('.jsCountYear').html(16); 1013 } 1014 }); 1015}); 1016 1017 1018// CVãã¿ã³ 1019$(function(){ 1020 let target = $(".topRecommendBox"); 1021 var flag = false; 1022 $(window).on('scroll load', function(){ 1023 if($(this).scrollTop() > 650){ 1024 $(target).removeClass("is-anim").addClass("is-hide"); 1025 flag = true; 1026 }else{ 1027 if(flag){ 1028 $(target).removeClass("is-anim").addClass("is-hide"); 1029 } 1030 } 1031 1032 if($(this).scrollTop() == 0 || $(this).scrollTop() < 650){ 1033 $(target).addClass("is-top").removeClass("is-hide is-anim"); 1034 }else if($(this).scrollTop() > 650){ 1035 $(target).removeClass("is-top"); 1036 } 1037 1038 var scrollHeight = $(document).height(); 1039 var scrollPosition = $(window).height() + $(window).scrollTop(); 1040 var footHeight = $(".footer").height(); 1041 if ( scrollHeight - scrollPosition <= footHeight + 500 ) { 1042 $(target).addClass("is-bottom").removeClass("is-hide is-anim"); 1043 }else{ 1044 $(target).removeClass("is-bottom"); 1045 } 1046 }); 1047 $('.topRecommendBox__head').on('click',function(event){ 1048 if($(this).closest(target).hasClass("is-hide")){ 1049 $(target).addClass("is-anim").removeClass("is-hide is-top is-bottom"); 1050 }else{ 1051 $(target).removeClass("is-anim is-top is-bottom").addClass("is-hide"); 1052 } 1053 }); 1054}); 1055 1056 1057// ã¢ã¼ãã« 1058$(function(){ 1059 $('.js-modal-open').each(function(){ 1060 $(this).on('click',function(){ 1061 var target = $(this).data('target'); 1062 var modal = document.getElementById(target); 1063 $('body').css('overflow-y', 'hidden'); 1064 $('body').addClass('show-modal'); 1065 $(modal).fadeIn(); 1066 return false; 1067 }); 1068 }); 1069 $('.js-modal-close').on('click',function(){ 1070 closeModal(); 1071 return false; 1072 }); 1073 1074 $(document).on('click',function(event){ 1075 if($('.show-modal').length){ 1076 if(!$(event.target).closest('.modModal__inner').length) { 1077 closeModal(); 1078 } 1079 } 1080 }); 1081}); 1082 1083function closeModal(){ 1084 $('.modModal').fadeOut(); 1085 $('body').css('overflow-y','auto'); 1086 $('body').removeClass('show-modal'); 1087} 1088 1089 1090// ãã£ã¨è¦ã 1091$(function(){ 1092 $(".js-text-more").on("click", function() { 1093 $(this).parent(".js-wrap-omit").toggleClass("is-open"); 1094 }); 1095 1096 $(".js-slidedown").on("click", function() { 1097 $(this).find(".toggleIcon").toggleClass("is-open"); 1098 $(this).next().slideToggle(); 1099 }); 1100}); 1101 1102var painflag = true; 1103if ( $('.js-painlv').length ) { 1104 $('.js-painlv').on('inview', function(event, isInView) { 1105 if(painflag){ 1106 if (isInView) { 1107 const painLv = $('.js-painlv').data('level'); 1108 let i = 1; 1109 let timeId = setInterval(function() { 1110 if (i === painLv) { 1111 clearInterval(timeId); 1112 setTimeout(function(){ 1113 $('.js-painlv').attr('src', '/assets/img/plans/img_pain_lv'+ painLv +'_off.svg'); 1114 },300); 1115 } 1116 $('.icon--pain').append('<img src="/assets/img/plans/icon_thumbder.svg" data-level="3" class="pain-on" alt="çã¿ã¬ãã«" width="268" height="57" loading="lazy">'); 1117 i++; 1118 }, 300); 1119 painflag = false; 1120 } 1121 } 1122 }); 1123} 1124 1125 1126 1127// ã«ã¼ãè£è¡¨åãæ¿ã 1128$(function(){ 1129 let target_front = $(".js-front"); 1130 let target_rev = $(".js-rev"); 1131 let target_inner = $(".modListCard__item__inner"); 1132 1133 $(target_front).each(function(){ 1134 $(this).on("click", function() { 1135 $(this).closest(target_inner).removeClass("is-hide").addClass("is-show"); 1136 $(this).closest(target_inner).nextAll().removeClass("is-show").addClass("is-hide"); 1137 return false; 1138 });
1139 }); 1140 $(target_rev).each(function(){ 1141 $(this).on("click", function() { 1142 $(this).closest(target_inner).removeClass("is-hide").addClass("is-show"); 1143 $(this).closest(target_inner).prevAll().addClass("is-hide").removeClass("is-show"); 1144 return false; 1145 }); 1146 }); 1147}); 1148 1149 1150/* <?php echo $machine_count; ?>種ã®è±æ¯æ©ã¢ã¼ãã« 1151----------------------------------------------*/ 1152$(document).ready(function () { 1153 var data = []; 1154 1155 $.ajax({ 1156 type: 'GET', 1157 url: '/assets/json/machine.json', 1158 dataType: 'json' 1159 }) 1160 .then( 1161 function(json) { 1162 for(var i = 0; i < json.length; i++){ 1163 data.push({ 1164 'name': json[i].name, 1165 'type': json[i].type, 1166 'wavelength': json[i].wavelength, 1167 'size': json[i].size, 1168 'method': json[i].method, 1169 'target': json[i].target, 1170 'system': json[i].system, 1171 'how': json[i].how, 1172 }); 1173 }; 1174 1175 }, 1176 function() { 1177 console.log('èªã¿è¾¼ã¿ã«å¤±æãã¾ãã'); 1178 } 1179 ); 1180 1181 $(".selectMachine.left").on("change", function() { 1182 let index = $(this).prop("selectedIndex"); 1183 $(".selectMachine.right").children().removeAttr("disabled"); 1184 $(".selectMachine.right option").eq(index).attr("disabled", "disabled"); 1185 $("#machine-imgL").attr("src", "/assets/img/whatwedo/img_machine0"+(index+1)+"_nologo.jpg"); 1186 $("#machine-imgL").attr("alt", data[index]['name']); 1187 $("#machine-typeL").html("<p id=\"machine-typeL\" class=\"type\">"+data[index]['type']+"<\/p>"); 1188 $("#machine-wavelengthL").html("<p id=\"machine-wavelengthL\" class=\"wavelength\">"+data[index]['wavelength']+"<\/p>"); 1189 $("#machine-sizeL").html("<p id=\"machine-sizeL\" class=\"size\">"+data[index]['size']+"<\/p>"); 1190 $("#machine-methodL").html("<p id=\"machine-methodL\" class=\"method\">"+data[index]['method']+"<\/p>"); 1191 $("#machine-targetL").html("<p id=\"machine-targetL\" class=\"target\">"+data[index]['target']+"<\/p>"); 1192 $("#machine-systemL").html("<p id=\"machine-systemL\" class=\"system\">"+data[index]['system']+"<\/p>"); 1193 $("#machine-howL").html("<p id=\"machine-howL\" class=\"how\">"+data[index]['how']+"<\/p>"); 1194 return false; 1195 }); 1196 $(".selectMachine.right").on("change", function() { 1197 let index = $(this).prop("selectedIndex"); 1198 $(".selectMachine.left").children().removeAttr("disabled"); 1199 $(".selectMachine.left option").eq(index).attr("disabled", "disabled"); 1200 $("#machine-imgR").attr("src", "/assets/img/whatwedo/img_machine0"+(index+1)+"_nologo.jpg"); 1201 $("#machine-imgR").attr("alt", data[index]['name']); 1202 $("#machine-typeR").html("<p id=\"machine-typeR\" class=\"type\">"+data[index]['type']+"<\/p>"); 1203 $("#machine-wavelengthR").html("<p id=\"machine-wavelengthR\" class=\"wavelength\">"+data[index]['wavelength']+"<\/p>"); 1204 $("#machine-sizeR").html("<p id=\"machine-sizeR\" class=\"size\">"+data[index]['size']+"<\/p>"); 1205 $("#machine-methodR").html("<p id=\"machine-methodR\" class=\"method\">"+data[index]['method']+"<\/p>"); 1206 $("#machine-targetR").html("<p id=\"machine-targetR\" class=\"target\">"+data[index]['target']+"<\/p>"); 1207 $("#machine-systemR").html("<p id=\"machine-systemR\" class=\"system\">"+data[index]['system']+"<\/p>"); 1208 $("#machine-howR").html("<p id=\"machine-howR\" class=\"how\">"+data[index]['how']+"<\/p>"); 1209 return false; 1210 }); 1211}); 1212 1213 1214 1215// ã¹ã¯ãã¼ã«å¦ç 1216var graphAnim = function() { 1217 var wy = window.pageYOffset, 1218 wb = wy + window.innerHeight, 1219 chartElPos1 = wy + chartEl1.getBoundingClientRect().top + 200; 1220 if ( wb > chartElPos1 && chartFlag1 == false ) { 1221 chartFunc1(); 1222 chartFlag1 = true; 1223 } 1224}; 1225if($('.jsChart').length){ 1226 window.addEventListener('load', graphAnim); 1227 window.addEventListener('scroll', graphAnim); 1228} 1229 1230$(window).on('scroll', function(){ 1231 $(".jsHistory").each(function(){ 1232 let scrollTop = $(window).scrollTop(); 1233 let winH = $('.jsHistory').height(); 1234 let section_bar_pos = $('.jsHistoryLine').offset().top; 1235 let section_bar_now = (1 - (section_bar_pos - scrollTop) / winH) * 60; 1236 $('.jsHistoryLine').css('height', section_bar_now + '%'); 1237 }); 1238}); 1239 1240$('section.gakuwari .modBox--blue .ttl_aco .modBtn').on('click', function() { 1241 if(!$(this).hasClass('active')) { 1242 $(this).addClass('active'); 1243 $(this).parent().next('.body_aco').slideDown(); 1244 $(this).text('éãã'); 1245 if($(this).closest(".swiper-wrapper").length > 0) { 1246 console.log($(this).parents('.swiper-wrapper').height()); 1247 $(this).parents('.swiper-wrapper').css('height', $(this).parents('.swiper-wrapper').height() + 1); 1248 } 1249 } else { 1250 $(this).removeClass('active');
1251 $(this).parent().next('.body_aco').slideUp(); 1252 $(this).text('詳ããè¦ã'); 1253 if($(this).closest(".swiper-wrapper").length > 0) { 1254 $(this).parents('.swiper-wrapper').css('height', $(this).parents('.swiper-wrapper').height() + 1); 1255 } 1256 } 1257}) 1258 1259 1260// ã¿ã 1261$('.tab_area_switch li').click(function() { 1262 var myIndex = $(this).index(); 1263 if(!$(this).hasClass('is-active')) { 1264 $(this).parent().children().removeClass('is-active'); 1265 $(this).addClass('is-active'); 1266 $(this).parent().next('.tab_section_switch').children('div').hide(); 1267 $(this).parent().next('.tab_section_switch').children('div').eq(myIndex).fadeIn(); 1268 } 1269 $(window).trigger('resize'); 1270}); 1271 1272 1273// å²å¼ 4clm balloon 1274$(function () { 1275 $('.specialplanBalloon__box .modBox--balloon').hide(); 1276 1277 $('.specialplanBalloon__box .modBox').on('click', function () { 1278 var $box = $(this).closest('.specialplanBalloon__area'); 1279 var target = $(this).data('target'); 1280 var $targetBalloon = $box.find(target); 1281 var $icon = $(this).find('.arrow'); 1282 1283 if ($targetBalloon.is(':visible')) { 1284 $targetBalloon.fadeOut(); 1285 $icon.removeClass('is-active'); 1286 } else { 1287 $box.find('.modBox--balloon').not($targetBalloon).fadeOut(); 1288 $box.find('.arrow').removeClass('is-active'); 1289 1290 $targetBalloon.fadeIn(); 1291 $icon.addClass('is-active'); 1292 } 1293 }); 1294}); 1295 1296 1297// æ«å®å¦çï¼FAQãµã¤ãã¸ã®ãªã³ã¯ãæ¸ãæãï¼ 1298document.addEventListener('DOMContentLoaded', () => { 1299 // æå®ãããµããã¡ã¤ã³ããå§ã¾ã <a> ã¿ã°ããã¹ã¦åå¾ 1300 const targetLinks = document.querySelectorAll('a[href^="https://faq.rizeclinic.com"]'); 1301 1302 // ãªã³ã¯URLãæ¸ãæã 1303 targetLinks.forEach(link => { 1304 link.href = 'https://www.rizeclinic.com/faq/'; 1305 }); 1306});
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.