PageSourceSearch

https://www.dadway-onlineshop.com/freepage/couturiere/js/function.js

js dadway-onlineshop.com collected 2026-10-03 19:19:53 UTC 4,037 bytes, 103 lines download raw bytes

1jQuery(function(){
2
3	//クッキー
4	/*jQuery('#couturiere .couturiere-item-list .item-list-box.onlineshop').each(function(index){
5		jQuery(this).find('ul li').each(function(index){
6			var cookieName = jQuery(this).attr('id');
7			if(jQuery.cookie(cookieName) === undefined){
8				jQuery.cookie(cookieName, 0,{path: "/"});
9			}
10		});
11	});*/
12	var cookieName = 'couturiereOrder';
13	if(jQuery.cookie(cookieName) === undefined){
14		jQuery.cookie(cookieName, 0,{path: "/"});
15	}
16
17
18	
19	
20	jQuery('#couturiere .couturiere-item-list .item-list-box .couturiere-item-color li').click(function(){
21		
22		//画像切り替え
23		jQuery(this).parent('ul').prev('.couturiere-item-img').find('img').attr('src','/freepage/couturiere/img/item/'+jQuery(this).attr('id')+'.jpg');
24		jQuery(this).parent('ul').prev('.couturiere-item-img').find('.item-img-caption').text(jQuery(this).find('span').find('img').attr('alt'));
25			
26		//ボタン値切り替え
27		jQuery(this).parent().parent().find('.order-btn').attr('id',jQuery(this).attr('id'));
28		jQuery(this).parent().parent().find('.order-btn').find('span').text(jQuery(this).find('span').find('img').attr('alt'));
29		
30		//カラー名切り替え
31		jQuery(this).parent('ul').prev('.couturiere-item-img').find('.item-img-caption').text(jQuery(this).find('span').find('img').attr('alt'));
32	});
33	
34	//カート画面投入
35	var orderBtnhachidoriQty = 0;
36	var orderBtninsertnameQty = 0;
37	var orderBtnfreeQty = 0;
38	
39	jQuery('#couturiere .couturiere-item-list .item-list-box.onlineshop .order-btn').click(function(){
40		
41		if(jQuery(this).attr('class').match("hachidori")){
42			orderBtnhachidoriQty++;
43			var couturierePath = jQuery('meta[name="wwwroot"]').attr('content')+'/shop/cart/cart.aspx?goods='+jQuery(this).attr('id')+'&qty=1&goods=emb-PRDB00191&qty=1&spec=&child_goods=&agree=同意します';
44		}else if(jQuery(this).attr('class').match("insertname")){
45			orderBtninsertnameQty++;
46			var couturierePath = jQuery('meta[name="wwwroot"]').attr('content')+'/shop/cart/cart.aspx?goods='+jQuery(this).attr('id')+'&qty=1&goods=emb-PRDB00190&qty=1&spec=&child_goods=&agree=同意します';
47		}
48		else if(jQuery(this).attr('class').match("free")){
49			orderBtnfreeQty++;
50			var couturierePath = jQuery('meta[name="wwwroot"]').attr('content')+'/shop/cart/cart.aspx?goods='+jQuery(this).attr('id')+'&qty=1&spec=&child_goods=&agree=同意します';
51		}
52		
53		
54		
55		if(jQuery.cookie(cookieName) == 0){
56			jQuery.ajax({
57			  type: "POST",
58			  url: couturierePath
59			}).done(function(){
60				var scrollPosition;
61				scrollPosition = jQuery(window).scrollTop();
62				jQuery('body').addClass('fixed').css({'top': -scrollPosition});
63				
64				jQuery('<div class="bgfilter"></div>').appendTo('body');
65				jQuery('#form_complete_result_order').show();
66				jQuery('body').addClass('fixed_popcart');
67				jQuery('.result-close,.bgfilter,.btn.result-frame-return').click(function(){
68					jQuery('#form_complete_result_order').hide();
69					jQuery('body').removeClass('fixed_popcart');
70					jQuery('body').removeClass('fixed')
71					window.scrollTo(0,scrollPosition);
72					jQuery('body').css({'top': 0});
73				});
74			}).fail(function(){
75			});
76		}else if(jQuery.cookie(cookieName) == 1){
77			var scrollPosition;
78			scrollPosition = jQuery(window).scrollTop();
79			jQuery('body').addClass('fixed').css({'top': -scrollPosition});
80			
81			jQuery('<div class="bgfilter"></div>').appendTo('body');
82			jQuery('#form_complete_result_ordered').show();
83			jQuery('body').addClass('fixed_popcart');
84			
85			jQuery('.result-close,.bgfilter,.btn.result-frame-return').click(function(){
86				jQuery('#form_complete_result_ordered').hide();
87				jQuery('body').removeClass('fixed_popcart');
88				jQuery('body').removeClass('fixed')
89				window.scrollTo(0,scrollPosition);
90				jQuery('body').css({'top': 0});
91			});
92		}
93		//jQuery.cookie(jQuery(this).attr('id'), 1,{path: "/"});
94		jQuery.cookie(cookieName, 1,{path: "/"});
95	});
96	
97	jQuery('.page-cart .block-cart--goods-list-item-delete').click(function(){
98		jQuery.cookie(cookieName, 0,{path: "/"});
99		
100	});
101	
102	
103});

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.