1setTimeout(() => { fadeOutloading2(); }, 2000); 2 3function fadeOutloading2() { 4 const ms = 500; 5 const elm = document.querySelector("#loading"); 6 elm.style.opacity = 1; 7 setTimeout(function(){elm.style.opacity = 0;}, 1); 8 setTimeout(function(){elm.style.display = "none";}, ms + 10); 9} 10 11jQuery(window).on("load",function(){ 12 13 if(jQuery('.main-carousel').length){ setTimeout(function() { flickity(); }, 800); } 14 if(jQuery('.text-carousel').length){ flickityvoice(); } 15 if(jQuery('#tabs').length){ optionset(); } 16 17 18 spnavi(); 19 /*drawer();*/ 20 21 jQuery('body').imagesLoaded( function(){ 22 jQuery("#loading").fadeOut(500); 23 }); 24 25 jQuery('.midnightitem').midnight(); 26 27 if(jQuery('.wp-tag-cloud').length){ currenttag(); } 28 if(jQuery('.faq-dl').length){ faqdl(); } 29 30 MicroModal.init({ 31 openClass: 'is-open', 32 disableScroll: false, 33 disableFocus: true, 34 awaitOpenAnimation: true, 35 awaitCloseAnimation: true 36 }); 37}); 38 39function drawer() { 40 jQuery('.drawer').drawer({ 41 iscroll: { 42 mouseWheel: true, 43 preventDefault: false 44 }, 45 showOverlay: true 46 }); 47} 48 49function flickity() { 50 if(jQuery('.main-carousel').length){ 51 const jQuerycarousel = jQuery('.main-carousel').flickity({ 52 imagesLoaded: true, 53 fullscreen: false, 54 prevNextButtons: false, 55 wrapAround: true, 56 dragThreshold: 1, 57 autoPlay: 3800, 58 fade: true, 59 cellSelector: '.carousel-cell', 60 pauseAutoPlayOnHover: false, 61 percentPosition: true, 62 pageDots: false 63 }); 64 65 jQuerycarousel.on( 'change.flickity', function( event, pointer, moveVector ) { 66 jQuerycarousel.flickity('playPlayer'); 67 }); 68 69 jQuerycarousel.on( 'dragMove.flickity', function( event, pointer, moveVector ) { 70 jQuerycarousel.flickity('playPlayer'); 71 }); 72 } 73} 74 75function flickityvoice() { 76 if(jQuery('.text-carousel').length){ 77 const jQuerycarousel = jQuery('.text-carousel').flickity({ 78 imagesLoaded: true, 79 fullscreen: false, 80 prevNextButtons: false, 81 wrapAround: true, 82 dragThreshold: 1, 83 autoPlay: 5500, 84 cellSelector: '.text-cell', 85 pauseAutoPlayOnHover: false, 86 percentPosition: true, 87 pageDots: true 88 }); 89 90 jQuerycarousel.on( 'change.flickity', function( event, pointer, moveVector ) { 91 jQuerycarousel.flickity('playPlayer'); 92 }); 93 } 94} 95 96function isotope() { 97 if(jQuery('.grid-wrapper').length){ 98 imagesLoaded( document.querySelector('.grid-wrapper'), function() { 99 const iso = new Isotope( '.grid-wrapper', { 100 itemSelector: '.wp-block-image', 101 percentPosition: true, 102 hiddenStyle: { 103 transform: 'scale(1)' 104 }, 105 visibleStyle: { 106 transform: 'scale(1)' 107 }, 108 layoutMode: 'masonry', 109 masonry: { 110 columnWidth: '.x1', 111 gutter: '.gutter-sizer' 112 } 113 }); 114 }); 115 } 116} 117 118function optionset() { 119 const thispageurl = window.location; 120 jQuery('#tabs option[value="'+thispageurl+'"]').prop('selected', true); 121} 122 123function spnavi() { 124 jQuery('.gnavi-sp .sub-menu').addClass('hidden'); 125 const thispageurl = window.location; 126 jQuery('.gnavi-sp a[href="'+thispageurl+'"]').parent().parent('.sub-menu').removeClass('hidden'); 127 jQuery('.gnavi-sp a[href="'+thispageurl+'"]').parent().parent('.sub-menu').prev('.menu-a').addClass('active'); 128 129 jQuery(".menu-a").click(function(e) { 130 jQuery(this).toggleClass('active'); 131 jQuery(this).next('.sub-menu').slideToggle("first"); 132 e.preventDefault(); 133 return false; 134 }); 135} 136 137function currenttag() { 138 var thispageurl = window.location; 139 jQuery('.wp-tag-cloud li a[href="'+thispageurl+'"]').parent().addClass('current'); 140} 141 142function faqdl() { 143 jQuery(".faq-dl dt").on("click", function() { 144 jQuery(this).next().slideToggle(); 145 jQuery(this).toggleClass("active");//追å é¨å 146 }); 147}
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.