PageSourceSearch

https://www.tracking21.jp/wp/wp-content/themes/tracking21/common/js/top.js

js tracking21.jp collected 2026-10-04 08:28:58 UTC 2,423 bytes, 95 lines download raw bytes

1//PC・SPスライダー
2$(function() {
3  //PC
4  $('.pattern1').slick({
5    slidesToShow: 7,
6    //autoplay: true,
7	autoplay: false,
8	arrows: true,
9    autoplaySpeed: 2500,
10    speed: 800,
11    lazyLoad: "progressive",
12	swipe: false
13  });
14  //SP
15  $('.pattern2').slick({
16    slidesToShow:3,
17    //autoplay: true,
18	autoplay: false,
19	arrows: true,
20    autoplaySpeed: 2500,
21    speed: 800,
22    lazyLoad: "progressive",
23	swipe: true
24  });
25});
26
27
28
29// //PCパネル展開
30// $(".slider div a").each(function (i) {
31// 	i = i+1;
32// 	$('#button_slideToggle_' + i).click(function() {
33// 		if ($('#contents_wrap_' + i).is(':visible')) {
34// 			$(this).removeClass("selected");
35// 			$('#contents_wrap_' + i).fadeOut(400);
36// 		} else {
37// 			$('.slider a.selected').removeClass("selected");
38// 			$(this).addClass("selected");
39// 			$('.contents_wrap').fadeOut(400);
40// 			$('#contents_wrap_' + i).fadeIn(400).css('display','block');
41// 		}
42// 	});
43// });
44
45// // マウスカーソルがメニュー上/メニュー外
46// $('.slider div a, #contents_wrap').hover(function(){
47// 	over_flg = true;
48// 	}, function(){
49// 	over_flg = false;
50// });  
51  
52// // メニュー領域外をクリックしたらメニューを閉じる
53// $('body').click(function() {
54// 	if (over_flg == false) {
55// 		$('.slider a.selected').removeClass("selected");
56// 		$('.contents_wrap').fadeOut(400);
57// 	}
58// });
59
60
61
62
63//PCパネル展開
64$(".slider div a").each(function (i) {
65	// data-id属性がある場合はそれを使用、なければIDから数字を抽出
66	var buttonId = $(this).attr('id');
67	var slideNumber = buttonId.replace('button_slideToggle_', '');
68	
69	$(this).click(function() {
70		if ($('#contents_wrap_' + slideNumber).is(':visible')) {
71			$(this).removeClass("selected");
72			$('#contents_wrap_' + slideNumber).fadeOut(400);
73		} else {
74			$('.slider a.selected').removeClass("selected");
75			$(this).addClass("selected");
76			$('.contents_wrap').fadeOut(400);
77			$('#contents_wrap_' + slideNumber).fadeIn(400).css('display','block');
78		}
79	});
80});
81
82// マウスカーソルがメニュー上/メニュー外
83$('.slider div a, #contents_wrap').hover(function(){
84	over_flg = true;
85	}, function(){
86	over_flg = false;
87});  
88  
89// メニュー領域外をクリックしたらメニューを閉じる
90$('body').click(function() {
91	if (over_flg == false) {
92		$('.slider a.selected').removeClass("selected");
93		$('.contents_wrap').fadeOut(400);
94	}
95});

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.