PageSourceSearch

https://www.leafkyoto.net/leaf/wp-content/themes/mkyoto2021/assets/js/common.js?230928-1551

js leafkyoto.net collected 2026-10-02 03:56:41 UTC 3,303 bytes, 128 lines download raw bytes

1$(window).on('load', function() {
2	$('link[rel="subresource"]').attr('rel', 'stylesheet');
3});
4
5$(function() {
6	//イベントスライダー
7	$('.event_slider').slick({
8		autoplay:true,
9		autoplaySpeed:5000,
10		arrows:false,
11		dotsClass: 'dots',
12		appendDots: $('.dots-block-event'),
13		dots: true,
14		fade: false,
15		infinite: true,
16		focusOnSelect:true,
17		mobileFirst:true,
18		slidesToShow: 1,
19		slidesToScroll: 1,
20		variableWidth: true,
21		centerMode: true,
22		centerPadding: '0',
23	});
24
25	//シングルスライダー
26	$('.single_slider').slick({
27		autoplay:true,
28		autoplaySpeed:5000,
29		arrows:false,
30		dotsClass: 'dots',
31		appendDots: $('.dots-block-event'),
32		dots: true,
33		fade: false,
34		infinite: true,
35		focusOnSelect:true,
36		mobileFirst:true,
37		slidesToShow: 1,
38		slidesToScroll: 1,
39		centerPadding: '0',
40	});
41
42	var slide_sub = $(".slide-navigation").slick({
43		asNavFor: ".single_slider",
44		infinite: true,
45		slidesToShow: 3,
46		slidesToScroll: 1,
47		autoplay: true,
48		autoplaySpeed: 4000,
49		speed: 400,
50		arrows:false,
51		focusOnSelect: true,
52	});
53	var open_window_Width = $(window).width();
54		$(window).resize(function() {
55			var width = $(window).width();
56			if (open_window_Width != width) {
57			slide_sub.slick("setPosition");
58		}
59	});
60
61
62	$(window).load(function(){
63		if(window.innerWidth > 767){
64		    var headerHight = 0; //ヘッダの高さ
65		}else{
66		    var headerHight = $("header").outerHeight(); //ヘッダの高さ
67		}
68
69		var smooth_scroll_target = ".smooth_scroll a[href^=#]"
70			+ ",#contents_list a[href^=#]"
71			+ ",#add a[href^=#]"
72			+ ",.machiya-sp2022 a[href^=#]"
73			+ ",.kawayuka2022 a[href^=#]"
74			+ ",.top_floating a[href^=#]"
75			+ "";
76
77		$(smooth_scroll_target).click(function(){
78			var href= $(this).attr("href");
79			var target = $(href == "#" || href == "" ? 'html' : href);
80			//var headerHight = (window.innerWidth > 767 ? 0 : $("header").outerHeight()); //ヘッダの高さ
81			var headerHight = $("header").outerHeight(); //ヘッダの高さ
82			var position = target.offset().top - headerHight; //ヘッダの高さ分位置をずらす
83
84			$("html, body").animate({scrollTop:position}, 550, "swing");
85			return false;
86		});
87	});
88
89	//スマートフォン用グローバルメニュー開閉処理
90	//$('.switchBtn').on('click', function(){
91	$('.switchBtn,#switchBtnArea .icon_search').on('click', function(){
92		$('.switchBtn').toggleClass('btnClose');
93		$('body').toggleClass('on');
94		$('.sp_menu').toggleClass("on");
95	});
96
97	//SELECTエリア開閉処理
98	$('.select_area .select_title').on('click', function(){
99		$('.select_area .select_title').next("ul").stop().slideUp('fast');
100		if($(this).hasClass("on")){
101			$('.select_area .select_title').removeClass("on");
102			$(this).removeClass("on");
103		}else{
104			$('.select_area .select_title').removeClass("on");
105			$(this).addClass("on");
106		}
107		$(this).next("ul").stop().slideToggle('fast');
108	});
109
110	$(window).on("load scroll resize", function () {
111		var scTop = $(window).scrollTop();
112
113		if(scTop > 0){
114			$("body").addClass("header_slim");
115			$('.top_floating').fadeIn();
116		}else{
117			$("body").removeClass("header_slim");
118			$('.top_floating').fadeOut();
119		}
120
121	});
122
123	$(".language_switcher .current_lang").click(function() {
124		console.log("toggle language switcher");
125		$(".language_switcher ul").slideToggle(100);
126	});
127
128})

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.