PageSourceSearch

https://www.kubara.jp/js/common/common.js?1790319679

js kubara.jp collected 2026-09-26 01:49:57 UTC 26,792 bytes, 790 lines download raw bytes

1$(function(){
2
3	var touch = "click";
4
5	$(".guide_imgbox").on(touch, function() {
6		var SscrollTop = $(window).scrollTop() ;
7		var tctoph = SscrollTop + 100 ;
8		$(this).parent().nextAll('.popimg_box').css('top',tctoph);
9		$(this).parent().nextAll('.popimg_box').fadeIn(300);
10		$('#sub_back').fadeIn(300);
11	});
12	$('#sub_back').on(touch,function(){
13		$(".guide_imgbox").parent().nextAll('.popimg_box').fadeOut(300);
14	});
15
16	/* 6/6以降修正分 ここから */
17	var DF_flg = false;
18	$(document).on(touch, function(e){
19		if(DF_flg==false){
20			if($('#mypage_btn').size() > 0 && !$.contains($('#mypage_btn')[0],e.target)){
21				$('#mypagep_box').fadeOut(300);
22			}
23			DF_flg = true;
24		}else{
25			$('#mypagep_box').fadeOut(300);
26			DF_flg = false;
27		}
28	});
29
30	$('#mypage_btn').on(touch,function(){
31		$('#mypagep_box').fadeIn(300);
32	});
33
34	$('#mypageclose_btn').on(touch,function(){
35		$('#mypagep_box').fadeOut(300);
36		DF_flg = false;
37	});
38
39	$('#mypagep_box').on('click', function(e) {
40		e.stopPropagation();
41	});
42	/* 6/6以降修正分 ここまで */
43
44	//フッタータブ切り替え
45	$(".ftab > li").on(touch, function() {
46		var index = $('.ftab > li').index(this);
47		$('.fcontnts > li').css('display','none');
48		$('.fcontnts > li').eq(index).css('display','block');
49		$('.ftab > li').removeClass('bacti');
50		$(this).addClass('bacti')
51	});
52
53	var timerID;
54	$(window).on('load scroll',function (){
55		var SscrollTop = $(this).scrollTop() ;
56		var stm = 50 ;
57		if (timerID) {
58        	clearTimeout(timerID);
59    	}
60		timerID = setTimeout(function() {
61			if(SscrollTop > stm) {
62				$('#pagetop').css('bottom',15);
63				$('.topnavi_box').css('height',0);
64				$('.topnavi_box').css('border-width',0);
65				$('#header_top').fadeOut(300);
66			}else{
67				$('#pagetop').css('bottom',-100);
68				$('.topnavi_box').css('height',126);
69				$('.topnavi_box').css('border-width',3);
70				$('#header_top').fadeIn(300);
71			}
72		},50);
73	});
74
75	var headerHight = 60; //ヘッダの高さ
76	$('a[href^=#]').click(function(){
77		var speed = 500;
78		var href= jQuery(this).attr("href");
79		if(href == "#" || href == "") { return; }
80		var target = jQuery(href);
81		var position = target.offset().top-headerHight;
82		jQuery('body,html').animate({scrollTop:position}, speed, 'swing');
83		return false;
84	});
85
86	$('.customervoice_box .more_box a:nth-of-type(1)').on(touch,function(){
87		$(this).parent().css('display','none');
88		$(this).parent().next('.more_d_box').slideToggle();
89	});
90
91	/*
92	$('.seasonrecipe_box > dl > dt').on(touch,function(){
93		$(this).css('display','none');
94		$(this).next().slideToggle();
95	});
96	*/
97
98	// $('.favorite_box').on(touch,function(){
99	// 	// var fach = $(this).children().children('.faoff').css('display');
100	// 	// if(fach=='none'){
101	// 	// 	$(this).children().children('.faoff').fadeIn(300);
102	// 	// 	$(this).children().children('.faon').fadeOut(300);
103	// 	// }else{
104	// 	// 	$(this).children().children('.faoff').fadeOut(300);
105	// 	// 	$(this).children().children('.faon').fadeIn(300);
106	// 	// }
107	// });
108
109	$('.win_rank_box02 .cartin_btn').on(touch,function(){
110		var bright = parseInt($(this).parent().parent().parent().parent('.brandcnt_box04').css('right'));
111		var bright2 = bright + 280 ;
112		$('.simo_box').css('left',bright2);
113	});
114
115	$('.cartin_btn').on(touch,function(){
116		// var tchsimo = $(this).nextAll('.simo_box');
117		// var SscrollTop = $(window).scrollTop() ;
118		// var WindowHeight = $(window).height() / 2;
119		// var tchsimoh = $(tchsimo).height();
120		// var tctoph = SscrollTop + WindowHeight - ( tchsimoh / 2 ) ;
121		// $(tchsimo).css('top',tctoph);
122		// $(tchsimo).fadeIn(500);
123		// $('#sub_back').fadeIn(300);
124	});
125
126	$('#sub_back , .simo_close').on(touch,function(){
127		$('.simo_box').fadeOut(300);
128		$('#sub_back').fadeOut(300);
129	});
130
131	$('.itemcon_slideBtn01, .material_box span').on(touch,function(){
132		var SscrollTop = $(window).scrollTop() ;
133		var tctoph = SscrollTop + 100 ;
134		$('#slide_in01').css('top',tctoph);
135		$('#slide_in01').fadeIn(500);
136		$('#sub_back2').fadeIn(300);
137	});
138
139	$('.material_box_a span, .itemcon_slideBtn_a').on(touch,function(){
140		var SscrollTop = $(window).scrollTop() ;
141		var tctoph = SscrollTop + 100 ;
142		$('#slide_in01_a').css('top',tctoph);
143		$('#slide_in01_a').fadeIn(500);
144		$('#sub_back2').fadeIn(300);
145	});
146
147	$('.material_box_b span').on(touch,function(){
148		var SscrollTop = $(window).scrollTop() ;
149		var tctoph = SscrollTop + 100 ;
150		$('#slide_in01_b').css('top',tctoph);
151		$('#slide_in01_b').fadeIn(500);
152		$('#sub_back2').fadeIn(300);
153	});
154
155	$('.material_box_c span').on(touch,function(){
156		var SscrollTop = $(window).scrollTop() ;
157		var tctoph = SscrollTop + 100 ;
158		$('#slide_in01_c').css('top',tctoph);
159		$('#slide_in01_c').fadeIn(500);
160		$('#sub_back2').fadeIn(300);
161	});
162
163	$('.material_box_d span').on(touch,function(){
164		var SscrollTop = $(window).scrollTop() ;
165		var tctoph = SscrollTop + 100 ;
166		$('#slide_in01_d').css('top',tctoph);
167		$('#slide_in01_d').fadeIn(500);
168		$('#sub_back2').fadeIn(300);
169	});
170
171	$('.itemcon_slideBtn02').on(touch,function(){
172		var SscrollTop = $(window).scrollTop() ;
173		var tctoph = SscrollTop + 100 ;
174		$('#slide_in02').css('top',tctoph);
175		$('#slide_in02').fadeIn(500);
176		$('#sub_back2').fadeIn(300);
177	});
178
179	$('.motsu_sa_no_btn').on(touch,function(){
180		var SscrollTop = $(window).scrollTop() ;
181		var tctoph = SscrollTop + 100 ;
182		$('#slide_in03').css('top',tctoph);
183		$('#slide_in03').fadeIn(500);
184		$('#sub_back2').fadeIn(300);
185	});
186
187	$('.motsu_sa_so_btn').on(touch,function(){
188		var SscrollTop = $(window).scrollTop() ;
189		var tctoph = SscrollTop + 100 ;
190		$('#slide_in02').css('top',tctoph);
191		$('#slide_in02').fadeIn(500);
192		$('#sub_back2').fadeIn(300);
193	});
194
195	$('.itemcon_slideBtn03').on(touch,function(){
196		var SscrollTop = $(window).scrollTop() ;
197		var tctoph = SscrollTop + 100 ;
198		$('#slide_in03').css('top',tctoph);
199		$('#slide_in03').fadeIn(500);
200		$('#sub_back2').fadeIn(300);
201	});
202
203	$('.itemcon_slideBtn_abouticon').on(touch,function(){
204		var SscrollTop = $(window).scrollTop() ;
205		var tctoph = SscrollTop + 100 ;
206		$('#slide_in_abouticon').css('top',tctoph);
207		$('#slide_in_abouticon').fadeIn(500);
208		$('#sub_back2').fadeIn(300);
209	});
210
211	//------ KBH_OPE-5223追加分 ------
212	$('.itemcon_set_consideration').on(touch,function(){
213		var SscrollTop = $(window).scrollTop() ;
214		var tctoph = SscrollTop + 100 ;
215		$('#set_consideration').css('top',tctoph);
216		$('#set_consideration').fadeIn(500);
217		$('#sub_back2').fadeIn(300);
218	});
219	//------ KBH_OPE-5223追加分 ------
220
221	$('#sub_back2 , .slide_in > div:nth-of-type(1) span , .slide_in > div:nth-of-type(3) span').on(touch,function(){
222		$('#slide_in01').fadeOut(300);
223		$('#slide_in02').fadeOut(300);
224		$('#slide_in03').fadeOut(300);
225		$('#slide_in01_a').fadeOut(300);
226		$('#slide_in01_b').fadeOut(300);
227		$('#slide_in01_c').fadeOut(300);
228		$('#slide_in01_d').fadeOut(300);
229		$('#slide_in_abouticon').fadeOut(300);
230		$('#set_consideration').fadeOut(300);
231		$('#sub_back2').fadeOut(300);
232	});
233
234	$('.qanda_box > ul > li > p > span:nth-of-type(1)').on(touch,function(){
235		$(this).css('display','none');
236		$(this).nextAll('.nexttext').fadeIn(300);
237	});
238
239	$('.slide_in > div:nth-of-type(2) > dl.slidein_ins_box > dt').on(touch,function(){
240		var Nettd = $(this).next('dd').css('display');
241		console.log(Nettd);
242		$(this).toggleClass('sldoff');
243		$(this).next('dd').slideToggle();
244		if(Nettd=='none'){
245			$(this).parent('dl').css('border-color','#555');
246		}else{
247			$(this).parent('dl').css('border-color','#000');
248		}
249	});
250
251	$('.slide_in > div:nth-of-type(2) > dl.slidein_ins_box > dd > div').on(touch,function(){
252		$(this).parent('dd').parent('dl').children('dt').toggleClass('sldoff');
253		$(this).parent('dd').slideToggle();
254	});
255
256	/*
257	$('#searchl_gift dd').on(touch,function(){
258		var yreDis = $('.yrefine_box').css('display');
259		var selogoDis = $('#allitemsearchlogo_box').css('display');
260		$(this).addClass('searchl_on');
261		$('#searchl_gift dt > span').fadeIn(300);
262		if(yreDis=="none"){
263			$('.yrefine_box').slideToggle();
264		}
265		if(selogoDis=="none"){
266			$('#allitemsearchlogo_box').slideToggle();
267		}
268		$('#sidegiftlogo_box').css('z-index',5);
269	});
270
271	$('#searchl_gift dt > span').on(touch,function(){
272		var seclass = $('#search_brand > dd > ul > li').hasClass('searchl_on');
273		$('#searchl_gift dd').removeClass('searchl_on');
274		$(this).fadeOut(300);
275		$('.yrefine_box').slideToggle();
276		if(!seclass){
277			$('#allitemsearchlogo_box').slideToggle();
278		}
279		$('#sidegiftlogo_box').css('z-index',0);
280	});
281
282	$('#searchl_cate > dd > dl > dt').on(touch,function(){
283		var NextDd = $(this).nextAll('dd') ;
284		var NextDdDis = $(NextDd).css('display');
285		var SearchDa = $(this).hasClass('searchl_on');
286		$(this).addClass('searchl_on');
287		if(!SearchDa){
288			$(this).parent().siblings().slideToggle();
289		}
290		$('#searchl_cate dt > span').fadeIn(300);
291		if(NextDdDis=='none'){
292			$(this).nextAll('dd').slideToggle();
293		}
294	});
295
296	$('#searchl_cate > dd > dl > dd > ul > li').on(touch,function(){
297		var NextLiDis = $(this).hasClass('searchl_on');
298		$(this).addClass('searchl_on');
299		if(!NextLiDis){
300			$(this).siblings().slideToggle();
301		}
302	});
303
304	$('#searchl_cate > dt > span').on(touch,function(){
305		$('#searchl_cate > dd > dl > dt.searchl_on').nextAll('dd').slideToggle();
306		$('#searchl_cate > dd > dl > dd > ul > li.searchl_on').siblings().slideToggle();
307		$('#searchl_cate > dd > dl > dt.searchl_on').parent().siblings().slideToggle();
308		$('#searchl_cate > dd > dl > dt').removeClass('searchl_on');
309		$('#searchl_cate > dd > dl > dd > ul > li').removeClass('searchl_on');
310		$(this).fadeOut(300);
311	});
312
313	$('#searchl_price > dd > ul > li').on(touch,function(){
314		var SearchDda = $(this).hasClass('searchl_on');
315		if(!SearchDda){
316			//$(this).siblings().slideToggle();
317			$('#searchl_price > dd > ul > li').not(this).not('.free_e').slideToggle();
318			$('#searchl_price > dd > div').slideToggle();
319		}
320		$(this).addClass('searchl_on');
321		$('#searchl_price > dt > span').fadeIn(300);
322	});
323
324	$('#searchl_price > dd > div > form > input[type="submit"]').on('click',function(e){
325		e.preventDefault();
326		var Freedis = $('.free_e').css('display');
327		if(Freedis=='none'){
328			$('.free_e').slideToggle();
329		}
330		$('#searchl_price > dd > div').slideToggle();
331		$('.free_e').siblings().slideToggle();
332		$('#searchl_price > dt > span').fadeIn(300);
333		$('.free_e').addClass('searchl_on');
334		var price01 = $('#searchl_price > dd > div > form > input.price01').val();
335		var price01s = price01.replace( /(\d)(?=(\d\d\d)+(?!\d))/g, '$1,');
336		var price02 = $('#searchl_price > dd > div > form > input.price02').val();
337		var price02s = price02.replace( /(\d)(?=(\d\d\d)+(?!\d))/g, '$1,');
338		$('.free_e').html(price01s+'円〜'+price02s+'円<span>(10)</span>');
339	});
340
341
342	$('#searchl_price > dt > span').on(touch,function(){
343		var FreDis = $('.free_e').css('display');
344
345		$(this).fadeOut(300);
346		if(FreDis!='none'){
347			$('.free_e').slideToggle();
348		}
349		$('#searchl_price > dd > ul > li').not('.searchl_on').not('.free_e').slideToggle();
350		$('#searchl_price > dd > div').slideToggle();
351		$('#searchl_price > dd > ul > li').removeClass('searchl_on');
352	});
353
354	$('#search_brand > dd > ul > li').on(touch,function(){
355		var selogoche = $(this).hasClass('searchl_on');
356		var selogoDis = $('#allitemsearchlogo_box').css('display');
357		var sebindex  = ($('#search_brand > dd > ul > li').index(this)) + 1;
358		$('#allitemsearchlogo_box > ul > li:nth-of-type('+sebindex+')').css('z-index',5);
359		$('#allitemsearchlogo_box > ul > li:nth-of-type('+sebindex+')').siblings().css('z-index',0);
360		$('#search_brand > dt > span').fadeIn();
361		$(this).addClass('searchl_on');
362		if(!selogoche){
363			$(this).siblings().slideToggle();
364		}
365		if(selogoDis=="none"){
366			$('#allitemsearchlogo_box').slideToggle();
367		}
368	});
369	*/
370
371	$('#search_brand > dt > span').on(touch,function(){
372		var segiftclass = $('.goodforsearch_box >
372 dl:nth-of-type(1) > dd').hasClass('searchl_on');
373		$(this).fadeOut(300);
374		$('#search_brand > dd > ul > li.searchl_on').siblings().slideToggle();
375		$('#search_brand > dd > ul > li').removeClass('searchl_on');
376		if(!segiftclass){
377			$('#allitemsearchlogo_box').slideToggle();
378		}
379		$('#allitemsearchlogo_box > ul > li').css('z-index',0);
380	});
381
382	var is_redirect_processing  = false;
383
384	$('.refine_box > dl > dd > ul > li').on('click', function(e) {
385		e.preventDefault();
386		if (is_redirect_processing === true) return false;
387		is_redirect_processing = true;
388		location.href = $(this).find('a').attr('href');
389
390		var Conthis2 = $(this);
391		$(this).animate({
392			opacity:0,
393		},{duration:200,complete:function(){$(Conthis2).css('width',0).css('margin',0).css('border','none')}});
394	});
395
396	// $('#recipseachl_box > dl > dd > ul > li').on('click',function(){
397	// 	var reclidis = $(this).hasClass('searchl_on') ;
398	// 	$(this).addClass('searchl_on');
399	// 	if(!reclidis){
400	// 		$(this).siblings().slideToggle();
401	// 	}
402	// 	$(this).parent().parent().prev('dt').children('span').fadeIn(300) ;
403	// });
404	//
405	// $('#recipseachl_box > dl > dt > span').on(touch,function(){
406	// 	var recche = $(this).parent().next('dd').children('ul');
407	// 	$(this).fadeOut(300);
408	// 	$(recche).children('li:not(.searchl_on)').slideToggle();
409	// 	$(recche).children('li').removeClass('searchl_on');
410	// });
411
412	$(window).on('load',function(){
413		var klht = '#recipedetamate_box > ul:nth-of-type(1) > li' ;
414		var klht2 = '#recipedetamate_box > ul:nth-of-type(2) > li' ;
415		var recihei = $(klht).length ;
416		for(var i = 1 ; i <= recihei ; i++ ){
417			var reciheileft = $(klht+':nth-of-type('+i+')').height();
418			var reciheiright = $(klht2+':nth-of-type('+i+')').height();
419			if(reciheileft==reciheiright){
420			}else if(reciheileft > reciheiright){
421				$(klht2+':nth-of-type('+i+') > dl > dt').css('height',reciheileft);
422			}else{
423				$(klht+':nth-of-type('+i+') > dl > dt').css('height',reciheileft);
424			}
425		}
426	});
427
428	// $('#reclogin > ul > li select').change(function(){
429	// 	 var Selval = $(this).val();
430	// 	 if(Selval!=0){
431	// 		$('#reclogin > ul > li.liche').addClass('liche2') ;
432	// 	}else{
433	// 		$('#reclogin > ul > li.liche').removeClass('liche2');
434	// 	}
435	// });
436	//
437	// var Clickflg = true ;
438	// $('#reclogin > ul > li.liche').on(touch,function(){
439	// 	var lichec = $(this).hasClass('liche2');
440	// 	if(lichec){
441	// 		if(Clickflg){
442	// 			Clickflg = false ;
443	// 			var conTHIS = $(this).children('div');
444	// 			$(this).children('p').html('再投票する');
445	// 			$(this).children('div').animate({
446	// 				opacity:1,
447	// 				top:-30,
448	// 				},{duration:400,complete: function(){
449	// 					setTimeout(function(){
450	// 						$(conTHIS).animate({
451	// 							top:0,
452	// 							opacity:0,
453	// 						},{duration:400,complete: function(){Clickflg = true}});
454	// 					},5000);
455	// 				}
456	// 			});
457	// 		}
458	// 	}
459	// });
460
461	$('.coquestionmain_box > dl > dt').on(touch,function(){
462		var Nextcodd = $(this).next('dd') ;
463		var coddPre = Nextcodd.css('display');
464		Nextcodd.slideToggle();
465		if(coddPre=='none'){
466			$(this).children('span').text('-');
467		}else{
468			$(this).children('span').text('+');
469		}
470	});
471
472	$('.coquestionmain_box > dl > dd > dl > dt').on(touch,function(){
473		var NextCoDd = $(this).next('dd');
474		var csoddPre = NextCoDd.css('display');
475		NextCoDd.slideToggle();
476		if(csoddPre=='none'){
477			$(this).children('span').text('-');
478			$(this).parent('dl').css('border-color','#555');
479		}else{
480			$(this).children('span').text('+');
481			$(this).parent('dl').css('border-color','#000');
482		}
483	});
484
485	$('.coquestionmain_box > dl > dd > dl > dd > div').on(touch,function(){
486		$(this).parent().slideToggle();
487		$(this).parent().parent('dl').css('border-color','#000');
488		$(this).parent().parent().children('dt').children('span').text('+');
489	});
490
491	var $interval = 6000; // 切り替わりの間隔(ミリ秒)
492	var $fade_speed = 1000; // フェード処理の早さ(ミリ秒)
493
494	$("#nbs_sleider li").css({"position":"relative","overflow":"hidden"});
495	$("#nbs_sleider li").hide().css({"position":"absolute","top":0,"left":0});
496
497	$("#nbs_sleider li:first").addClass("active").show();
498	var es_flg =true ;
499	setInterval(function(){
500		var $active = $("#nbs_sleider li.active");
501		var $next = $active.next("li").length?$active.next("li"):$("#nbs_sleider li:first");
502		$active.fadeOut($fade_speed).removeClass("active");
503		$next.fadeIn($fade_speed).addClass("active");
504	},$interval);
505
506	/* 1:ID 2:表示個数 3:マージン 4:ナビの表示 5:サムネイルの表示 6:オート */
507
508	mxslider(1,4,20,false,false,false) ;
509	mxslider(2,3,40,false,false,false) ;
510	mxslider(3,3,40,false,false,false) ;
511	mxslider(4,1,0,true,true,true) ;
512	mxslider(5,1,0,false,true,false) ;
513	/* 6/6以降修正分 ここから */
514	mxslider(6,3,20,false,false,false) ;
515	mxslider(7,1,0,false,true,false) ;
516	/*mxslider(8,4,20,false,false,false) ;*/
517	/* 6/6以降修正分 ここまで */
518	mxslider(9,4,20,false,false,false) ;
519	/* サイトトップ今月のおすすめ商品 */
520	mxslider(10,3,40,false,false,false) ;
521	mxslider(11,3,40,false,false,false) ;
522	mxslider(12,1,0,true,true,true,true) ;
523	mxslider(13,1,0,true,true,true,true) ;
524	mxslider(14,5,31,false,false,false,4000) ;
525	mxslider(15,3,20,false,false,false,4000) ;
526	mxslider(16,3,20,false,false,false,4000) ;
527	mxslider(17,3,20,false,false,false,4000) ;
528	mxslider(18,3,20,false,false,false,4000) ;
529	mxslider(19,3,20,false,false,false,4000) ;
530	mxslider(20,3,20,false,false,false,4000) ;
531
532	function mxslider(slidernum,snum,msi,navflg,thumbnailflg,autotime){
533		//表示個数
534		var Snum = snum ;
535		//マージンサイズ
536		var Msize =  msi ;
537		var click_count=0 ;
538		var SlideWidth =0 ;
539		var click_flg = true ;
540		var Slidernow = 0 ;
541		var Ynum = $('#mxslider'+slidernum+' > ul > li').length ;
542		if (Ynum <= snum) {
543			$('#mxslider'+slidernum).nextAll('.mxprev').css('display', 'none');
544			$('#mxslider'+slidernum).nextAll('.mxnext').css('display', 'none');
545		} else {
546			var remainder = Ynum % snum;
547			if (remainder > 0) {
548				Ynum += (snum - remainder);
549			}
550		}
551		var sliderLiW = $('#mxslider'+slidernum+' > ul > li').width();
552		var Nnum = ( Ynum / Snum ) - 1
553		var autimeh = 4000 ;
554
555		if(autotime){
556			var thumindex = $('.thumbnail_box > ul > li').index(this);
557			if(click_flg){
558				setInterval(function(){
559					var MoveW = ( ( sliderLiW * snum ) + ( msi * snum ) ) * click_count ;
560					var click_count2 = click_count + 1 ;
561					if(click_count==Ynum){
562						$('#mxslider'+slidernum).children('ul:nth-of-type(1)').animate({'right':0},500,function(){});
563						if(navflg){
564							$('#navul'+slidernum+' li:nth-of-type(1)').addClass('onc');
565							$('#navul'+slidernum+' li:not(:nth-of-type(1))').removeClass('onc');
566						}
567						if(thumbnailflg){
568							$('#mxslider'+slidernum).nextAll('.thumbnail_box').children('ul').children('li:nth-of-type(1)').addClass('onc');
569							$('#mxslider'+slidernum).nextAll('.thumbnail_box').children('ul').children('li:not(:nth-of-type(1))').removeClass('onc');
570						}
571						click_count=0;
572					}else{
573						$('#mxslider'+slidernum).children('ul:nth-of-type(1)').animate({'right':MoveW},500,function(){});
574						if(navflg){
575
576							$('#navul'+slidernum+' li:nth-of-type('+click_count2+')').addClass('onc');
577							$('#navul'+slidernum+' li:not(:nth-of-type('+click_count2+'))').removeClass('onc');
578						}
579						if(thumbnailflg){
580							$('#mxslider'+slidernum).nextAll('.thumbnail_box').children('ul').children('li:nth-of-type('+click_count2+')').addClass('onc');
581							$('#mxslider'+slidernum).nextAll('.thumbnail_box').children('ul').children('li:not(:nth-of-type('+click_count2+'))').removeClass('onc');
582						}
583
584					}
585					click_count++;
586				},autimeh);
587			}
588		}
589
590		if(thumbnailflg){
591			$('#mxslider'+slidernum).nextAll('.thumbnail_box').children('ul').children('li').on(touch,function(){
592				var thumindex = $('#mxslider'+slidernum).nextAll('.thumbnail_box').children('ul').children('li').index(this);
593				var thumindex2 = thumindex + 1 ;
594
595				if(click_flg){
596
597					click_flg = false ;
598
599					if(navflg){
600						$('#navul'+slidernum+' li:nth-of-type('+thumindex2+')').addClass('onc');
601						$('#navul'+slidernum+' li:not(:nth-of-type('+thumindex2+'))').removeClass('onc');
602					}
603
604					Slidernow = parseInt($('#mxslider'+slidernum+' > ul').css('right'));
605					var MoveW = ( ( sliderLiW * snum ) + ( msi * snum ) ) * thumindex ;
606
607					$('#mxslider'+slidernum).nextAll('.thumbnail_box').children('ul').children('li:nth-of-type('+thumindex2+')').addClass('onc');
608					$('#mxslider'+slidernum).nextAll('.thumbnail_box').children('ul').children('li:not(:nth-of-type('+thumindex2+'))').removeClass('onc');
609					$('#mxslider'+slidernum).children('ul:nth-of-type(1)').animate({'right':MoveW},500,function(){click_flg = true});
610
611					click_count = thumindex ;
612				}
613			});
614		}
615
616		if(navflg){
617			var Ynumo = $('#mxslider'+slidernum+' > ul > li').length ;
618			var Yul = '<ul id="navul'+slidernum+'" class="navul clearfix">' ;
619			for(var i = 0; i < Ynumo; i++){
620				if(i==0){
621					Yul = Yul + '<li class="onc">'+i+'</li>' ;
622				}else{
623					Yul = Yul + '<li>'+i+'</li>' ;
624				}
625			}
626			Yul = Yul + '</ul>' ;
627			$('#mxslider'+slidernum+' > ul').after(Yul);
628
629			$(window).on('load',function(){
630				var maruhaba = 7 * Ynumo ;
631				var margumargin = 5 *  ( Ynumo - 1 );
632				var maruleft = ( maruhaba + margumargin ) / 2 ;
633				$('#navul'+slidernum).css('margin-left',-maruleft);
634			});
635		}
636
637		$('#mxslider'+slidernum).nextAll('.mxnext').on("click",function(){
638
639			if(click_flg){
640				if(navflg){
641					var click_count2 = click_count + 2 ;
642					$('#navul'+slidernum+' li:nth-of-type('+click_count2+')').addClass('onc');
643					$('#navul'+slidernum+' li:not(:nth-of-type('+click_count2+'))').removeClass('onc');
644				}
645				click_flg = false ;
646				Slidernow = parseInt($('#mxslider'+slidernum+' > ul').css('right'));
647				var MoveW = ( sliderLiW * snum ) + ( msi * snum ) + Slidernow ;
648				$('#mxslider'+slidernum).children('ul:nth-of-type(1)').animate({'right':MoveW},500,function(){click_flg = true});
649				click_count++;
650				$('#mxslider'+slidernum).nextAll('.mxprev').removeClass('mxprev_none');
651				if(click_count==Nnum){
652					$('#mxslider'+slidernum).nextAll('.mxnext').css('display','none');
653					$('#mxslider'+slidernum).nextAll('.mxallpre').css('display','block');
654				}
655			}
656		});
657
658		$('#mxslider'+slidernum).nextAll('.mxprev').on("click",function(){
659			if(click_count!=0){
660				if(click_flg){
661					if(navflg){
662						$('#navul'+slidernum+' li:nth-of-type('+click_count+')').addClass('onc');
663						$('#navul'+slidernum+' li:not(:nth-of-type('+click_count+'))').removeClass('onc');
664					}
665					click_flg = false ;
666					Slidernow = parseInt($('#mxslider'+slidernum+' > ul').css('right'));
667					var MoveW = Slidernow - (( sliderLiW * snum ) + ( msi * snum )) ;
668					$('#mxslider'+slidernum).children('ul:nth-of-type(1)').animate({'right':MoveW},500,function(){click_flg = true});
669					click_count--;
670					$('#mxslider'+slidernum).nextAll('.mxnext').css('display','block');
671					$('#mxslider'+slidernum).nextAll('.mxallpre').css('display','none');
672					if(click_count==0){
673						$('#mxslider'+slidernum).nextAll('.mxprev').addClass('mxprev_none');
674						$('#mxslider'+slidernum).nextAll('.mxallpre').css('display','none');
675						$('#mxslider'+slidernum).nextAll('.mxnext').css('display','block');
676					}else{
677						$('#mxslider'+slidernum).nextAll().removeClass('mxprev_none');
678					}
679				}
680			}
681		});
682
683		$('#mxslider'+slidernum).nextAll('.mxallpre').on(touch,function(){
684			if(click_flg){
685				if(navflg){
686					$('#navul'+slidernum+' li:nth-of-type(1)').addClass('onc');
687					$('#navul'+slidernum+' li:not(:nth-of-type(1))').removeClass('onc');
688				}
689				click_flg = false ;
690				click_count = 0 ;
691				$('#mxslider'+slidernum).nextAll('.mxprev').addClass('mxprev_none');
692				$('#mxslider'+slidernum).nextAll('.mxallpre').css('display','none');
693				$('#mxslider'+slidernum).nextAll('.mxnext').css('display','block');
694				$('#mxslider'+slidernum).children('ul').animate({'right':0},500,function(){click_flg = true});
695			}
696		});
697
698	}
699
700	// $(window).on('scroll',function(){
701	// 	var ScrollT = $(this).scrollTop() ;
702	// 	var eh_height = $('.en_header').height();
703	// 	var m_height = $('#header').height();
704	// 	var t_height =   m_height ;
705	// 	var MaxTScroll = eh_height ;
706	// 	if(ScrollT > MaxTScroll){
707	// 		$('#header').addClass('js_float_header');
708	// 		$('.section_ts').css('margin-top',t_height);
709	// 	}else{
710	// 		$('#header').removeClass('js_float_header');
711	// 		$('.section_ts').css('margin-top',0);
712	// 	}
713	// });
714
715	$('.skit_tcon_dcon > dl > dt').on('click',function(){
716		$(this).next().slideToggle();
717		$(this).toggleClass('material_on');
718	});
719
720	$('.skit_tcon_dcon > dl > dd > p').on('click',function(){
721		$(this).parent('dd').slideToggle();
722		$(this).parent('dd').parent('dl').children('dt').toggleClass('material_on');
723	});
724
725	$('.teiki_box_atten > dl > dt, .item_accordion_box > dl > dt').on('click',function(){
726		$(this).next('dd').slideToggle();
727		$(this).toggleClass('plus');
728	});
729
730	// 商品詳細おまとめ割引
731	$('.omatome_cartin_btn').on('click', function(){
732			window.location.href = $('#omatomeselect'+$(this).data('omatomeselect')).val();
733	});
734
735	// 商品詳細レコメンド
736	if( location.pathname.match(/^\/(kayanoya|shobouan|hibina|kubarashouyu|kubara|gift|hokkaidoshokuhinko|izuhonten)\/([^/]+)?\/([^/]+)?\/[0-9]{4,8}(\/|)/) ) {
737		if ( typeof json !== 'undefined' ) {
738			if(json && json.product && json.product.id ) {
739				dataLayer.push({'event': 'recommendSliderLoaded'});
740				$.ajax({
741					url: '//api.logreco1.jp/k_shop/json/recommend/view?item_ids='+json.product.id,
742					type:'GET',
743					dataType: 'jsonp',
744					timeout:10000,
745					success: function(data) {
746					  // alert("ok");
747					},
748					error: function(data) {
749						// alert("ng");
750					},
751					complete : function(data) {
752						var html = '';
753						var count=0;
754						var products = [];
755						if (data.responseJSON.items.length > 0){
756							$("#recommend_area").show();
757							$(data.responseJSON.items).each(function(){
758								html += '<li><a href="'+this['column2']+'" data-logreco-item="'+this['item_id']+'"><ul><li><img src="'+this['column3']+'" alt="'+this['column1']+'"></li><li>'+this['column1']+'</li><li>'+this['column4']+'円</li></ul></a></li>';
759								products[count++] = this['item_id'];
760							});
761							$("#recommend_insert_area").html(html);
762							mxslider(99,3,15,false,false);
763							setLinkDelay('#mxslider99 li a')
764		
765							var productsStr = products.join();
766							dataLayer.push({'productsStr': productsStr});  
767							dataLayer.push({'event': 'showRecommend'});
768						} else {
769							$("#recommend_area").hide();
770						}
771				
772					}
773				});
774			}
775			}
776
777		function setLinkDelay(selector) {
778			$(selector).click(function(e){
779				dataLayer.push({'clickedProductId': $(this).data('logreco-item')});  
780				dataLayer.push({'event': 'clickRecommend'});
781				e.preventDefault();
782				var Link = $(this).attr("href");
783				setTimeout(function() {
784					window.location.href = Link;
785				},1000);
786			});
787		}
788	}
789
790});

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.