1 2function anchor() { 3 $('a[href^="#"]').click(function () { 4 var Hash = $(this.hash), 5 $Hash = $(Hash); 6 if ($Hash.length > 0) { 7 var HashOffset = $Hash.offset().top; 8 $('html,body').animate({ 9 scrollTop: HashOffset 10 }, 300); 11 } 12 return false; 13 }); 14} 15function menu() { 16 $('.link--personal a[href]').on('click', function(event) { 17 $('.drawer__btn').trigger('click'); 18 }); 19 } 20window.onunload = function() { 21}; 22window.onpageshow = function(event) { 23 if (event.persisted) { 24 document.querySelector('body').classList.remove('drawer-visible'); 25 document.querySelector('body').classList.add('browser_back'); 26 } 27}; 28function drawer() { 29$('.drawer__btn,.drawer__btn--fc,.top--drawer__btn,.drawer__close').on('click', function () { 30 $('body').toggleClass('drawer-visible'); 31}); 32} 33function loaded() { 34 setTimeout(function() { 35 $('body').addClass('loaded'); 36 }, 10); 37} 38 39function scroll() { 40$(window).on('scroll', function () { 41 if ($(this).scrollTop() > 30) { 42 $('body').addClass('scrolling'); 43 } else { 44 $('body').removeClass('scrolling'); 45 } 46}); 47} 48function scroll_fix() { 49 $(window).on('scroll', function () { 50 if ($(this).scrollTop() > 400) { 51 $('body').addClass('scroll-fix'); 52 } else { 53 $('body').removeClass('scroll-fix'); 54 } 55 }); 56 } 57function scroll_color() { 58 $(window).on('scroll', function () { 59 var nowScroll = $(this).scrollTop(); 60 var width = $(window).width(); 61 62 let $bnroff = $('#FCTOP').offset().top; 63 let $personal = $('.area--fc').offset().top; 64 let $fcarea = $('.section--blog').offset().top; 65 let $sticky = $('.section--latest').offset().top; 66 67 // BNR Off 68 if (nowScroll >= $bnroff - 100) { 69 $('body').addClass('bnr--off'); 70 } else { 71 $('body').removeClass('bnr--off'); 72 } 73 74 // Color Personal 75 if (nowScroll >= $personal - 10) { 76 $('body').addClass('color--personal'); 77 } else { 78 $('body').removeClass('color--personal'); 79 } 80 81 // Color FC 82 if (width < 959) { 83 if ($('.area--fc').hasClass('notuseroption')) { 84 if (nowScroll >= $fcarea - 200) { 85 $('body').addClass('color--fc'); 86 } else { 87 $('body').removeClass('color--fc'); 88 } 89 } else { 90 if (nowScroll >= $fcarea - 500) { 91 $('body').addClass('color--fc'); 92 } else { 93 $('body').removeClass('color--fc'); 94 } 95 } 96 } else { 97 if (nowScroll >= $fcarea - 400) { 98 $('body').addClass('color--fc'); 99 } else { 100 $('body').removeClass('color--fc'); 101 } 102 } 103 104 // Heart Sticky 105 if (nowScroll >= $sticky - 400) { 106 $('body').addClass('heart--sticky'); 107 } else { 108 $('body').removeClass('heart--sticky'); 109 } 110 }); 111} 112 113function youtubeslider() { 114 var slider = $(".section--video .list--video li").length; 115 var width = $(window).width(); 116 if (width < 959) { 117 if(slider > 1){ 118 var mySwiper = new Swiper ('.section--video .video-container', { 119 slidesPerView: 1.1, 120 spaceBetween: 12, 121 allowTouchMove: true, 122 navigation: { 123 nextEl: '.swiper-button-next', 124 prevEl: '.swiper-button-prev', 125 } 126 }); 127 }else{ 128 $('.section--video').addClass('no-swiper'); 129 } 130 }else{ 131 if(slider > 2){ 132 var mySwiper = new Swiper ('.section--video .video-container', { 133 slidesPerView: 2.1, 134 spaceBetween: 32, 135 allowTouchMove: true, 136 navigation: { 137 nextEl: '.swiper-button-next', 138 prevEl: '.swiper-button-prev', 139 } 140 }); 141 }else{ 142 $('.section--video').addClass('no-swiper'); 143 } 144} 145} 146 147function oshimenCard() { 148 var Oshimen = $(".section--favorite .list--favorite li").length; 149 if(Oshimen > 1){ 150 var mySwiper = new Swiper ('.favorite-container', { 151 effect: "cards", 152 cardsEffect: { 153 perSlideOffset: 7, 154 perSlideRotate: 3, 155 rotate: true, 156 slideShadows: false, 157 }, 158 grabCursor: true, 159 pagination: { 160 el: '.swiper-pagination', 161 }, 162 navigation: { 163 nextEl: ".swiper-button-next", 164 prevEl: ".swiper-button-prev", 165 }, 166 mousewheel: { 167 invert: false, 168 }, 169 speed: 600, 170 }); 171 }else{ 172 $('.section--favorite').addClass('no-swiper'); 173 } 174} 175function personalslider() { 176 var latestSlider = $(".section--latest .list--contents li").length; 177 var width = $(window).width(); 178 if (width < 959) { 179 if(latestSlider > 1){ 180 var mySwiper = new Swiper ('.section--latest .latest-container', { 181 slidesPerView: 1.1, 182 spaceBetween: 20, 183 navigation: { 184 nextEl: '.swiper-button-next', 185 prevEl: '.swiper-button-prev', 186 } 187 }); 188 }else{ 189 $('.section--latest').addClass('no-swiper'); 190 } 191 }else{ 192 $('.section--latest').addClass('no-swiper'); 193} 194} 195 196 197$(function () { 198anchor(); 199drawer(); 200scroll(); 201youtubeslider(); 202// menu(); 203if ($('body').hasClass('page--home')) { 204 // swiper 205 //bnr 206 var bnrImg = $(".section--banner .list--bnr li").length; 207 var width = $(window).width(); 208 if (width < 959) { 209 if(bnrImg > 1){ 210 var mySwiper = new Swiper ('.bnr-container', { 211 slidesPerView: 1.1, 212 spaceBetween: 12, 213 autoplay: { 214 delay: 3000, 215 }, 216 navigation: { 217 nextEl: '.swiper-button-next', 218 prevEl: '.swiper-button-prev', 219 } 220 }); 221 mySwiper.autoplay.stop(); 222 $(window).on('scroll', function () { 223 let position = $('.bnr-container').offset().top - $(window).innerHeight() + 100, 224 scrollTop = $(window).scrollTop(); 225 if(scrollTop > position) { 226 mySwiper.autoplay.start(); //ç»é¢ã«ç¾ãããswiperãéå§ 227 }else{ 228 mySwiper.autoplay.stop(); // ç»é¢å¤ã«ã¹ã¯ãã¼ã«ãããswiperã忢 229 } 230 }); 231 }else{ 232 $('.section--banner').addClass('no-swiper'); 233 } 234 }else{ 235 if(bnrImg > 3){ 236 var mySwiper = new Swiper ('.bnr-container', { 237 slidesPerView: 3.1, 238 spaceBetween: 32, 239 autoplay: { 240 delay: 3000, 241 }, 242 navigation: { 243 nextEl: '.swiper-button-next', 244 prevEl: '.swiper-button-prev', 245 } 246 }); 247 mySwiper.autoplay.stop(); 248 $(window).on('scroll', function () { 249 let position = $('.bnr-container').offset().top - $(window).innerHeight() + 100, 250 scrollTop = $(window).scrollTop(); 251 if(scrollTop > position) { 252 mySwiper.autoplay.start(); //ç»é¢ã«ç¾ãããswiperãéå§ 253 }else{ 254 mySwiper.autoplay.stop(); // ç»é¢å¤ã«ã¹ã¯ãã¼ã«ãããswiperã忢 255 } 256 }); 257 }else{ 258 $('.section--banner').addClass('no-swiper'); 259 } 260 } 261 $('.list--support dt').on('click', function () { 262 $(this).toggleClass('open'); 263 $(this).next().slideToggle(); 264 }); 265} 266loaded(); 267menu(); 268scroll_fix(); 269oshimenCard(); 270personalslider(); 271// add data-delighter 272$('.section--info,.section--profile,.section--video,.block--copy,.block--copy .copy,.block--producer,.section--banner,.section--video,.list--profile li,.list--information li,.section--blog,.section--photo,.section--movie,.section--movie2,.section--staffblog,.section--radio,.area--fc .border,.area--fc .block--login .logo--fc,.area--fc .block--login .login--btn,.list--contents li,.block--contents_etc .list--contents_etc li,.section--favorite').attr({ 273 'data-delighter': '' 274 }); 275}); 276 277//TOPèªçæ¥è¡¨ç¤º 278$(function() { 279 if($('.section--top .block--birthday').length) { 280 $('.section--top .block--bnr').addClass('pc'); 281 } 282});
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.