PageSourceSearch

https://www.leo-ieirimobile.com/static/original/fanclub_renewal/js/common.js?=20261004143002

js leo-ieirimobile.com collected 2026-10-04 05:30:16 UTC 4,073 bytes, 161 lines download raw bytes

1function anchor() {
2  $('a[href^="#"]').click(function () {
3    var Hash = $(this.hash),
4      $Hash = $(Hash);
5    if ($Hash.length > 0) {
6      var HashOffset = $Hash.offset().top;
7      $('html,body').animate({
8        scrollTop: HashOffset
9      }, 300);
10    }
11    return false;
12  });
13}
14
15function drawer() {
16  $('.drawer__btn').on('click', function () {
17    $('body').toggleClass('drawer-visible');
18  });
19}
20
21// Accordion
22document.addEventListener("DOMContentLoaded",() => {
23	const title = document.querySelectorAll('.list--support dt, .list--attention dt');
24	for (let i = 0; i < title.length; i++){
25		let titleEach = title[i];
26		let content = titleEach.nextElementSibling;
27		titleEach.addEventListener('click', () => {
28			titleEach.classList.toggle('open');
29			content.classList.toggle('open-contents');
30		});
31	}
32});
33
34function loaded() {
35  $(window).load(function () {
36    setTimeout(function () {
37      $('body').addClass('loaded');
38    }, 10);
39    setTimeout(function(){
40			$('body').addClass('all-clear');
41		},3800);
42    setTimeout(function () {
43      document.getElementsByTagName("html")[0].classList.add("loading-delay");
44    }, 3000);
45  });
46}
47
48function scrolling() {
49  $(window).on('scroll', function () {
50    if ($(this).scrollTop() > 300) {
51      $('body').addClass('scrolling');
52    } else {
53      $('body').removeClass('scrolling');
54    }
55  });
56}
57
58function scrollHandler() {
59  const header = document.getElementById("header");
60  let lastScrollPosition = window.scrollY;
61
62  window.addEventListener("scroll", function() {
63    const currentScrollPosition = window.scrollY;
64    const scrollDirection = currentScrollPosition > lastScrollPosition ? "down" : "up";
65
66    if (scrollDirection === "up") {
67      header.classList.add("scrolled-up");
68    } else {
69      header.classList.remove("scrolled-up");
70    }
71
72    // 現在のスクロール位置を保存
73    lastScrollPosition = currentScrollPosition;
74  });
75}
76window.onload = scrollHandler;
77
78(function() {
79  document.addEventListener('DOMContentLoaded', function() {
80    if (document.body.classList.contains('page--home')) {
81      var headings = document.querySelectorAll('.section-tit');
82
83      headings.forEach(function(heading) {
84        var text = heading.textContent;
85
86        var characters = text.split('');
87
88        var newContent = characters.map(function(character) {
89          return '<span>' + character + '</span>';
90        }).join('');
91
92        heading.innerHTML = newContent;
93      });
94    }
95  });
96})();
97
98$(function () {
99  anchor();
100  drawer();
101  scrolling();
102  scroll();
103  if (document.body.classList.contains('page--home')) {
104
105    //loading
106    var referrer = document.referrer;
107    var host = location.host;
108    if (referrer.indexOf(host) == -1) {
109    } else {
110      $(".loading").remove();
111      $("body").addClass("already");
112    }
113
114    // slick
115    $(".updating-latest-contents ul").slick({
116      autoplay: true,
117      centerMode: false,
118      dots: false,
119      arrows: false,
120      slidesToShow: 1,
121      infinite:true,
122      vertical:true,
123    });
124
125    //bnr
126    (function () {
127    var bnrImg = $('.section--banner .list--bnr li').length;
128      var width = $(window).width();
129      if (width < 959) {
130          if(bnrImg > 1) {
131          const mySwiper = new Swiper('.bnr-container', {
132              slidesPerView: 1,
133              spaceBetween: 0,
134              grabCursor: true,
135              pagination: {
136                  el: '.section--banner .swiper-pagination',
137                  clickable:true,
138              },
139          });
140          }else{
141              $('.section--banner').addClass('no-carousel one');
142          }
143      }else{
144        if(bnrImg > 3){
145          var mySwiper = new Swiper ('.bnr-container', {
146            slidesPerView: 3,
147            spaceBetween: 16,
148            navigation: {
149              nextEl: '.section--banner .swiper-button-next',
150              prevEl: '.section--banner .swiper-button-prev',
151            }
152          });
153        }
154        else {
155          $('.section--banner').addClass('no-carousel');
156        }
157    }
158  }());
159  }
160  loaded();
161});

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.