1//animation 2Animon.animon(); 3//loading 4//ãã¼ã¸ã®èªã¿è¾¼ã¿å®äºæã«å¦çãå®è¡ 5window.addEventListener("load", () => { 6 const loading = document.querySelector(".loading"); 7 const loadingBG = document.querySelector(".loading__bg"); 8 const loadingttlB = document.querySelector(".loading__img--black"); 9 const loadingttlW = document.querySelector(".loading__img--white"); 10 const mvElement = document.querySelector(".mv"); // mvã¯ã©ã¹ã®åå¨ãç¢ºèª 11 let scrollPosition = 0; 12 13 if (mvElement) { 14 // mvã¯ã©ã¹ãåå¨ããå ´åã®ã¿å®è¡ 15 // ã¹ã¯ãã¼ã«ä½ç½®ãåºå®ãã¦ç¦æ¢ 16 window.scrollTo(0, 0); // mvã¯ã©ã¹ãããå ´åã ããããã«æ»ã 17 const disableScroll = (e) => { 18 e.preventDefault(); // ã¹ã¯ãã¼ã«åä½ãç¡å¹å 19 }; 20 21 // ã¹ã¯ãã¼ã«ã¤ãã³ããç¡å¹å 22 window.addEventListener("touchmove", disableScroll, { passive: false }); 23 window.addEventListener("wheel", disableScroll, { passive: false }); 24 25 // ãã¼ãã£ã³ã°è¡¨ç¤ºã«é¢é£ããã¯ã©ã¹æä½ 26 document.body.classList.add("loaded"); 27 setTimeout(() => { 28 loadingBG.classList.add("loaded"); 29 }, 2000); 30 setTimeout(() => { 31 loadingttlB.classList.add("loaded"); 32 }, 2000); 33 setTimeout(() => { 34 loading.classList.add("loaded"); 35 }, 4000); 36 setTimeout(() => { 37 loadingttlW.classList.add("loaded"); 38 }, 4000); 39 40 // 4ç§å¾ã«ã¹ã¯ãã¼ã«è§£é¤ 41 setTimeout(() => { 42 window.removeEventListener("touchmove", disableScroll); 43 window.removeEventListener("wheel", disableScroll); 44 document.body.style.position = ""; 45 document.body.style.top = ""; 46 window.scrollTo(0, scrollPosition); // ã¹ã¯ãã¼ã«ä½ç½®ããªã»ãã 47 }, 4000); 48 } 49}); 50 51//loading-anniv 52//ãã¼ã¸ã®èªã¿è¾¼ã¿å®äºæã«å¦çãå®è¡ 53window.addEventListener("load", () => { 54 const loadingAnniv = document.querySelector(".loading-anniv"); 55 const loadingAnnivImg = document.querySelector(".loading-anniv__fig"); 56 const AnnivElement = document.querySelector(".anniv"); // annivã¯ã©ã¹ã®åå¨ãç¢ºèª 57 let scrollPosition = 0; 58 59 if (AnnivElement) { 60 // annivã¯ã©ã¹ãåå¨ããå ´åã®ã¿å®è¡ 61 // ã¹ã¯ãã¼ã«ä½ç½®ãåºå®ãã¦ç¦æ¢ 62 window.scrollTo(0, 0); // mvã¯ã©ã¹ãããå ´åã ããããã«æ»ã 63 const disableScroll = (e) => { 64 e.preventDefault(); // ã¹ã¯ãã¼ã«åä½ãç¡å¹å 65 }; 66 67 // ã¹ã¯ãã¼ã«ã¤ãã³ããç¡å¹å 68 window.addEventListener("touchmove", disableScroll, { passive: false }); 69 window.addEventListener("wheel", disableScroll, { passive: false }); 70 71 // ãã¼ãã£ã³ã°è¡¨ç¤ºã«é¢é£ããã¯ã©ã¹æä½ 72 document.body.classList.add("loaded"); 73 // setTimeout(() => { 74 // loadingAnnivBG.classList.add("loaded"); 75 // }, 4000); 76 setTimeout(() => { 77 loadingAnnivImg.classList.add("loaded"); 78 }, 1000); 79 setTimeout(() => { 80 loadingAnniv.classList.add("loaded"); 81 }, 1500); 82 83 // 4ç§å¾ã«ã¹ã¯ãã¼ã«è§£é¤ 84 setTimeout(() => { 85 window.removeEventListener("touchmove", disableScroll); 86 window.removeEventListener("wheel", disableScroll); 87 document.body.style.position = ""; 88 document.body.style.top = ""; 89 window.scrollTo(0, scrollPosition); // ã¹ã¯ãã¼ã«ä½ç½®ããªã»ãã 90 }, 1500); 91 } 92}); 93 94$(function () { 95 //popup表示ã»é表示 96 $(window).on("scroll", function () { 97 const mv = $(".mv"); // ããªã¬ã¼ã¨ãªãè¦ç´ 98 const popupWrapper = $(".popup__wrapper"); // 表示/é表示ããè¦ç´ 99 const popup = $(".popup"); // 表示/é表示ããè¦ç´ 100 const footer = $(".recruit"); 101 102 // ããã¿ã¼ä½ç½®ã®åå¾ï¼è¦ç´ ããªãå ´åã¯ããã©ã«ãå¤ï¼ 103 const footerPosition = footer.length > 0 ? footer.offset().top - 500 : Infinity; 104 const windowScroll = $(window).scrollTop(); 105 let shouldDisplay = false; 106 107 // ããããã¼ã¸ã®`.mv`ãåå¨ããå ´åã®å¦ç 108 if (mv.length > 0) { 109 const mvPosition = mv.offset().top + mv.outerHeight() - 500; // `.mv` ã®ä¸ç«¯ä½ç½® 110 if (windowScroll > mvPosition && windowScroll < footerPosition) { 111 shouldDisplay = true; 112 } 113 } 114 115 // ä¸å±¤ãã¼ã¸ã®`.sub-mv`ãåå¨ããå ´åã®å¦ç 116 // if (subMv.length > 0) { 117 // const subMvPosition = subMv.offset().top + subMv.outerHeight(); // `.sub-mv` ã®ä¸ç«¯ä½ç½® 118 // if (windowScroll > subMvPosition && windowScroll < footerPosition) { 119 // shouldDisplay = true; 120 // } 121 // } 122 123 // 表示/é表示ã®åãæ¿ã 124 // `.popup` ã®åå¨ç¢ºèª 125 if (popup.length > 0) { 126 if (shouldDisplay) { 127 popup.addClass("is-visible"); 128 popupWrapper.addClass("is-visible"); 129 } else { 130 popup.removeClass("is-visible"); 131 popupWrapper.removeClass("is-visible"); 132 } 133 } 134 }); 135 136 $(document).on("click", ".popup__close", function () { 137 $(this).closest(".popup").fadeOut(150); // ãã§ã¼ãã¢ã¦ããã¦é表示㫠138 }); 139 140 //accordion 141 $(".dc_accordion__ttl").click(function () { 142 $(this).children(".dc_accordion__icon").toggleClass("is-active"); 143 $(this).toggleClass("is-active"); 144 $(this).siblings(".dc_accordion__inner").slideToggle(); 145 }); 146}); 147 148//companyæåã¢ãã¡ã¼ã·ã§ã³ 149 150document.addEventListener("DOMContentLoaded", function () { 151 const fontLoopAnimation = document.querySelector("#font-loop-animation"); 152 153 if (fontLoopAnimation) {
154 // #font-loop-animation ãåå¨ããå ´åã®ã¿å¦çãå®è¡ 155 let lastScrollTop = 0; 156 let currentX = 0; 157 const resetThreshold = -$("#font-loop-animation").width() / 2; 158 159 $(window).on("scroll", function () { 160 const scrollTop = $(this).scrollTop(); 161 const delta = scrollTop - lastScrollTop; 162 163 if (Math.abs(delta) > 2) { 164 const direction = delta > 0 ? -1 : 1; 165 currentX += direction * 10; 166 167 // ã«ã¼ãå¦ç 168 if (currentX < resetThreshold) { 169 currentX = resetThreshold; // ã¹ã©ã¤ãã¢ã¦ãããããé²ã 170 } else if (currentX > 0) { 171 currentX = 0; // 0ã«æ»ã 172 } 173 174 gsap.set("#font-loop-animation", { 175 x: currentX, 176 }); 177 178 lastScrollTop = scrollTop; 179 } 180 }); 181 } else { 182 } 183}); 184 185//tabåãæ¿ãï¼ããã¸ã§ã¯ãç´¹ä»ãã¼ã¸ã沿é©ãã¼ã¸ï¼ 186// let tabs = $(".dc_tab-swich"); 187// $(".dc_tab-swich").on("click", function () { 188// $(".active").removeClass("active"); 189// $(this).addClass("active"); 190// const index = tabs.index(this); 191// $(".dc_tab-content").removeClass("show").eq(index).addClass("show"); 192// }); 193 194//tabã«ãªã³ã¯ï¼æ²¿é©ãã¼ã¸ï¼ 195//tabåãæ¿ãï¼ããã¸ã§ã¯ãç´¹ä»ãã¼ã¸,沿é©ãã¼ã¸ï¼ 196//tabåãæ¿ãï¼ããã¸ã§ã¯ãç´¹ä»ãã¼ã¸ï¼ 197let tabs = $(".dc_tab-swich"); 198 199function activateTab(index) { 200 $(".active").removeClass("active"); 201 tabs.eq(index).addClass("active"); 202 $(".dc_tab-content").removeClass("show").eq(index).addClass("show"); 203} 204 205// ã¯ãªãã¯ããã¨ã 206tabs.on("click", function () { 207 const index = tabs.index(this); 208 activateTab(index); 209}); 210 211// ã¿ã1ããã¿ã2ã«é£ã¶ãªã³ã¯ï¼ã¯ãªãã¯æã®ã¿ä¸ã«æ»ãï¼ 212$(".goto-tab2").on("click", function (e) { 213 e.preventDefault(); 214 activateTab(1); // âã¿ã2ã¯0ããæ°ãã¦ã1ã 215 216 // ä¸ã«æ»ãå¦çï¼ããã ãï¼ 217 $("html, body").animate({ scrollTop: 0 }, 400); 218}); 219
220//swiper 221 222// å ã®ã¹ã©ã¤ãæ°ãæ£ç¢ºã«åå¾ï¼loopã«ããè¤è£½ã¹ã©ã¤ããé¤å¤ï¼ 223const slideCount = document.querySelectorAll(".swiper--work .swiper-slide:not(.swiper-slide-duplicate)").length; 224 225// ã¦ã£ã³ãã¦å¹ å¤å® 226const isDesktop = window.innerWidth >= 1024; 227 228// 1024px以ä¸ã§ã¹ã©ã¤ã5æä»¥ä¸ â autoplayã»loopãç¡å¹å 229const shouldAutoplay = !(isDesktop && slideCount <= 11); //ãªã¼ããã¬ã¤ããã¹ã©ã¤ãææ°æå® 230const shouldLoop = !(isDesktop && slideCount <= 11); //ã«ã¼ãããã¹ã©ã¤ãææ°æå® 231 232// Swiper åæå 233const mySwiperwork = new Swiper(".swiper--work", { 234 slidesPerView: 1, 235 spaceBetween: 24, 236 centeredSlides: true, 237 loop: shouldLoop, 238 speed: 1500, 239 autoplay: shouldAutoplay 240 ? { 241 delay: 3000, 242 disableOnInteraction: false, 243 } 244 : false, 245 loopAdditionalSlides: 2, 246 grabCursor: true, 247 248 pagination: { 249 el: ".swiper-pagination", 250 clickable: true, 251 type: "bullets", 252 }, 253 254 navigation: { 255 nextEl: ".swiper-button-next", 256 prevEl: ".swiper-button-prev", 257 }, 258 259 breakpoints: { 260 1024: { 261 slidesPerView: 3, 262 spaceBetween: 27, 263 centeredSlides: false, 264 }, 265 }, 266}); 267 268const mySwipersubwork = new Swiper(".swiper--sub-work", { 269 slidesPerView: 1, // ã³ã³ããå ã«è¡¨ç¤ºãããã¹ã©ã¤ãæ°ï¼CSSã§ãµã¤ãºæå®ããå ´å㯠'auto'ï¼ 270 spaceBetween: 24, // ã¹ã©ã¤ãéã®ä½ç½ï¼pxï¼ 271 //centeredSlides: true, // ã¢ã¯ãã£ããªã¹ã©ã¤ããä¸å¤®ã«é ç½®ãã 272 273 loop: true, // ã«ã¼ãããã 274 275 grabCursor: true, // PCã§ãã¦ã¹ã«ã¼ã½ã«ããæ´ãããã¼ã¯ã«ãã 276 watchSlidesProgress: true, // ã¹ã©ã¤ãã®é²è¡ç¶æ³ãç£è¦ãã 277 278 pagination: { 279 el: ".swiper-pagination", // ãã¼ã¸ãã¼ã·ã§ã³è¦ç´ ã®ã¯ã©ã¹ 280 clickable: true, // ã¯ãªãã¯ã«ããã¹ã©ã¤ãåãæ¿ããæå¹ã«ãã 281 type: "bullets", // 'bullets'ï¼ããã©ã«ãï¼ | 'fraction' | 'progressbar' 282 }, 283 284 navigation: { 285 nextEl: ".swiper-button-next", // ãæ¬¡ã¸ããã¿ã³è¦ç´ ã®ã¯ã©ã¹ 286 prevEl: ".swiper-button-prev", // ãåã¸ããã¿ã³è¦ç´ ã®ã¯ã©ã¹ 287 }, 288 289 scrollbar: { 290 el: ".swiper-scrollbar", // ã¹ã¯ãã¼ã«ãã¼è¦ç´ ã®ã¯ã©ã¹ 291 }, 292 293 //watchSlidesProgress: true, 294}); 295 296const mySwipersubworkS_thumb = new Swiper(".swiper--sub-work-single__thumb", { 297 slidesPerView: "auto", // ã³ã³ããå ã«è¡¨ç¤ºãããã¹ã©ã¤ãæ°ï¼CSSã§ãµã¤ãºæå®ããå ´å㯠'auto'ï¼ 298 //spaceBetween: 8, // ã¹ã©ã¤ãéã®ä½ç½ï¼pxï¼ 299 //centeredSlides: false, // ã¢ã¯ãã£ããªã¹ã©ã¤ããä¸å¤®ã«é ç½®ãã 300 301 loop: true, // ã«ã¼ãããã 302}); 303 304const mySwipersubworkS = new Swiper(".swiper--sub-work-single", { 305 slidesPerView: 1, // ã³ã³ããå ã«è¡¨ç¤ºãããã¹ã©ã¤ãæ°ï¼CSSã§ãµã¤ãºæå®ããå ´å㯠'auto'ï¼ 306 spaceBetween: 0, // ã¹ã©ã¤ãéã®ä½ç½ï¼pxï¼ 307 //centeredSlides: true, // ã¢ã¯ãã£ããªã¹ã©ã¤ããä¸å¤®ã«é ç½®ãã 308 309 thumbs: { 310 swiper: mySwipersubworkS_thumb, 311 }, 312 313 loop: true, // ã«ã¼ãããã 314 315 grabCursor: true, // PCã§ãã¦ã¹ã«ã¼ã½ã«ããæ´ãããã¼ã¯ã«ãã 316 watchSlidesProgress: true, // ã¹ã©ã¤ãã®é²è¡ç¶æ³ãç£è¦ãã 317 318 navigation: { 319 nextEl: ".swiper-button-next", // ãæ¬¡ã¸ããã¿ã³è¦ç´ ã®ã¯ã©ã¹ 320 prevEl: ".swiper-button-prev", // ãåã¸ããã¿ã³è¦ç´ ã®ã¯ã©ã¹ 321 }, 322}); 323 324// ã¹ã©ã¤ãã®ææ°ã1æã®å ´åã®ã¿ç¢å°ãé表示ã«ãã 325if (mySwipersubworkS.slides.length === 1) { 326 document.querySelector(mySwipersubworkS.params.navigation.nextEl).style.display = "none"; 327 document.querySelector(mySwipersubworkS.params.navigation.prevEl).style.display = "none"; 328 document.querySelector(".sub-work-single-thumb__slider").style.display = "none"; 329 document.querySelector(".sub-work-single-thumb__arrows").style.display = "none"; 330} 331 332const mySwiperpickMV = new Swiper(".mv-slider", { 333 slidesPerView: 2, 334 slidesPerGroup: 1, 335 336 loop: true, // ã«ã¼ãããã 337 speed: 1500, // å°ããã£ãã(ããã©ã«ãã¯300) 338 autoplay: { 339 //èªååç 340 delay: 3000, // 3ç§å¾ã«æ¬¡ã®ã¹ã©ã¤ã 341 disableOnInteraction: false, // ã¦ã¼ã¶ã¼æä½å¾ãåçãç¶ãã 342 }, 343 344 direction: "vertical", // ããã©ã«ãã¯æ¨ªæ¹å 345 breakpoints: { 346 840: { 347 // ç»é¢å¹ ã768px以ä¸ã®å ´å 348 direction: "horizontal", // 縦ã¹ã©ã¤ã 349 }, 350 }, 351 352 grabCursor: true, // PCã§ãã¦ã¹ã«ã¼ã½ã«ããæ´ãããã¼ã¯ã«ãã 353 watchSlidesProgress: true, // ã¹ã©ã¤ãã®é²è¡ç¶æ³ãç£è¦ãã 354 355 pagination: { 356 el: ".swiper-pagination", // ãã¼ã¸ãã¼ã·ã§ã³è¦ç´ ã®ã¯ã©ã¹ 357 clickable: true, // ã¯ãªãã¯ã«ããã¹ã©ã¤ãåãæ¿ããæå¹ã«ãã 358 type: "bullets", // 'bullets'ï¼ããã©ã«ãï¼ | 'fraction' | 'progressbar' 359 }, 360 361 navigation: { 362 nextEl: ".swiper-button-next", // ãæ¬¡ã¸ããã¿ã³è¦ç´ ã®ã¯ã©ã¹ 363 prevEl: ".swiper-button-prev", // ãåã¸ããã¿ã³è¦ç´ ã®ã¯ã©ã¹ 364 }, 365 366 on: { 367 init: function () { 368 const autoplay = this.params.autoplay; 369 this.autoplay.stop(); // åæåçã忢 370 setTimeout(() => { 371 this.autoplay.start(); // æå®æéå¾ã«åé 372 }, 2000); // æåã®ã¹ã©ã¤ãé å»¶æé 373 }, 374 }, 375}); 376 377// const mySwiperpickMVTEST = new Swiper(".mv-slider-test", { 378// slidesPerView: 2, 379// slidesPerGroup: 1, 380 381// loop: true, // ã«ã¼ãããã 382// speed: 1500, // å°ããã£ãã(ããã©ã«ãã¯300) 383// autoplay: { 384// // èªååç 385// delay: 3000, // 3ç§å¾ã«æ¬¡ã®ã¹ã©ã¤ã 386// disableOnInteraction: false, // ã¦ã¼ã¶ã¼æä½å¾ãåçãç¶ãã 387// }, 388 389// direction: "vertical", // ããã©ã«ãã¯æ¨ªæ¹å 390// breakpoints: { 391// 560: { 392// // ç»é¢å¹ ã768px以ä¸ã®å ´å 393// direction: "horizontal", // 縦ã¹ã©ã¤ã 394// }, 395// }, 396 397// grabCursor: true, // PCã§ãã¦ã¹ã«ã¼ã½ã«ããæ´ãããã¼ã¯ã«ãã 398// watchSlidesProgress: true, // ã¹ã©ã¤ãã®é²è¡ç¶æ³ãç£è¦ãã 399 400// pagination: { 401// el: ".swiper-pagination", // ãã¼ã¸ãã¼ã·ã§ã³è¦ç´ ã®ã¯ã©ã¹ 402// clickable: true, // ã¯ãªãã¯ã«ããã¹ã©ã¤ãåãæ¿ããæå¹ã«ãã 403// type: "bullets", // 'bullets'ï¼ããã©ã«ãï¼ | 'fraction' | 'progressbar' 404// }, 405 406// navigation: { 407// nextEl: ".swiper-button-next", // ãæ¬¡ã¸ããã¿ã³è¦ç´ ã®ã¯ã©ã¹ 408// prevEl: ".swiper-button-prev", // ãåã¸ããã¿ã³è¦ç´ ã®ã¯ã©ã¹ 409// }, 410 411// on: { 412// init: function () { 413// const autoplay = this.params.autoplay; 414// this.autoplay.stop(); // åæåçã忢 415// setTimeout(() => { 416// this.autoplay.start(); // æå®æéå¾ã«åé 417// }, 2000); // æåã®ã¹ã©ã¤ãé å»¶æé 418// }, 419// }, 420// }); 421 422document.addEventListener("DOMContentLoaded", function () { 423 const selectBox = document.querySelector(".dc_select"); 424 if (selectBox) { 425 // è¦ç´ ãåå¨ãããã¼ã¸ã ãå¦çãå®è¡ 426 selectBox.addEventListener("click", function () { 427 const isActive = this.classList.contains("is-active"); 428 if (isActive) { 429 this.classList.remove("is-active"); 430 } else { 431 this.classList.add("is-active"); 432 } 433 });
434 } 435}); 436 437// ã©ã³ãã ã«é åãã·ã£ããã«ãã颿° 438function shuffle(array) { 439 for (let i = array.length - 1; i > 0; i--) { 440 const j = Math.floor(Math.random() * (i + 1)); 441 [array[i], array[j]] = [array[j], array[i]]; 442 } 443 return array; 444} 445 446// å <figure> å ã® <img> ãã©ã³ãã ã«ä¸¦ã¹æ¿ãã颿° 447function randomizeFigures() { 448 const figures = document.querySelectorAll(".anniv-mv__pic__figgroup"); // ãã¹ã¦ã® <figure> ãåå¾ 449 const figuresLists = document.querySelectorAll(".anniv-mv__pic__list"); // ãã¹ã¦ã® <figure> ãåå¾ 450 451 figures.forEach((figure) => { 452 const images = Array.from(figure.querySelectorAll("img")); // å <figure> å ã® <img> ãåå¾ 453 const shuffledImages = shuffle(images); // åå¾ãã <img> ãã·ã£ããã« 454 figure.innerHTML = ""; // <figure> ã®ä¸èº«ãã¯ãªã¢ 455 shuffledImages.forEach((img) => figure.appendChild(img)); // ã·ã£ããã«ãããé çªã§åé ç½® 456 }); 457 figuresLists.forEach((figureList) => { 458 const listimages = Array.from(figureList.querySelectorAll(".anniv-mv__pic__figgroup")); // å <figure> å ã® <img> ãåå¾ 459 const shuffledImages = shuffle(listimages); // åå¾ãã <img> ãã·ã£ããã« 460 figureList.innerHTML = ""; // <figure> ã®ä¸èº«ãã¯ãªã¢ 461 shuffledImages.forEach((listimage) => figureList.appendChild(listimage)); // ã·ã£ããã«ãããé çªã§åé ç½® 462 }); 463 464 // // ãã¹ã¦ã®ç»åãªã¹ããåå¾ 465 // const picLists = document.querySelectorAll(".anniv-mv__pic__list"); 466 467 // // åãªã¹ãã«å¯¾ãã¦å¦çãå®è¡ 468 // picLists.forEach((originalList) => { 469 // // ãªã¹ããè¤è£½ 470 // const clonedList = originalList.cloneNode(true); 471 472 // // ã¯ãã¼ã³ãããªã¹ããDOMã«è¿½å 473 // originalList.parentNode.appendChild(clonedList); 474 // }); 475 // // ã¯ãã¼ã³ãããªã¹ãã«åæä½ç½®ãè¨å® 476 // clonedList.style.transform = "translateX(100%)"; 477} 478 479// ãã¼ã¸èªã¿è¾¼ã¿æã«å®è¡ 480window.onload = randomizeFigures;
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.