PageSourceSearch

https://www.harijyu.co.jp/js/common/common.js

js harijyu.co.jp collected 2026-10-02 17:01:58 UTC 6,501 bytes, 254 lines download raw bytes

1/**
2 * Copyright (c) SYNALABO inc. All Rights Reserved.
3 * http://www.synalabo.com/
4 */
5
6jQuery(function($){
7	// formで郵便番号から住所を自動出力する
8	$('#zip').on('change', function(event) {
9		AjaxZip3.zip2addr(this, '', 'pref', 'addr1');
10	});
11
12	// Googleマップを.googlemapに挿入
13	if ($('.googlemap').length){
14		$('.googlemap').append(swp_vars.google_map_tag);
15	}
16
17	// ページ内スクロール
18	$('a.scroll').on('click', function(){
19		$('html,body').animate({scrollTop: $($(this).attr('href')).offset().top }, {'duration': 400, 'easing': 'easeOutCubic', 'queue': false});
20		return false;
21	});
22
23	// 外部リンクに「target="_blank"」付与(クラス「a.noblank以外」)
24	$('a[href^=http]').not('[href*="'+location.hostname+'"]').not('a.noblank').attr('target', '_blank');
25
26	// 画像にリンクした場合、lightboxで開く
27	$('a[href$="jpg"], a[href$="jpeg"], a[href$="JPG"], a[href$="JPEG"], a[href$="png"], a[href$="gif"]').not('.lightbox-group-item').addClass('lightbox');
28
29	// lightbox
30	$('.lightbox').lightGallery({
31		selector: 'this',
32		autoplayFirstVideo: false, // inline使用時にエラーが出るので設定
33		getCaptionFromTitleOrAlt: false, // titleかaltを使ってキャプションを表示するかどうか
34		fullScreen: false,
35		share: false, // shareボタンの表示・非表示
36		download: false // downloadボタンの表示・非表示
37	});
38
39	// lightbox-group
40	$('.lightbox-group').lightGallery({
41		selector: '.lightbox-group-item',
42		showThumbByDefault: true, // デフォルトでサムネイル一覧を表示するかどうか
43		getCaptionFromTitleOrAlt: false, // titleかaltを使ってキャプションを表示するかどうか
44		fullScreen: false,
45		share: false, // shareボタンの表示・非表示
46		download: false // downloadボタンの表示・非表示
47	});
48
49	// slick: 画面幅100%のスライダー
50	$('.slideshow-fullwidth').slick({
51		dots: false,
52		arrows: true,
53		slidesToShow: 3,
54		slidesToScroll: 1,
55		variableWidth: true,
56		centerMode: true,
57		infinite: swp_vars.infinite_loop,
58		speed: swp_vars.speed,
59		autoplay: swp_vars.auto,
60		autoplaySpeed: swp_vars.pause
61	});
62
63	// slick: paginationをサムネイルにする
64	$('.slideshow-thumbpager').slick({
65		dots: true,
66		arrows: false,
67		fade: true,
68		infinite: swp_vars.infinite_loop,
69		speed: swp_vars.speed,
70		autoplay: swp_vars.auto,
71		autoplaySpeed: swp_vars.pause,
72		customPaging : function(slider, i) {
73			var thumb = $(slider.$slides[i]).find('img').attr('src');
74			return '<a><img src="'+thumb+'"></a>';
75		}
76	});
77
78	// slick: ticker mode
79	$('.slideshow-ticker').slick({
80		arrows: false,
81		slidesToShow: 3,
82		slidesToScroll: 1,
83		autoplay: true,
84		autoplaySpeed: 0,
85		speed: 2000,
86		cssEase:'linear'
87	});
88
89	// NEWS: carousel
90	$('.main-news-carousel').slick({
91		arrows: false,
92		slidesToShow: 1,
93		slidesToScroll: 1,
94		autoplay: true,
95
96		// スマホ時オプション
97		responsive: [
98			{
99				breakpoint: 768,
100				settings: {
101					slidesToShow: 1
102				}
103			}
104		]
105	});
106
107	// IMAGE: carousel
108	$('.main-images-carousel').slick({
109		arrows: false,
110		slidesToShow: 2,
111		slidesToScroll: 1,
112		autoplay: true,
113	});
114
115	// GALLERY: carousel
116	$('.main-gallery-carousel').slick({
117		arrows: true,
118		slidesToShow: 8,
119		slidesToScroll: 1,
120		autoplay: true,
121
122		// スマホ時オプション
123		responsive: [
124			{
125				breakpoint: 768,
126				settings: {
127					slidesToShow: 1
128				}
129			}
130		]
131	});
132
133	// slick: carousel
134	$('.slideshow-carousel').slick({
135		arrows: true,
136		slidesToShow: 3,
137		slidesToScroll: 1,
138		autoplay: true,
139
140		// スマホ時オプション
141		responsive: [
142			{
143				breakpoint: 768,
144				settings: {
145					slidesToShow: 1
146				}
147			}
148		]
149	});
150
151	// slick: carousel
152	$('.slideshow-carousel-col2').slick({
153		arrows: true,
154		slidesToShow: 3,
155		slidesToScroll: 1,
156		autoplay: false,
157
158		// スマホ時オプション
159		responsive: [
160			{
161				breakpoint: 768,
162				settings: {
163					slidesToShow: 2
164				}
165			}
166		]
167	});
168
169	// jquery.datetimepicker
170	jQuery.datetimepicker.setLocale('en');
171
172	// 日付 + 時間指定
173
174$('.datetimepicker').datetimepicker({
175  allowTimes: [
176    '11:30', '12:00', '12:30', '13:00','13:30', '14:00','14:30', '15:00','15:30', '16:00','16:30', '17:00','17:30', '8:00','18:30', '19:00','19:30'
177  ],
178  minDate: 0, // 今日の日付とそれ以前の日付を無効にする
179  onGenerate: function(ct) {
180    var today = new Date(),
181        day = today.getDay();
182
183    // 当日以前の日付を無効にする
184    $(this).find('.xdsoft_date.xdsoft_day').each(function(){
185      var date = parseInt($(this).attr('data-date'));
186      if(date < today.getDate() && today.getMonth() == new Date(ct).getMonth()) {
187        $(this).addClass('xdsoft_disabled');
188      }
189    });
190
191    // 火曜日の場合、翌日を無効にする
192    //if (day === 2) { // 2は火曜日を示します
193    //  $(this).find('.xdsoft_date.xdsoft_day_of_week3').addClass('xdsoft_disabled');
194    //}
195  },
196  beforeShowDay: function(date){
197    var day = date.getDay();
198    var today = new Date();
199    var currentWeekWednesday = new Date(today.getFullYear(), today.getMonth(), today.getDate() + (3 - today.getDay() + 7) % 7); // 今日を含む週の水曜日
200    // 当日は選択できない
201    if(date.setHours(0,0,0,0) == new Date().setHours(0,0,0,0)){
202      return [false];
203    }
204    // 当日以前の日付も選択できない
205    if(date < today){
206      return [false];
207    }
208    // 毎週火曜日は選択できない
209    if (day === 2) {
210      return [false];
211    }
212    // 今日を含む週の水曜日は選択できない
213    //if (date.getTime() === currentWeekWednesday.getTime()) {
214    //  return [false];
215    //}
216    // 次の週以降の水曜日は選択可能
217    //if (day === 3 && date > currentWeekWednesday) {
218    //  return [true];
219    //}
220    return [true];
221  }
222});
223
224
225
226
227
228
229	// 日付指定
230	$('.datetimepicker-day').datetimepicker({
231		timepicker: false,
232		format: 'Y/m/d'
233	});
234
235	// jquery.simple.accordion.js
236	$('.accordion').simpleAccordion({
237		useAnimation: true,   // アニメーションの on, off
238		useLinks: false       // リンクを利用するかどうか
239	});
240
241	// simplebar
242	$('.scroll-area').each(function(index,el) {
243		new SimpleBar(el, {
244			autoHide: false,
245		})
246	});
247
248	// EC 詳細、一覧コメント欄で tableがはみ出ないようにする
249	$('.detailpage-list-comment table, .detailpage-main-comment table').each(function() {
250		if ($(this).parent().width() < $(this).width()) {
251			$(this).width('100%');
252		}
253	});
254});

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.