PageSourceSearch

https://superformula.net/sf3/js/slider.js?2026-09-24%2001:57:48

js superformula.net collected 2026-09-25 02:57:23 UTC 3,564 bytes, 173 lines download raw bytes

1
2
3$('.slider01').slick({
4  autoplay: true,
5  autoplaySpeed: 5000,
6  dots: true,
7  centerMode: true,
8  centerPadding: "17.7083333%",
9  arrows: false,
10  responsive: [{
11    breakpoint: 769,
12    settings: {
13      slidesToShow: 1,
14      centerMode: false,
15      centerPadding: "0%",
16    }
17  }]
18});
19
20$(function(){
21  const nowDate = new Date()  //今の日時
22	var endRace = -1;
23  $(".race_list_js li").each(function() {
24    var targetTxt = $(this).find(".race_end").text();
25    var targetDate = new Date(targetTxt);
26    var limit02 = targetDate - nowDate;
27    //設定日時 - 今の日時 = 大会が終わっているか判断
28    endRace++;
29    if(limit02 > 0) {
30      return false;
31    }
32  });
33
34  $(".slider02").slick({
35    autoplay: false,
36    autoplaySpeed: 5000,
37    dots: false,
38    infinite: false,
39    initialSlide: endRace, //終わっている大会分スライダーを進める
40  });
41});
42
43$('.slider03').slick({
44  autoplay: false,
45  autoplaySpeed: 5000,
46  slidesToShow: 5,
47  dots: false,
48  infinite: false,
49  //centerMode: true,
50  //centerPadding: "10.9375%",
51  responsive: [{
52    breakpoint: 769,
53    settings: {
54      slidesToShow: 2,
55    }
56  }]
57});
58
59$('.slider05').slick({
60  autoplay: false,
61  autoplaySpeed: 5000,
62  slidesToShow: 6,
63  dots: false,
64  //centerMode: true,
65  //centerPadding: "10.9375%",
66  responsive: [{
67    breakpoint: 769,
68    settings: {
69      slidesToShow: 1,
70      //centerPadding: "23.333333%",
71    }
72  }]
73});
74
75function checkBreakPoint() {
76  w = $(window).width();
77  if (w <= 767) {
78    $('.slider04').not('.slick-initialized').slick({
79      autoplay: false,
80      autoplaySpeed: 5000,
81      dots: false,
82      slidesToShow: 2,
83      infinite: false,
84      //centerMode: true,
85      //centerPadding: "4%",
86    });
87  } else {
88    $('.slider04.slick-initialized').slick('unslick');
89  }
90}
91
92function checkBreakPoint2() {
93  if (w <= 767) {
94    setTimeout(function () {
95      $('.slider03-2').not('.slick-initialized').slick({
96        autoplay: false,
97        autoplaySpeed: 5000,
98        slidesToShow: 5,
99        dots: false,
100        infinite: false,
101        slidesToShow: 2,
102      });
103    }, 1);
104  } else {
105    $('.slider03-2.slick-initialized').slick('unslick');
106  }
107}
108
109
110$('.slider06').slick({
111  autoplay: false,
112  autoplaySpeed: 5000,
113  slidesToShow: 4,
114  dots: false,
115  responsive: [{
116    breakpoint: 769,
117    settings: {
118      slidesToShow: 1,
119    }
120  }]
121});
122
123// ウインドウがリサイズする度にチェック
124$(window).resize(function () {
125  checkBreakPoint();
126});
127$(".tab_btn").click(function () {
128  checkBreakPoint2();
129});
130// 初回チェック
131checkBreakPoint();
132
133$(function(){
134  $(".circuit_slider").slick({
135      autoplay: true,
136      autoplaySpeed: 5000,
137      dots: false,
138      infinite: true
139  });
140
141  $(".gourmet_slider").slick({
142      autoplay: false,
143      autoplaySpeed: 5000,
144      dots: false,
145      infinite: true
146  });
147
148  $(".gourmet_slider_menu").slick({
149      autoplay: true,
150      autoplaySpeed: 5000,
151      dots: false,
152      infinite: true
153  });
154
155  $(".photograph_slider").slick({
156      autoplay: true,
157      autoplaySpeed: 5000,
158      dots: false,
159      infinite: true
160  });
161  $(".photospot_slider").slick({
162      autoplay: true,
163      autoplaySpeed: 5000,
164      dots: false,
165      infinite: true
166  });
167  $(".tour_slider").slick({
168      autoplay: true,
169      autoplaySpeed: 5000,
170      dots: false,
171      infinite: true
172  });
173});

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.