PageSourceSearch

https://pinks-dance.com/js/setting.js?1714023550

js pinks-dance.com collected 2026-10-06 18:13:51 UTC 16,362 bytes, 578 lines download raw bytes

1$(function(){
2  $('a[href^="#"]').click(function(){
3    var speed = 500;
4    var href= $(this).attr("href");
5    var target = $(href == "#" || href == "" ? 'html' : href);
6    var position = target.offset().top;
7  	var dataEl = $(this).data();
8  	if (dataEl && dataEl.class == 'sticky') {
9		var stickyEl = $('#genre .sticky')
10		if (stickyEl) {
11			position -= stickyEl.height();
12		}
13  	}
14    $("html, body").animate({scrollTop:position}, speed, "swing");
15    return false;
16  });
17});
18// Slideshow
19jQuery(document).ready(function ($) {
20	$('.main-visual-slideshow').slick({
21		arrows: true,
22		dots: true,
23		infinite: true,
24		slidesToShow: 1,
25		slidesToScroll: 1,
26		centerMode: true,
27		pauseOnHover: false,
28		variableWidth: true,
29		autoplay: true,
30		autoplaySpeed: 4500,
31		responsive: [
32			{
33				breakpoint: 1041,
34				settings: {
35					centerMode: false,
36					variableWidth: false,
37					autoplay: true,
38					autoplaySpeed: 4500
39				}
40			}
41		]
42	});
43	$('.main-visual-slideshow-02').slick({
44		arrows: true,
45		dots: false,
46		infinite: true,
47		slidesToShow: 1,
48		slidesToScroll: 1,
49		centerMode: true,
50		pauseOnHover: false,
51		variableWidth: true,
52		autoplay: true,
53		autoplaySpeed: 3000,
54		responsive: [
55			{
56				breakpoint: 1041,
57				settings: {
58					variableWidth: false,
59					autoplay: true,
60					autoplaySpeed: 3000
61				}
62			}
63		]
64	});
65	$('.main-visual-slideshow-03').slick({
66		arrows: true,
67		dots: false,
68		infinite: true,
69		slidesToShow: 1,
70		slidesToScroll: 1,
71		centerMode: true,
72		pauseOnHover: false,
73		variableWidth: true,
74		autoplay: true,
75		autoplaySpeed: 3000,
76		responsive: [
77			{
78				breakpoint: 1041,
79				settings: {
80					variableWidth: false,
81					autoplay: true,
82					autoplaySpeed: 3000
83				}
84			}
85		]
86	});
87	$('.voice-list').slick({
88		arrows: true
89	});
90	$('.table-result-slide').slick({
91		vertical: true,
92		verticalSwiping: true
93	});
94	// Trigger
95	$('.time-navi .prev a').on('click', function (e) {
96		e.preventDefault();
97		$('.table-result-slide .slick-prev').trigger('click');
98	});
99	$('.time-navi .next a').on('click', function (e) {
100		e.preventDefault();
101		$('.table-result-slide .slick-next').trigger('click');
102	});
103});
104
105// Match height
106jQuery(document).ready(function ($) {
107	$('html').imagesLoaded(function () {
108		$('.point-list-block .excerpt').matchHeight();
109		// $('.schedule-calendar .calendar-content .items .top').matchHeight();
110		//$('.schedule-calendar .calendar-content .items .bottom').matchHeight();
111		$('.choice-list .items .ttl').matchHeight();
112		$('.choice-list .items .intro-box').matchHeight();
113		$('.list-info-faci li .ttl-faci').matchHeight();
114		$('.steps-block .items .ttl').matchHeight();
115		$('.form-group .custom-radio').matchHeight();
116		$('.point-list-block .info').matchHeight();
117		$('.list-parent-teacher .item').matchHeight();
118		$('.fz-16 tr td').matchHeight();
119	});
120	$(".english-inner .txtTitleEnglish.txtTitleEnglish01 > p").matchHeight();
121	$(".english-inner .txtTitleEnglish.txtTitleEnglish01").matchHeight();
122});
123
124// Smooth scroll - Add class = "scroll" to <a>
125jQuery(function ($) {
126	$('a.smooth-scroll[href^=#]').click(function (e) {
127		e.preventDefault();
128		var headerHeight = $('#main-header').outerHeight();
129		var speed = 400;
130		var href = jQuery(this).attr("href");
131		var target = jQuery(href == "#" || href == "" ? 'html' : href);
132		var position = target.offset().top - headerHeight;
133		$('body,html').animate({scrollTop: position}, speed, 'swing');
134		return false;
135	});
136});
137
138// SP menu
139jQuery(document).ready(function ($) {
140	// Position & sizing
141	// $(window).on('load scroll resize', function () {
142	// 	var headerHeight = $('#main-header').outerHeight();
143	// 	$('main').css({
144	// 		"margin-top": headerHeight
145	// 	});
146	// });
147	// Click action
148	$('.menu-sp-btn').on('click touchstart', function (e) {
149		e.preventDefault();
150		$(this).find('.close-btn').fadeToggle(200);
151		$('.main-menu').toggleClass('is-displayed');
152		$('body').toggleClass('has-overlay');
153	})
154});
155
156// Accordion & show hidden
157jQuery(document).ready(function ($) {
158	$('.accordion-label').on('click', function (e) {
159		e.preventDefault();
160		$(this).toggleClass('is-clicked');
161		$(this).next('.accordion-content').slideToggle(250);
162	})
163});
164
165$(".accordion-content-pop").show();
166
167$(function () {
168	$(".accordion-content_voice").hide();
169	$(".accordion-label-voice").click(function () {
170		$(".accordion-btn-box").prev().slideToggle();
171		$(this).toggleClass("close");
172	});
173});
174
175
176jQuery(document).ready(function ($) {
177	$('.btn-show-hidden').on('click', function (e) {
178		e.preventDefault();
179		if (!$(this).hasClass('is-clicked')) {
180			$('.btn-show-hidden').removeClass('is-clicked');
181			$('.btn-show-hidden').next('.hidden-content').slideUp(0);
182			$(this).addClass('is-clicked');
183			if ($(this).hasClass('pc') || $(this).hasClass('pc-in')) {
184				$(this).next('.hidden-content').slideDown(0);
185			}
186			else if ($(this).hasClass('sp')) {
187				$(this).next('.hidden-content').slideDown(250);
188			}
189		}
190		else {
191			$(this).removeClass('is-clicked');
192			if ($(this).hasClass('pc') || $(this).hasClass('pc-in')) {
193				$(this).next('.hidden-content').slideUp(0);
194			}
195			else if ($(this).hasClass('sp')) {
196				$(this).next('.hidden-content').slideUp(250);
197			}
198		}
199	});
200});
201
202$(function () {
203    $('.form-container input[type="text"], .form-container input[type="tel"], .form-container input[type="email"]').each(function () {
204        if ($(this).val()) {
205            $(this).next('.input-placeholder').fadeOut(200);
206        }
207        else {
208            $(this).next('.input-placeholder').fadeIn(200);
209        }
210    });
211
212})
213// Form
214jQuery(function ($) {
215	$('.form-container input[type="text"], .form-container input[type="tel"], .form-container input[type="email"]').blur(function () {
216		if ($(this).val()) {
217			$(this).next('.input-placeholder').fadeOut(200);
218		}
219		else {
220			$(this).next('.input-placeholder').fadeIn(200);
221		}
222	});
223	$('.form-container input[type="text"], .form-container input[type="tel"], .form-container input[type="email"]').click(function () {
224		$(this).next('.input-placeholder').fadeOut(200);
225	});
226});
227
228// tab
229$(function () {
230	$(".tab-menu li").click(function () {
231		var num = $(".tab-menu li").index(this);
232		$(".tab-content-about").removeClass('active');
233		$(".tab-content-about").eq(num).addClass('active');
234		$(".tab-menu li").removeClass('current');
235		$(this).addClass('current');
236		$("html, body").animate({scrollTop: 0}, 600);
237		return false;
238	});
239});
240
241// Filter function
242var tabSlick = $('.table-result-slide');
243var tabSlickSetting = {
244	infinite: false,
245	autoplay: false,
246	vertical: true,
247	adaptiveHeight: true,
248	verticalSwiping: true
249};
250//init first time tabSLICK
251var timeNavi, timeNaviPrev, timeNaviNext, timeNaviCurrent;
252jQuery(document).ready(function ($) {
253	timeNavi = $('#tab01 .time-navi');
254	timeNaviPrev = timeNavi.find('.prev a');
255	timeNaviNext = timeNavi.find('.next a');
256	timeNaviCurrent = timeNavi.find('.current a');
257	//$('.tab-list .tab').eq(0).find('a').trigger('click');
258    if(location.hash.split('?')[1] == 'disp=date'){
259        $('.tab-list .tab').eq(1).find('a').trigger('click');
260    }else{
261        $('.tab-list .tab').eq(0).find('a').trigger('click');
262    }
263	tabSlick.eq(0).live("init afterChange", function (event, slick) {
264		var currentSlide = slick.currentSlide;
265		switch (currentSlide) {
266			case 0:
267				timeNaviPrev.parent().fadeOut();
268				timeNaviNext.parent().fadeIn();
269				timeNaviCurrent.html('10<br>時<br><span class="ver-rl">〜</span><br>13<br>時');
270				timeNaviNext.html('13<br>時<br>以<br>降');
271				break;
272			case 1:
273				timeNaviPrev.parent().fadeIn();
274				timeNaviNext.parent().fadeIn();
275				timeNaviPrev.html('13<br>時<br>以<br>前');
276				timeNaviCurrent.html('13<br>時<br><span class="ver-rl">〜</span><br>18<br>時');
277				timeNaviNext.html('18<br>時<br>以<br>降');
278				break;
279			case 2:
280				timeNaviPrev.parent().fadeIn();
281				timeNaviNext.parent().fadeOut();
282				timeNaviPrev.html('13<br>時<br><span class="ver-rl">〜</span><br>18<br>時');
283				timeNaviCurrent.html('18<br>時<br>以<br>降');
284
285				break;
286			default:
287				break;
288		}
289	});
290	tabSlick.eq(0).slick('slickGoTo', 1);
291	tabSlick.eq(1).live("init afterChange", function (event, slick) {
292		var currentSlide = slick.currentSlide;
293		$('#tab02 .time-navi .current a').html(currentSlide + 10 + '<br>時');
294		if (currentSlide == 0) {
295			$('#tab02 .time-navi .prev').fadeOut();
296		} else if (currentSlide == slick.slideCount - 1) {
297			$('#tab02 .time-navi .next').fadeOut();
298		} else {
299			$('#tab02 .time-navi .next').fadeIn();
300			$('#tab02 .time-navi .prev').fadeIn();
301		}
302	});
303});
304
305jQuery(".tab-list").each(function () {
306	var $active,
307		$content,
308		$links = jQuery(this).find("a");
309
310    var uri= location.hash.replace(/^#\//, "");
311    uri= uri.replace(/\&plus=.*/, "");
312
313    $active = jQuery(
314        $links.filter('[href*="' +uri  + '"]')[0] || $links[0]
315    );
316	$active.addClass("active");
317    $content = $($active.attr("data-id"));
318    $content.show();
319
320    $links.not($active).each(function () {
321        jQuery($(this).attr("data-id")).hide();
322        $(this).removeClass("active");
323
324    });
325	jQuery(this).on("click", "a", function (e) {
326		$active.removeClass("active");
327		$content.hide();
328		$active = jQuery(this);
329        $content = jQuery($active.attr("data-id"));
330        $active.addClass("active");
331		$content.show();
332		e.preventDefault();
333		if (tabSlick.hasClass('slick-initialized')) {
334			tabSlick.slick('unslick');
335		}
336		tabSlick.slick(tabSlickSetting);
337		tabSlick.resize();
338	});
339});
340
341// Modal
342jQuery(function ($) {
343	var modal_slider = {
344		arrows: true,
345		fade: true
346	};
347	var slider = $(".voice-list");
348	// Call function
349	$('.person-list .items a').on('click', function (e) {
350		e.preventDefault();
351		var dataId = $(this).attr("data-modal");
352		$('.modal-container#'+dataId).fadeIn(200);
353		if (slider.hasClass('slick-initialized')) {
354			slider.slick('unslick');
355		}
356		slider.slick(modal_slider);
357		slider.resize();
358		slideIndex = $(this).parent('.items').index();
359		slider.slick('slickGoTo', slideIndex);
360	});
361
362	$(window).on('load resize', function () {
363		if ($(window).innerWidth() > 767) {
364			var slider_02 = $(".gallery-modal-pc");
365		} else {
366			var slider_02 = $(".gallery-modal-sp");
367		};
368		// Call function
369		$('.gallery-list .items a').on('click', function (e) {
370			e.preventDefault();
371			var dataId = $(this).attr("data-modal");
372			$('.modal-container#'+dataId).fadeIn(200);
373			if (slider_02.hasClass('slick-initialized')) {
374				slider_02.slick('unslick');
375			}
376			slider_02.slick(modal_slider);
377			slider_02.resize();
378			slideIndex = $(this).parent('.items').index();
379			slider_02.slick('slickGoTo', slideIndex);
380		});
381	})
382
383
384	// Close function
385	$('.modal .modal-close').on('click', function (e) {
386		e.preventDefault();
387		$(".modal-container").fadeOut(200);
388	});
389	$(".modal-container").mousedown(function (e) {
390		var clicked = $(e.target);
391		if (clicked.is(".modal") || clicked.parents().is(".modal-container")) {
392			return;
393		} else {
394			$(".modal-container").fadeOut(200);
395		}
396	});
397});
398
399
400jQuery(function ($) {
401	$(window).on('load resize', function () {
402		if ($(window).innerWidth() > 768) {
403			$('.page-flow .video-wrapper video').attr({
404				'width': '590',
405				'height': '490'
406			})
407		}
408		else if ($(window).innerWidth() < 480) {
409			$('.page-flow .video-wrapper video').attr({
410				'width': '100%',
411				'height': '245'
412			})
413		}
414		else {
415			$('.page-flow .video-wrapper video').attr({
416				'width': '295',
417				'height': '245'
418			})
419		}
420	});
421});
422
423jQuery(function ($) {
424	$('.form-container-02 input[type="radio"]').on('click', function () {
425		var previousValue = $(this).attr('previousValue');
426		var name = $(this).attr('name');
427		if (previousValue == 'checked') {
428			$(this).removeAttr('checked');
429			$(this).attr('previousValue', false);
430		}
431		else {
432			$("input[name=" + name + "]:radio").attr('previousValue', false);
433			$(this).attr('previousValue', 'checked');
434		}
435	});
436});
437
438jQuery(function ($) {
439	var url = window.location.pathname.split('/');
440		//urlRegExp = new RegExp(url.replace(/\/$/, '') + "$");
441
442	if (url[1].indexOf(".html") > 0) {
443		var par_check = url[1].replace(".html", "");
444	} else {
445		var par_check = url[1];
446	}
447	$('.main-menu li a').each(function () {
448		var href = $(this).attr("href").split('/');
449		//console.log(href[1]);
450		if (typeof(href[1]) != "undefined" && href[1] != "") {
451			if (href[1].indexOf(".html") > 0) {
452				var par = href[1].replace(".html", "");
453			} else {
454				var par = href[1];
455			}
456		}
457		if (par === par_check) {
458			$(this).parent().addClass('active');
459		}
460		// if (urlRegExp.test(this.href.replace(/\/$/, ''))) {
461		// 	$(this).parent().addClass('active');
462		// }
463	});
464	var ua = navigator.userAgent.toLowerCase();
465	var isAndroid = ua.indexOf("android") > -1; //&& ua.indexOf("mobile");
466	if(isAndroid) {
467		$(".txt-android").css("color", "#2b2b2b");
468	}
469});
470
471
472$( window ).on('load resize',function() {
473	var $imgHeight=$(".scrollbar li img").outerHeight();
474	var $scrollbar=$(".scrollbar li img").outerHeight()*3;
475	if($(window).width() < 768){
476		$(".scrollbar").css("height",$scrollbar + 22 + "px");
477	}
478	if($(window).width() < 450){
479		$(".scrollbar").css("height",$scrollbar + 12 + "px");
480	}
481	if($(window).width()<321){
482		$(".english-inner .ggMap a.linkMap").css("bottom","-40px");
483	}
484});
485
486jQuery(document).ready(function ($) {
487	var wrapObj = $('.wrap-scroll-date');
488	if(wrapObj.length){
489		var wrapOffset = wrapObj.offset().top;
490		var obj = $('.first-view');
491		if(obj.length){
492			var position = obj.eq(0).offset().top - wrapOffset;
493			wrapObj.scrollTop( position )
494		}
495	}
496});
497
498$(function(){
499    function sliderSetting(){
500 
501        var width = $(window).width();
502 
503        if(width <= 750){
504            $('.slick01').not('.slick-initialized').slick({
505                autoplay: true,
506                fade: true,
507                dots: true,
508                arrows: false
509            });
510        } else {
511            $('.slide.slick-initialized').slick('unslick');
512        }
513    }
514 
515    sliderSetting();
516 
517    $(window).resize( function() {
518        sliderSetting();
519    });
520});
521$(function() {
522    $('.slick02').slick({
523    	 autoplay: true,
524    	 dots: false,
525    	 arrows: true
526    	});
527});
528(function () {
529  if ($(".js-modal-video").length) { //クラス名js-modal-videoがあれば以下を実行
530    $(".js-modal-video").modalVideo({
531      channel: "youtube",
532      youtube: {
533        rel: 0, //関連動画の指定
534        autoplay: 0, //自動再生の指定
535        controls: 0, //コントロールさせるかどうかの指定
536      },
537    });
538  }
539})();
540$(function(){
541	$(".accordion .mov-btn").click(function(){
542	    $(this).next(".mov-box").slideToggle();
543	    $(this).toggleClass("open");
544	});
545});
546
547// トップ体験会バナーの切り替え
548// $(document).ready(function() {
549//     $(".timesale").each(function(index, target) {
550//         var startDate = '2021/3/29 16:22'; //1
551//         var endDate = "2021/3/29 16:25";   //2
552//         var nowDate = new Date();
553
554//     if (startDate) {
555//         startDate = new Date(startDate);
556//     } else {
557//         startDate = nowDate;
558//     }
559    
560//     if (endDate) {endDate = new Date(endDate);}
561
562//     //イベント前
563//     if (startDate >= nowDate) { 
564//       $(this).html('<a href="/fes.html"><img src="/img/index/bnr-idol-friday.png" alt="アイドル特別体験会" usemap="#ImageMap"><map name="ImageMap"><area shape="rect" coords="3,1,336,232" href="/schedule/pages_15568.html" alt="" /><area shape="rect" coords="337,1,670,230" href="/schedule/pages_15569.html" alt="" /></map></a>');
565//     }
566
567//     //イベント開催中1-2
568//     if (startDate <= nowDate && (!endDate || nowDate <= endDate)) {
569//       $(this).html('<a href="/fes.html"><img src="/img/index/bnr-idol-friday2.png" alt="アイドル特別体験会" usemap="#ImageMap"><map name="ImageMap"><area shape="rect" coords="3,1,336,232" href="/schedule/pages_15568.html" alt="" /><area shape="rect" coords="337,1,670,230" href="/schedule/pages_15569.html" alt="" /></map></a>');
570//     }
571
572//     //イベント終了後-2
573//     if ((!endDate || nowDate >
573= endDate)) {
574//       $(this).html('<a href="/fes.html"><img src="/img/index/bnr-idol-friday3.png" alt="アイドル特別体験会" usemap="#ImageMap"><map name="ImageMap"><area shape="rect" coords="3,1,336,232" href="/schedule/pages_15568.html" alt="" /><area shape="rect" coords="337,1,670,230" href="/schedule/pages_15569.html" alt="" /></map></a>');
575//     }
576
577//     });
578// });

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.