PageSourceSearch

https://www.greentechno.co.jp/wp/wp-content/themes/greentecho-2025/js/slide.js?ver=1749016119

js greentechno.co.jp collected 2026-10-02 20:19:14 UTC 32,092 bytes, 770 lines download raw bytes

1// スライダー関連をまとめた関数を定義
2function initializeAllSliders() {
3    /**
4     * スライダー関連の機能を管理するファイル
5     * タイプごとに汎用的に使えるSwiperの設定
6     */
7    // ブレイクポイント設定
8    const BREAKPOINT = {
9        MOBILE: 768,
10        TABLET: 1024
11    };
12
13    // スクリーンサイズに応じてbodyクラスを設定
14    function setBodyClass() {
15        const screenWidth = window.innerWidth;
16        const body = document.body;
17        
18        body.classList.remove('is-mobile', 'is-tablet', 'is-desktop');
19        
20        if (screenWidth <= BREAKPOINT.MOBILE) {
21            body.classList.add('is-mobile');
22        } else if (screenWidth <= BREAKPOINT.TABLET) {
23            body.classList.add('is-tablet');
24        } else {
25            body.classList.add('is-desktop');
26        }
27    }
28
29    // 初期化時に一度bodyクラスを設定
30    setBodyClass();
31
32    //===========================================
33    // column3-1 swiper
34    //===========================================
35    (function() {
36        // 設定
37        const DEFAULT_MODE = 'responsive'; // responsive, always, never
38        const swiperInstances = {};
39
40        // 初期化関数
41        function init() {
42            // すべてのcolumn3-1コンテナを検索
43            const columnContainers = document.querySelectorAll('.column3-1');
44            if (columnContainers.length === 0) return;
45
46            columnContainers.forEach((container, index) => {
47                // スワイパーコンテナを取得
48                const swiperContainer = container.querySelector('.contents-column__swiper');
49                if (!swiperContainer) {
50                    console.warn('column3-1: .contents-column__swiper要素が見つかりません');
51                    return;
52                }
53                
54                // インスタンスID生成
55                const section = container.closest('section');
56                const prefix = section && section.id ? section.id : 'column3';
57                const uniqueIndex = section && section.id ? index : Math.floor(Math.random() * 10000);
58                const instanceId = `${prefix}-column3-${uniqueIndex}`;
59                
60                // swiperModeの設定を取得
61                const swiperMode = container.dataset.swiperMode || DEFAULT_MODE;
62                
63                // スクリーン幅に基づいて初期化するかどうかを判断
64                const screenWidth = window.innerWidth;
65                const isMobile = screenWidth <= BREAKPOINT.MOBILE;
66                
67                // 既存のインスタンスがあれば破棄
68                if (swiperInstances[instanceId]) {
69                    destroySwiper(instanceId);
70                }
71                
72                // モードに応じてスワイパーを初期化
73                let shouldInit = false;
74                
75                swiperContainer.classList.remove('swiper-always-active', 'swiper-never-active');
76                
77                // contents-column__items要素を取得(存在する場合)
78                const itemsContainer = container.querySelector('.contents-column__items');
79                
80                switch (swiperMode) {
81                    case 'responsive':
82                        shouldInit = isMobile;
83                        // items要素からクラスを削除
84                        if (itemsContainer) {
85                            itemsContainer.classList.remove('swiper-never');
86                        }
87                        break;
88                    case 'always':
89                        swiperContainer.classList.add('swiper-always-active');
90                        shouldInit = true;
91                        // items要素からクラスを削除
92                        if (itemsContainer) {
93                            itemsContainer.classList.remove('swiper-never');
94                        }
95                        break;
96                    case 'never':
97                        swiperContainer.classList.add('swiper-never-active');
98                        shouldInit = false;
99                        // items要素にクラスを追加
100                        if (itemsContainer) {
101                            itemsContainer.classList.add('swiper-never');
102                        }
103                        break;
104                    default:
105                        shouldInit = isMobile;
106                        // items要素からクラスを削除
107                        if (itemsContainer) {
108                            itemsContainer.classList.remove('swiper-never');
109                        }
110                        break;
111                }
112                
113                if (shouldInit) {
114                    createSwiper(swiperContainer, instanceId);
115                }
116            });
117        }
118        
119        // Swiper作成
120        function createSwiper(container, instanceId) {
121            try {
122                // ページネーションとナビゲーションの要素を確認
123                const pagination = container.querySelector('.contents-column__pagination');
124                const nextButton = container.querySelector('.contents-column__nav-button--next');
125                const prevButton = container.querySelector('.contents-column__nav-button--prev');
126                
127                // Swiperオプション
128                const options = {
129                    slidesPerView: 'auto',
130                    spaceBetween: 15,
131                    centeredSlides: true,
132                    loop: false,
133                    grabCursor: true
134                };
135                
136                // ページネーションとナビゲーションを設定
137                if (pagination) {
138                    options.pagination = {
139                        el: pagination,
140                        clickable: true
141                    };
142                }
143                
144                if (nextButton && prevButton) {
145                    options.navigation = {
146                        nextEl: nextButton,
147                        prevEl: prevButton
148                    };
149                }
150                
151                // Swiperインスタンス作成
152                swiperInstances[instanceId] = new Swiper(container, options);
153                console.log(`column3-1: ${instanceId} のSwiperを初期化しました`);
154            } catch (error) {
155                console.error(`column3-1: ${instanceId} のSwiper初期化に失敗しました`, error);
156                swiperInstances[instanceId] = null;
157            }
158        }
159        
160        // Swiper破棄
161        function destroySwiper(instanceId) {
162            if (!swiperInstances[instanceId]) return;
163            
164            try {
165                const container = swiperInstances[instanceId].el;
166                
167                // Swiper破棄
168                swiperInstances[instanceId].destroy(true, true);
169                
170                // 追加されたスタイルをリセット
171                const wrapper = container.querySelector('.swiper-wrapper');
172                if (wrapper) {
173                    wrapper.style.transform = '';
174                    wrapper.style.width = '';
175                    wrapper.style.display = '';
176                }
177                
178                const slides = container.querySelectorAll('.swiper-slide');
179                slides.forEach(slide => {
180                    slide.style.width = '';
181                    slide.style.marginRight = '';
182                });
183                
184                swiperInstances[instanceId] = null;
185                console.log(`column3-1: ${instanceId} のSwiperを破棄しました`);
186            } catch (error) {
187                console.error(`column3-1: Swiper破棄に失敗しました`, error);
188                swiperInstances[instanceId] = null;
189            }
190        }
191        
192        // 初期化実行
193        init();
194        
195        // リサイズイベント
196        let resizeTimer;
197        window.addEventListener('resize', function() {
198            clearTimeout(resizeTimer);
199            resizeTimer = setTimeout(function() {
200                setBodyClass();
201                init();
202            }, 250);
203        });
204    })();
205
206    //===========================================
207    // slide3-1 swiper
208    //===========================================
209    (function() {
210        // 設定
211        const DEFAULT_MODE = 'always'; // responsive, always, never
212        const swiperInstances = {};
213
214        // 初期化関数
215        function init() {
216            // すべてのslide3-1コンテナを検索
217            const slideContainers = document.querySelectorAll('.slide3-1');
218            if (slideContainers.length === 0) return;
219
220            slideContainers.forEach((container, index) => {
221                // スワイパーコンテナを取得
222                const swiperContainer = container.querySelector('.contents-slide__swiper');
223                if (!swiperContainer) {
224                    console.warn('slide3-1: .contents-slide__swiper要素が見つかりません');
225                    return;
226                }
227                
228                // インスタンスID生成
229                const section = container.closest('section');
230                const prefix = section && section.id ? section.id : 'slide3';
231                const uniqueIndex = section && section.id ? index : Math.floor(Math.random() * 10000);
232                const instanceId = `${prefix}-slide3-${uniqueIndex}`;
233                
234                // 設定値を取得(コンテナから直接)
235                const swiperMode = container.dataset.swiperMode || DEFAULT_MODE;
236                const centeredOption = container.dataset.swiperCentered || 'mobile-only'; // mobile-only, always, never
237                
238                // スクリーン幅に基づいて初期化するかどうかを判断
239                const screenWidth = window.innerWidth;
240                const isMobile = screenWidth <= BREAKPOINT.MOBILE;
241                
242                // 既存のインスタンスがあれば破棄
243                if (swiperInstances[instanceId]) {
244                    destroySwiper(instanceId);
245                }
246                
247                // モードに応じてスワイパーを初期化
248                let shouldInit = false;
249                
250                swiperContainer.classList.remove('swiper-always-active', 'swiper-never-active');
251                
252                switch (swiperMode) {
253                    case 'responsive':
254                        shouldInit = isMobile;
255                        break;
256                    case 'always':
257                        swiperContainer.classList.add('swiper-always-active');
258                        shouldInit = true;
259                        break;
260                    case 'never':
261                        swiperContainer.classList.add('swiper-never-active');
262                        shouldInit = false;
263                        break;
264                    default:
265                        shouldInit = isMobile;
266                        break;
267                }
268                
269                if (shouldInit) {
270                    createSwiper(swiperContainer, instanceId, centeredOption, isMobile);
271                }
272            });
273        }
274        
275        // Swiper作成
276        function createSwiper(container, instanceId, centeredOption, isMobile) {
277            try {
278                // ページネーションとナビゲーションの要素を確認
279                const pagination = container.querySelector('.contents-slide__pagination');
280                const nextButton = container.querySelector('.contents-slide__nav-button--next');
281                const prevButton = container.querySelector('.contents-slide__nav-button--prev');
282                
283                // centeredSlidesの値を決定
284                let centeredSlides = false;
285                switch (centeredOption) {
286                    case 'mobile-only':
287                        centeredSlides = isMobile;
288                        break;
289                    case 'always':
290                        centeredSlides = true;
291                        break;
292                    case 'never':
293                        centeredSlides = false;
294                        break;
295                    default:
296                        centeredSlides = isMobile;
297                        break;
298                }
299                
300                // Swiperオプション
301                const options = {
302                    slidesPerView: 'auto',
303                    spaceBetween: 15,
304                    centeredSlides: centeredSlides,
305                    loop: false,
306                    grabCursor: true
307                };
308                
309                // ページネーションとナビゲーションを設定
310                if (pagination) {
311                    options.pagination = {
312                        el: pagination,
313                        clickable: true
314                    };
315                }
316                
317                if (nextButton && prevButton) {
318                    options.navigation = {
319                        nextEl: nextButton,
320                        prevEl: prevButton
321                    };
322                }
323                
324                // Swiperインスタンス作成
325                swiperInstances[instanceId] = new Swiper(container, options);
326                console.log(`slide3-1: ${instanceId} のSwiperを初期化しました (centered: ${centeredSlides})`);
327            } catch (error) {
328                console.error(`slide3-1: ${instanceId} のSwiper初期化に失敗しました`, error);
329                swiperInstances[instanceId] = null;
330            }
331        }
332        
333        // Swiper破棄
334        function destroySwiper(instanceId) {
335            if (!swiperInstances[instanceId]) return;
336            
337            try {
338                const container = swiperInstances[instanceId].el;
339                
340                // Swiper破棄
341                swiperInstances[instanceId].destroy(true, true);
342                
343                // 追加されたスタイルをリセット
344                const wrapper = container.querySelector('.swiper-wrapper');
345                if (wrapper) {
346                    wrapper.style.transform = '';
347                    wrapper.style.width = '';
348                    wrapper.style.display = '';
349                }
350                
351                const slides = container.querySelectorAll('.swiper-slide');
352                slides.forEach(slide => {
353                    slide.style.width = '';
354                    slide.style.marginRight = '';
355                });
356                
357                swiperInstances[instanceId] = null;
358                console.log(`slide3-1: ${instanceId} のSwiperを破棄しました`);
359            } catch (error) {
360                console.error(`slide3-1: Swiper破棄に失敗しました`, error);
361                swiperInstances[instanceId] = null;
362            }
363        }
364        
365        // 初期化実行
366        init();
367        
368        // リサイズイベント
369        let resizeTimer;
370        window.addEventListener('resize', function() {
371            clearTimeout(resizeTimer);
372            resizeTimer = setTimeout(function() {
373                setBodyClass();
374                init();
375            }, 250);
376        });
377    })();
378
379    //===========================================
380    // slide1-1 swiper (フェード効果)
381    //===========================================
382    (function() {
383        const swiperInstances = {};
384
385        // 初期化関数
386        function init() {
387            // すべてのslide1-1コンテナを検索
388            const slideContainers = document.querySelectorAll('.slide1-1');
389            if (slideContainers.length === 0) return;
390
391            slideContainers.forEach((container, index) => {
392                // スワイパーコンテナを取得
393                const swiperContainer = container.querySelector('.contents-slide__swiper');
394                if (!swiperContainer) {
395                    console.warn('slide1-1: .contents-slide__swiper要素が見つかりません');
396                    return;
397                }
398                
399                // インスタンスID生成
400                const section = container.closest('section');
401                const prefix = section && section.id ? section.id : 'slide1';
402                const uniqueIndex = section && section.id ? index : Math.floor(Math.random() * 10000);
403                const instanceId = `${prefix}-slide1-${uniqueIndex}`;
404                
405                // カスタムオプションの取得(コンテナから)
406                const delay = container.dataset.swiperDelay ? parseInt(container.dataset.swiperDelay) : 3000;
407                const speed = container.dataset.swiperSpeed ? parseInt(container.dataset.swiperSpeed) : 1000;
408                
409                // 既存のインスタンスがあれば破棄
410                if (swiperInstances[instanceId]) {
411                    try {
412                        swiperInstances[instanceId].destroy(true, true);
413                        swiperInstances[instanceId] = null;
414                    } catch (error) {
415                        console.error(`slide1-1: Swiper破棄に失敗しました`, error);
416                    }
417                }
418                
419                try {
420                    // ページネーションとナビゲーションの要素を確認
421                    const pagination = swiperContainer.querySelector('.swiper-pagination');
422                    const nextButton = swiperContainer.querySelector('.swiper-button-next');
423                    const prevButton = swiperContainer.querySelector('.swiper-button-prev');
424                    
425                    // Swiperオプション
426                    const options = {
427                        loop: true,
428                        speed: speed,
429                        autoplay: {
430                            delay: delay,
431                            disableOnInteraction: false,
432                        },
433                        effect: 'fade',
434                        fadeEffect: {
435                            crossFade: true,
436                        }
437                    };
438                    
439                    // ページネーションとナビゲーションを設定
440                    if (pagination) {
441                        options.pagination = {
442                            el: pagination,
443                            clickable: true
444                        };
445                    }
446                    
447                    if (nextButton && prevButton) {
448                        options.navigation = {
449                            nextEl: nextButton,
450                            prevEl: prevButton
451                        };
452                    }
453                    
454                    // Swiperインスタンス作成
455                    swiperInstances[instanceId] = new Swiper(swiperContainer, options);
456                    console.log(`slide1-1: ${instanceId} のSwiperを初期化しました (delay: ${delay}, speed: ${speed})`);
457                } catch (error) {
458                    console.error(`slide1-1: ${instanceId} のSwiper初期化に失敗しました`, error);
459                    swiperInstances[instanceId] = null;
460                }
461            });
462        }
463        
464        // 初期化実行
465        init();
466        
467        // リサイズイベント
468        let resizeTimer;
469        window.addEventListener('resize', function() {
470            clearTimeout(resizeTimer);
471            resizeTimer = setTimeout(function() {
472                init();
473            }, 250);
474        });
475    })();
476
477    //===========================================
478    // slide2-1 swiper (フェード効果)
479    //===========================================
480    (function() {
481        const swiperInstances = {};
482
483        // 初期化関数
484        function init() {
485            // すべてのslide2-1コンテナを検索
486            const slideContainers = document.querySelectorAll('.slide2-1');
487            if (slideContainers.length === 0) return;
488
489            slideContainers.forEach((container, index) => {
490                // スワイパーコンテナを取得
491                const swiperContainer = container.querySelector('.contents-slide__swiper');
492                if (!swiperContainer) {
493                    console.warn('slide2-1: .contents-slide__swiper要素が見つかりません');
494                    return;
495                }
496                
497                // インスタンスID生成
498                const section = container.closest('section');
499                const prefix = section && section.id ? section.id : 'slide1';
500                const uniqueIndex = section && section.id ? index : Math.floor(Math.random() * 10000);
501                const instanceId = `${prefix}-slide1-${uniqueIndex}`;
502                
503                // カスタムオプションの取得(コンテナから)
504                const delay = container.dataset.swiperDelay ? parseInt(container.dataset.swiperDelay) : 3000;
505                const speed = container.dataset.swiperSpeed ? parseInt(container.dataset.swiperSpeed) : 1000;
506                
507                // 既存のインスタンスがあれば破棄
508                if (swiperInstances[instanceId]) {
509                    try {
510                        swiperInstances[instanceId].destroy(true, true);
511                        swiperInstances[instanceId] = null;
512                    } catch (error) {
513                        console.error(`slide2-1: Swiper破棄に失敗しました`, error);
514                    }
515                }
516                
517                try {
518                    // ページネーションとナビゲーションの要素を確認
519                    const pagination = swiperContainer.querySelector('.swiper-pagination');
520                    const nextButton = swiperContainer.querySelector('.swiper-button-next');
521                    const prevButton = swiperContainer.querySelector('.swiper-button-prev');
522                    
523                    // Swiperオプション
524                    const options = {
525                        loop: true,
526                        speed: speed,
527                        slidesPerView: 1.2,
528                        centeredSlides: true,
529                        spaceBetween: 10,
530                        autoplay: {
531                            delay: delay,
532                            disableOnInteraction: false,
533                        },
534                        breakpoints: {
535                            768: {
536								spaceBetween: 30,
537                                slidesPerView: 1.7,
538                            }
539                        }
540                    };
541                    
542                    // ページネーションとナビゲーションを設定
543                    if (pagination) {
544                        options.pagination = {
545                            el: pagination,
546                            clickable: true
547                        };
548                    }
549                    
550                    if (nextButton && prevButton) {
551                        options.navigation = {
552                            nextEl: nextButton,
553                            prevEl: prevButton
554                        };
555                    }
556                    
557                    // Swiperインスタンス作成
558                    swiperInstances[instanceId] = new Swiper(swiperContainer, options);
559                    console.log(`slide2-1: ${instanceId} のSwiperを初期化しました (delay: ${delay}, speed: ${speed})`);
560                } catch (error) {
561                    console.error(`slide2-1: ${instanceId} のSwiper初期化に失敗しました`, error);
562                    swiperInstances[instanceId] = null;
563                }
564            });
565        }
566        
567        // 初期化実行
568        init();
569        
570        // リサイズイベント
571        let resizeTimer;
572        window.addEventListener('resize', function() {
573            clearTimeout(resizeTimer);
574            resizeTimer = setTimeout(function() {
575                init();
576            }, 250);
577        });
578    })();
579
580    //===========================================
581    // slide-infinity1 (無限スライダー)
582    //===========================================
583    (function() {
584        const swiperInstances = {};
585
586        // 初期化関数
587        function init() {
588            // すべてのslide-infinity1 swiperコンテナを検索
589            const infinityContainers = document.querySelectorAll('.slide-infinity1');
590            if (infinityContainers.length === 0) return;
591
592            infinityContainers.forEach((container, index) => {
593                // スワイパーコンテナを取得
594                const swiperContainer = container.querySelector('.swiper');
595                if (!swiperContainer) {
596                    console.warn('slide-infinity1: .swiper要素が見つかりません');
597                    return;
598                }
599                
600                // インスタンスID生成(セクションIDがあればそれを使用、なければユニークIDを生成)
601                const section = container.closest('section');
602                const prefix = section && section.id ? section.id : 'infinity';
603                const uniqueIndex = section && section.id ? index : Math.floor(Math.random() * 10000);
604                const instanceId = `${prefix}-infinity-${uniqueIndex}`;
605                
606                // カスタムオプションの取得(コンテナ要素から)
607                const pcSpeed = container.dataset.swiperSpeed ? parseInt(container.dataset.swiperSpeed) : 6000;
608                const pcSpace = container.dataset.swiperSpace ? parseInt(container.dataset.swiperSpace) : 20;
609                const mobileSpeed = container.dataset.mobileSpeed ? parseInt(container.dataset.mobileSpeed) : 9000;
610                const mobileSpace = container.dataset.mobileSpace ? parseInt(container.dataset.mobileSpace) : 60;
611                
612                // 既存のインスタンスがあれば破棄
613                if (swiperInstances[instanceId]) {
614                    try {
615                        swiperInstances[instanceId].destroy(true, true);
616                        swiperInstances[instanceId] = null;
617                    } catch (error) {
618                        console.error(`slide-infinity1: Swiper破棄に失敗しました`, error);
619                    }
620                }
621                
622                try {
623                    // Swiperインスタンス作成
624                    swiperInstances[instanceId] = new Swiper(swiperContainer, {
625                        loop: true,
626                        loopedSlides: 15,
627                        slidesPerView: 'auto',
628                        spaceBetween: pcSpace,
629                        speed: pcSpeed,
630                        autoplay: {
631                            delay: 0,
632                            disableOnInteraction: false,
633                        },
634                        breakpoints: {
635                            767: {
636                                spaceBetween: mobileSpace,
637                                speed: mobileSpeed,
638                            }
639                        }
640                    });
641                    
642                    // transitionTimingFunctionを設定
643                    const wrapper = swiperContainer.querySelector('.swiper-wrapper');
644                    if (wrapper) {
645                        wrapper.style.transitionTimingFunction = 'linear';
646                    }
647                    
648                    console.log(`slide-infinity1: ${instanceId} のSwiperを初期化しました`);
649                } catch (error) {
650                    console.error(`slide-infinity1: ${instanceId} のSwiper初期化に失敗しました`, error);
651                    swiperInstances[instanceId] = null;
652                }
653            });
654        }
655        
656        // 初期化実行
657        init();
658        
659        // リサイズイベント
660        let resizeTimer;
661        window.addEventListener('resize', function() {
662            clearTimeout(resizeTimer);
663            resizeTimer = setTimeout(function() {
664                init();
665            }, 250);
666        });
667    })();
668
669
670	//===========================================
671	// slide-infinity2 (無限スライダー2)
672	//===========================================
673	(function() {
674		const swiperInstances = {};
675
676		// 初期化関数
677		function init() {
678			// すべてのslide-infinity2コンテナを検索
679			const infinityContainers = document.querySelectorAll('.slide-infinity2');
680			if (infinityContainers.length === 0) return;
681
682			infinityContainers.forEach((container, index) => {
683				// スワイパーコンテナを取得
684				const swiperContainer = container.querySelector('.contents-slider__slider');
685				if (!swiperContainer) {
686					console.warn('slide-infinity2: .contents-slider__slider要素が見つかりません');
687					return;
688				}
689				
690				// インスタンスID生成
691				const section = container.closest('section');
692				const prefix = section && section.id ? section.id : 'infinity2';
693				const uniqueIndex = section && section.id ? index : Math.floor(Math.random() * 10000);
694				const instanceId = `${prefix}-infinity2-${uniqueIndex}`;
695				
696				// カスタムオプションの取得(コンテナ要素から)
697				const pcSpeed = container.dataset.swiperSpeed ? parseInt(container.dataset.swiperSpeed) : 6000;
698				const pcSpace = container.dataset.swiperSpace ? parseInt(container.dataset.swiperSpace) : 20;
699				const mobileSpeed = container.dataset.mobileSpeed ? parseInt(container.dataset.mobileSpeed) : 9000;
700				const mobileSpace = container.dataset.mobileSpace ? parseInt(container.dataset.mobileSpace) : 60;
701				const loopedSlides = container.dataset.loopedSlides ? parseInt(container.dataset.loopedSlides) : 15;
702				
703				// 既存のインスタンスがあれば破棄
704				if (swiperInstances[instanceId]) {
705					try {
706						swiperInstances[instanceId].destroy(true, true);
707						swiperInstances[instanceId] = null;
708					} catch (error) {
709						console.error(`slide-infinity2: Swiper破棄に失敗しました`, error);
710					}
711				}
712				
713				try {
714					// Swiperインスタンス作成
715					swiperInstances[instanceId] = new Swiper(swiperContainer, {
716						loop: true,
717						loopedSlides: loopedSlides,
718						slidesPerView: 'auto',
719						spaceBetween: pcSpace,
720						speed: pcSpeed,
721						autoplay: {
722							delay: 0,
723							disableOnInteraction: false,
724						},
725						breakpoints: {
726							767: {
727								spaceBetween: mobileSpace,
728								speed: mobileSpeed,
729							}
730						}
731					});
732					
733					// transitionTimingFunctionを設定(滑らかな無限ループのため)
734					const wrapper = swiperContainer.querySelector('.swiper-wrapper');
735					if (wrapper) {
736						wrapper.style.transitionTimingFunction = 'linear';
737					}
738					
739					console.log(`slide-infinity2: ${instanceId} のSwiperを初期化しました`);
740				} catch (error) {
741					console.error(`slide-infinity2: ${instanceId} のSwiper初期化に失敗しました`, error);
742					swiperInstances[instanceId] = null;
743				}
744			});
745		}
746		
747		// 初期化実行
748		init();
749		
750		// リサイズイベント
751		let resizeTimer;
752		window.addEventListener('resize', function() {
753			clearTimeout(resizeTimer);
754			resizeTimer = setTimeout(function() {
755				init();
756			}, 250);
757		});
758	})();
759
760
761
762
763    
764    console.log('全てのスライダーが初期化されました');
765}
766
767// グローバル変数としてこの関数を利用可能にしておく
768window.initializeAllSliders = initializeAllSliders;
769
770// ※元々あったDOMContentLoadedのリスナーは削除(ロードアニメーション完了後に呼び出す)

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.