PageSourceSearch

https://reol.jp/static/original/fanclub/js/common.js?=20260925

js reol.jp collected 2026-09-25 02:36:59 UTC 4,466 bytes, 228 lines download raw bytes

1function anchor() {
2	$('a[href^="#"]').click(function(){
3		var Hash = $(this.hash), $Hash = $(Hash);
4		if ($Hash.length > 0) {
5			var HashOffset = $Hash.offset().top;
6			$('html,body').animate({
7				scrollTop: HashOffset
8			}, 300);
9		}
10		return false;
11	});
12}
13
14function drawer() {
15	$('.drawer__btn').on('click',function(){
16		$('body').toggleClass('drawer-visible');
17	});
18}
19
20function loaded(){
21	setTimeout(function(){
22		$('body').addClass('loaded');
23	},200);
24}
25
26
27//banner top slick
28function bnrTopslick() {
29	var sliderImg_bnr_top = $(".section--bnr-top .list--bnr li").length;
30	if (sliderImg_bnr_top > 1) {
31		$(".section--bnr-top .list--bnr").slick({
32			dots: true,
33			arrows: true,
34			centerMode: true,
35			centerPadding: '22%',
36			slidesToShow: 1,
37			infinite:true,
38			autoplay: true,
39			autoplaySpeed: 5000,
40			speed :500,
41			responsive: [{
42				arrows: false,
43        breakpoint: 960,
44        settings: {
45          centerPadding: '16%'
46        }
47        }]
48		});
49	} else {
50		$(".section--bnr-top").addClass("single");
51	}
52}
53
54//disco slick
55/*
56function discoslick() {
57	var sliderdiscoImg = $(".section--disco .list--discography li").length;
58	if (sliderdiscoImg > 1) {
59
60		$(".list--discography").slick({
61			autoplay: false,
62			speed :500,
63			dots: false,
64      arrows: true,
65			centerMode: false,
66			// centerPadding: '25%',
67			infinite: true,
68			slidesToShow: 1,
69			slidesToScroll: 1,
70      responsive: [{
71        breakpoint: 960,
72        settings: {
73          centerPadding: '16%'
74        }
75        }]
76		});
77	} else {
78		$(".section--disco").addClass("single");
79	}
80}
81*/
82
83//video slick
84function videoslick() {
85	var sliderImg = $(".block--video .list--video li").length;
86
87	if (sliderImg > 1) {
88		$(".block--video .list--video").slick({
89			autoplay: true,
90			speed :2000,
91			dots: false,
92      arrows: false,
93			centerMode:true,
94			centerPadding: '20%',
95			slidesToShow: 1,
96			infinite:true,
97      responsive: [{
98        breakpoint: 960,
99        settings: {
100          centerPadding: '16%'
101        }
102        }]
103		});
104	} else {
105		$(".block--video").addClass("single");
106	}
107}
108
109
110
111
112// list accordion
113function ListAccordion(){
114	if ($('body').hasClass('page--info')) {
115		$('.list--information').on('click', 'dt', function () {
116			$(this).parents('li').toggleClass('open');
117			$(this).next().slideToggle().toggleClass('open');
118		});
119
120	}
121}
122
123function fcmenuOpen() {
124	$(function() {
125		$('.toggle_fcmenu').hover(function() {
126			$(this).toggleClass('fcmenu_visible');
127			// $('.nav__list--fc').toggleClass('fcmenu_visible');
128    $(this).find('.nav__list--fc').toggleClass('fcmenu_visible');
129		}, function () {
130		//ここにはマウスを離したときの動作を記述
131		});
132	});
133
134}
135
136$(window).load(function () {
137	//disco swiper
138	const swiper = new Swiper(".swiper", {
139		loop:true,
140		slidesPerView: 1,
141		spaceBetween: '36%',
142		freeModeSticky: true,
143		breakpoints: {
144			// 768px以上の場合
145			768: {
146				spaceBetween: '36%',
147			},
148			// 768px以上の場合
149			960: {
150				spaceBetween: '25%',
151			}
152		},
153		navigation: {
154			nextEl: ".swiper-button-next",
155			prevEl: ".swiper-button-prev"
156		}
157	});
158});
159
160
161$(function(){
162	// loaded();
163	drawer();
164	// scroll();
165	ListAccordion();
166	fcmenuOpen();
167
168	//android
169	if(navigator.userAgent.indexOf('Android') > 0){
170		$("body").addClass("android");
171}
172
173	if ($('body').hasClass('page--home')) {
174
175		//loading
176		var referrer = document.referrer;
177		var host = location.host;
178		// console.log(referrer);
179		// console.log(host);
180		if ( referrer.indexOf(host) != -1){
181		}else{
182			$("#op").addClass('op-visible');
183			$("#op").fadeOut(2000);
184		}
185		bnrTopslick();
186		videoslick();
187
188	}
189
190
191});
192/* ---------------------------
193   fixedMenu
194--------------------------- */
195
196$(window).on('load resize', function(){
197  var w = $(window).width();
198  var x = 600;
199  if (w <= x) {
200  $(window).on('scroll',function(){
201    if ($(this).scrollTop() > 600) {
202      $('.fixedheader').removeClass('hidden');
203    } else {
204      $('.fixedheader').addClass('hidden');
205    }
206  });
207  } else {
208    $(window).on('scroll',function(){
209    if ($(this).scrollTop() > 300) {
210      $('.fixedheader').removeClass('hidden');
211    } else {
212      $('.fixedheader').addClass('hidden');
213    }
214  });
215  }
216});
217
218
219var startPos = 0,winScrollTop = 0;
220$(window).on('scroll',function(){
221    winScrollTop = $(this).scrollTop();
222    if (winScrollTop >= startPos) {
223        $('.fixedheader').addClass('visible');
224    } else {
225        $('.fixedheader').addClass('visible');
226    }
227    startPos = winScrollTop;
228});

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.