PageSourceSearch

https://www.hc-kohnan.com/js/common.js

js hc-kohnan.com collected 2026-10-01 10:26:57 UTC 4,312 bytes, 191 lines download raw bytes

1$(function(){
2	
3	$('#sp_header_nav .header_list_02 a').on('click',function(){
4		$('#header').removeClass('on');
5	});
6
7	$('a[href^="#"]').on('click',function(){
8		var href= $(this).attr('href'),
9			target = $(href == '#' || href == '' ? 'html' : href),
10			position = target.offset().top,
11			ww = $(window).width(),
12			hh = $('#header').outerHeight() + 20;
13		$('html,body').animate({scrollTop: position - hh},'slow','swing').promise();
14		return false;
15	});
16	
17	$('#nav_open').on('click',function(){
18		$('#header').toggleClass('on');
19		$('#header .language_change').removeClass('on');
20		return false;
21	});
22	
23	$('#header .language_change').on('click',function(){
24		if($(this).hasClass('on')){
25			$(this).removeClass('on');
26		}else{
27			$(this).addClass('on');
28			$('#header').removeClass('on');
29		}
30	});
31	
32	
33	$('#sp_header_nav .header_list i,.footer_block_02 i').on('click',function(){
34		$(this).parent().parent().toggleClass('on');
35		return false;
36	});
37	
38	
39	$('.__lyt_blog_01 ._list_side ._box._monthly > ._list > li > span').on('click',function(){
40		$(this).parent().toggleClass('on');
41		return false;
42	});
43	
44	if($('.__lyt_slide_01_on').length){
45		$('.__lyt_slide_01_on').slick({
46			autoplay: true,
47			autoplaySpeed: 4000,
48			arrows: false,
49			centerMode: true,
50			centerPadding: '0',
51			responsive: [
52				{
53					breakpoint: 750,
54					settings: {
55						slidesToShow: 1,
56						slidesToScroll: 1,
57					}
58				}
59			]
60		});
61	}
62	
63	if($('.__lyt_slide_02_on').length){
64		$('.__lyt_slide_02_on').slick({
65			slidesToShow: 5,
66			slidesToScroll: 5,
67			responsive: [
68				{
69					breakpoint: 750,
70					settings: {
71						slidesToShow: 4,
72						slidesToScroll: 4,
73					}
74				}
75			]
76		});
77	}
78	if($('.__lyt_slide_01_main').length){
79		$('.__lyt_slide_01_main').slick({
80			asNavFor:'.__lyt_slide_02_thum',
81			autoplay: true,
82			autoplaySpeed: 4000,
83			arrows: false,
84			centerMode: true,
85			centerPadding: '0',
86			responsive: [
87				{
88					breakpoint: 750,
89					settings: {
90						slidesToShow: 1,
91						slidesToScroll: 1,
92					}
93				}
94			]
95		});
96	}
97	if($('.__lyt_slide_02_thum').length){
98		$('.__lyt_slide_02_thum').slick({
99			asNavFor:'.__lyt_slide_01_main',
100			autoplay: true,
101			autoplaySpeed: 4000,
102			slidesToShow: 5,
103		    slidesToScroll:1,
104			focusOnSelect: true,
105			centerMode: true,
106			responsive: [
107				{
108					breakpoint: 750,
109					settings: {
110						slidesToShow: 4,
111						slidesToScroll:1,
112						centerMode: false,
113					}
114				}
115			]
116		});
117	}
118	if($('.__lyt_tab_01 ._cont').length){
119		$('.__lyt_tab_01 ._cont').slick({
120			dots: false,
121			speed: 500,
122			fade: true,
123			arrows: false,
124			adaptiveHeight: true,
125			responsive: [
126				{
127					breakpoint: 750,
128					settings: {
129						dots: false,
130					}
131				}
132			]
133		});
134		$('.__lyt_tab_01 ._tab_list li').on('click',function(){
135			var this_val = $('.__lyt_tab_01 ._tab_list li').index($(this)),
136				$this = $(this).parents('.__lyt_tab_01');
137			$('._cont',$this).slick('slickGoTo', this_val);
138			$(this).addClass('_active').siblings().removeClass('_active');
139		});
140		$('.__lyt_tab_01 ._tab_list li').each(function(i){
141			var s_text = $(this).text(),
142				$this = $(this).parents('.__lyt_tab_01');
143			if(i == 0){
144				$this.prepend('<p class="_select"><select><option value="'+i+'">カテゴリを選択する</option></select></p>');
145			}else{
146				$('._select select',$this).append('<option value="'+i+'">'+s_text+'</option>');
147			}
148		});
149	
150		$('.__lyt_tab_01 ._select select').on('change',function(){
151			var this_val = $(this).val(),
152				$this = $(this).parents('.__lyt_tab_01');
153			$('._cont',$this).slick('slickGoTo', this_val);
154		});
155	}
156	
157	$('.__tbl_coloring_01 td').each(function(i){
158		var tdval = $(this).text();
159		if(tdval == '◎'){
160			$(this).addClass('_ctd_01');
161		}else if(tdval == '〇'){
162			$(this).addClass('_ctd_02');
163		}else if(tdval == '△'){
164			$(this).addClass('_ctd_03');
165		}else if(tdval == '-'){
166			$(this).addClass('_ctd_04');
167		}
168	});
169	
170	$('.__lyt_faq_01 ._text_q').on('click',function(){
171		$(this).toggleClass('_on').next().slideToggle(300);
172		return false;
173	});
174
175
176
177});
178$(window).on('load',function(){
179	var ww = $(window).outerWidth(),
180		wh = $(window).outerHeight(),
181		ws = $(window).scrollTop() - 20;
182	
183	if(ws > 105){
184		if(ww < 1081){
185			var hh = $('#header').outerHeight();
186			$(window).scrollTop(ws - hh);
187		}else{
188			$(window).scrollTop(ws -80);
189		}
190	}
191});

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.