PageSourceSearch

https://www.kelijia.tw/kelijia/index.php?action=shopping_cart

html kelijia.tw collected 2026-10-08 11:10:49 UTC 111,380 bytes, 2,899 lines download raw bytes

1<!DOCTYPE html>
2<html xmlns="http://www.w3.org/1999/xhtml" lang="zh-tw">
3<html xmlns:og='http://ogp.me/ns#'>
4<head>
5
6<!---->
7<!-- Google Tag Manager -->
8<script>
vendor: 325 bytes, lines 8-12
8(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
9new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
10j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
11'//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
12})(window,document,'script','dataLayer','
12GTM-K5RPP6GQ
vendor: 3 bytes, line 12
12');
12</script>
12
13<!-- End Google Tag Manager -->
14    
15
16            <title>購物車 - 可立嘉嫩骨</title>
17    
18    <meta property="og:url" content="https://www.kelijia.tw/kelijia/index.php?action=shopping_cart" />
19    <meta property="og:type" content="website" />
20    <meta property="og:title" content="可立嘉嫩骨 - 購物車" />
21         <!-- 頁面 meta 說明 -->
22        <meta property="og:description" content="可立嘉,嫩骨,原味嫩骨,紅燒嫩骨,清燉原味,滷香紅燒,嫩骨料理包,台南,可立嘉嫩骨飯,嫩骨飯,台南小吃,台南美食,台南必吃,料理包,冷凍料理包,加熱,軟骨,豬軟骨,軟骨肉,豬肉,調理包,冷凍宅配,宅配美食,黑貓宅配,安平美食,安平必吃,安平,台南安平,軟骨飯" />
23        <meta property="og:image" content="https://rs.joo.com.tw/website/uploads/website_1174/zh-tw/" /> <!-- 網頁基本資料 FB 分享圖 -->
24    
25    <meta name="keywords" content="可立嘉,嫩骨,嫩骨料理包,清燉原味,滷香紅燒,台南,可立嘉嫩骨飯,嫩骨飯,台南小吃,台南美食,台南必吃,料理包,冷凍料理包,加熱,軟骨,豬軟骨,軟骨肉,豬肉,調理包,冷凍宅配,宅配美食,黑貓宅配,安平美食,安平必吃,安平,台南安平,軟骨飯">
26    <meta name="description" content="購物車 - 可立嘉,嫩骨,原味嫩骨,紅燒嫩骨,清燉原味,滷香紅燒,嫩骨料理包,台南,可立嘉嫩骨飯,嫩骨飯,台南小吃,台南美食,台南必吃,料理包,冷凍料理包,加熱,軟骨,豬軟骨,軟骨肉,豬肉,調理包,冷凍宅配,宅配美食,黑貓宅配,安平美食,安平必吃,安平,台南安平,軟骨飯">
27    <link href="https://rs.joo.com.tw/website/uploads/website_1174/zh-tw/logo.png?0501180015" rel="image_src" type="image/jpeg">
28			<meta name="robots" content="nofollow">
29	
30
31<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
32<meta property="fb:app_id" content="999290072404719" />
33<script type="text/javascript" src="https://www.kelijia.tw/kelijia/javascripts/gohappy/lanrenzhijia.js"></script>
33
34
35<!--<link href="https://www.kelijia.tw/kelijia/css/df_style.css" rel="stylesheet" type="text/css" />-->
36<link href="https://www.kelijia.tw/kelijia/css/membercss.css" rel="stylesheet" type="text/css" />
37<link href="https://www.kelijia.tw/kelijia/css/group.css" rel="stylesheet" type="text/css" />
38<link href="https://www.kelijia.tw/kelijia/css/all_plugin.css" rel="stylesheet" type="text/css" />  <!-- 全部套件統一CSS -->
39<link href="https://www.kelijia.tw/kelijia/javascripts/jquery/fancybox/jquery.fancybox.css" rel="stylesheet" type="text/css" media="screen" />
40<link href="https://www.kelijia.tw/kelijia/javascripts/jquery/css/jquery.jscrollpane.css" rel="stylesheet" type="text/css" media="screen" />
41
42
43<!--  -->
44<script language="javascript" src="https://www.kelijia.tw/kelijia/javascripts/ij-ajax/ij-ajax.js"></script>
vendor: 2 bytes, line 44
44
45<script language="javascript" src="https://www.kelijia.tw/kelijia/javascripts/ij-ajax/_ij_package.js"></script>
vendor: 2 bytes, line 45
45
46<script language="javascript">
47	var IJ = new IJ("https://www.kelijia.tw/kelijia/javascripts/ij-ajax/");
48	/* IJ.loadJs();*/
49	var menu_move_x = 0; /**/
50	var menu_move_y = 0; /**/
51</script>
51
52<!--  -->
53<script src="https://www.kelijia.tw/kelijia/javascripts/jquery/jquery.min.js"></script>
vendor: 2 bytes, line 53
53
54<script type="text/javascript" src="https://www.kelijia.tw/kelijia/javascripts/jquery.flexslider-min.js"></script>
54 <!-- flexslider套件 -->
55<script type="text/javascript" src="https://www.kelijia.tw/kelijia/javascripts/jquery.imagezoom.min.js"></script>
55 <!-- 圖像縮放套件 -->
56<script type="text/javascript" src="https://www.kelijia.tw/kelijia/javascripts/owl.carousel.min-2.0.js"></script>
56 <!-- 貓頭鷹輪播套件 -->
57<script type="text/javascript" src="https://www.kelijia.tw/kelijia/javascripts/slick.min.js"></script>
57 <!-- slick套件 -->
58<script type="text/javascript" src="https://www.kelijia.tw/kelijia/javascripts/jquery.countdown.min.js"></script>
58 <!-- 倒數計時套件 -->
59<script type="text/javascript" src="https://www.kelijia.tw/kelijia/javascripts/imagesloaded.pkgd.js"></script>
59 <!-- imagesloaded套件 -->
60<script type="text/javascript" src="https://www.kelijia.tw/kelijia/javascripts/swiper.min.js" type="text/javascript"></script>
60 <!-- swiper套件 -->
61<script type="text/javascript" src="https://www.kelijia.tw/kelijia/javascripts/snap.min.js"></script>
61 <!-- Snap套件 -->
62<!--<![endif]-->
63<script language="javascript" src="https://www.kelijia.tw/kelijia/javascripts/timer/jquery.timer.js"></script>
vendor: 2 bytes, line 63
63
64<script language="javascript" src="https://www.kelijia.tw/kelijia/javascripts/jquery/fancybox/jquery.fancybox.pack.js"></script>
vendor: 2 bytes, line 64
64
65<script type="text/javascript" src="https://www.kelijia.tw/kelijia/javascripts/jquery.countdown.min.js"></script>
65<!--倒數計時-->
66
67<link href="https://www.kelijia.tw/kelijia/css/images/icons-line.css" rel="stylesheet" type="text/css" /><!-- Web-Font(Line) CSS -->
68<link href="https://www.kelijia.tw/kelijia/css/images/icons-solid.css" rel="stylesheet" type="text/css" /><!-- Web-Font(Solid) CSS -->
69
70<meta name="apple-mobile-web-app-title" content="可立嘉嫩骨" /> <!--桌面標題-->
71<link rel="apple-touch-icon" id="add_table_icon" href="https://rs.joo.com.tw/website/uploads/website_1174/zh-tw/logo_app.png"> <!-- 桌面ICON -->
72<script language="javascript">
73    var logourl = "https://rs.joo.com.tw/website/uploads/website_1174/zh-tw/logo_app.png?v=";
74    var possible = "abcdefghijklmnopqrstuvwxyz0123456789";
75    for (var i=0; i<8; i++) {
76        logourl += possible.charAt(Math.floor(Math.random() * possible.length));
77    }
78    $("#add_table_icon").attr("href", logourl);
79</script>
79
80
81<!--  -->
82<link href="https://www.kelijia.tw/kelijia/css/normal_symbol.min.css?2407042" rel="stylesheet" type="text/css" /><!-- 電腦版公用元件CSS -->
83<link href="https://www.kelijia.tw/kelijia/templates/web_style/joo_style13/color_1/style.css?2407042" rel="stylesheet" type="text/css" />
84<link href="https://www.kelijia.tw/kelijia/templates/web_style/joo_style13/color_1/css/style.css?2407042" rel="stylesheet" type="text/css" media="screen" />
85
86<!--  -->
87<script type="text/javascript" src="https://www.kelijia.tw/kelijia/templates/web_style/joo_style13/color_1/js/jquery.imagezoom.min.js"></script>
vendor: 2 bytes, line 87
87
88<script type="text/javascript" src="https://www.kelijia.tw/kelijia/templates/web_style/joo_style13/color_1/js/function_anyong.js"></script>
88<!--安永版頭-->
89<script type="text/javascript" src="https://www.kelijia.tw/kelijia/templates/web_style/joo_style13/color_1/js/jquery.flexslider-min.js"></script>
89<!--廣告輪播-->
90<script type="text/javascript" src="https://www.kelijia.tw/kelijia/templates/web_style/joo_style13/color_1/js/lanrenzhijia.js"></script>
90<!--天河商品輪播-->
91<link href="https://www.kelijia.tw/kelijia/templates/web_style/joo_style13/color_1/css/flnet_symbol.css" rel="stylesheet" type="text/css" /><!--行銷活動-->
92<!--<link href="https://www.kelijia.tw/kelijia/css/flnet_product.css" rel="stylesheet" type="text/css" />-->
93<link href="https://www.kelijia.tw/kelijia/templates/web_style/joo_style13/color_1/css/member_symbol.css" rel="stylesheet" type="text/css" /><!--會員中心-->
94<link href="https://www.kelijia.tw/kelijia/templates/web_style/joo_style13/color_1/css/setting.css" rel="stylesheet" type="text/css" /><!--購物車-->
95<link href="https://www.kelijia.tw/kelijia/templates/web_style/joo_style13/color_1/item_layout.css" rel="stylesheet" type="text/css" /><!--購物車NEW-->
96<link href="https://www.kelijia.tw/kelijia/css/product_joo2.css" rel="stylesheet" type="text/css" /><!--商品頁樣式2-->
97� 
98<!--  -->
99
100
101
102    
102<script>
103    /*<!---->*/
104        window.is_login = 0;
105    /*<!---->*/
106        window.ajax = {
107            key:1,
108            default_setting:{type:'POST', dataType:'json', crossDomain:true, withCredentials:true, async:true},
109            ajax_trans:function(){if(window.ajax.key == 1){key = 0;return true;}else return false;},
110            ajax_commit:function(){window.ajax.key == 1},
111            ajax_connect:function(){
112                var ajax_this = this;
113                $.ajax({
114                    url:ajax_this.url,
115                    type:ajax_this.type,
116                    async:ajax_this.async,
117                    dataType:ajax_this.dataType,
118                    data:{params:ajax_this.params},
119                    crossDomain: ajax_this.crossDomain,
120                    xhrFields:{
121                        withCredentials: ajax_this.withCredentials
122                    },
123                    beforeSend:function(){
124                        if(!window.ajax.ajax_trans())return false;
125                    },
126                    success:function(r){
127                        try{
128                            ajax_this.ajax_access_response(r);
129                        }catch(e){
130                            alert('驗證有誤,請稍後再試或洽詢客服。');
131                        }
132                    },
133                    error:function(e){
134                        alert("伺服器請求錯誤,請稍後再試。");
135                    },
136                    complete:function(e){
137                        window.ajax.ajax_commit();
138                    }
139                });
140            }
141        }
142    </script>
142
143
144    
144<script src="./javascripts/jquery/jquery-ui.min.js"></script>
144
145    
145<script src="javascripts/imagesloaded.pkgd.js"></script>
145
146    <link rel="stylesheet" href="./css/jquery-ui.css">
147
148    <!----------------- GA & Ewebs Analytics ----------------->
149    
150<!--page view-->
vendor: 65 bytes, lines 150-151
150
151<script async src="https://www.googletagmanager.com/gtag/js?id=
151G-Y59Q14B52W
vendor: 11 bytes, line 151
151"></script>
151<!-- Google gtag (PageView) -->
152<script>
vendor: 134 bytes, lines 153-158
153window.dataLayer = window.dataLayer || [];
154
155function gtag(){dataLayer.push(arguments);}
156
157gtag('js', new Date());
158gtag('config', '
158G-Y59Q14B52W
vendor: 5 bytes, line 158
158');
159</script>
159
160
161
162<!--商品點擊 Function-->
163<!-- Google gtag function (clicks) -->
164<script>
165function ga_onProductClick(event, p_no, p_name, p_url, p_witem_uid)
166{
167	
168
169	gtag('event', 'select_item', {
170		"items": [{
171			"item_id": p_no,
172			"item_name": p_name,
173			"item_list_name": "~^(www.)?kelijia.tw%2Fkelijia%2Findex.php%3Faction%3Dshopping_cart"
174		}],
175		"event_callback": function() {
176			document.location = p_url;
177		}
178	});
179}
180</script>
180
181
182
183<!--加入購物車 Function-->
184
185
186
187
188
189
190                <!----------------- Facebook Pixel Code ----------------->
191        <!---->
192        
193<!--設定 pixel_id-->
194
195
196<!--FB Pixel 基底程式碼-->
197		
197<script>
198			var metaData = {
199				web_uid: '1174',
200				event_source_url: 'https://www.kelijia.tw/kelijia/index.php?action=shopping_cart',
201				client_ip_address: '104.234.32.32',
202				client_user_agent: 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; PageSourceSearchBot/1.0; +https://pagesourcesearch.com/bot) Chrome/128.0.0.0 Safari/537.36'
203			};
204			if ('') metaData.fbp = '';
205			if ('' && ''.trim().length > 0) metaData.fbc = '';
206			if ({}) metaData.member = {};
vendor: 423 bytes, lines 206-214
206
207
208			!function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?
209			n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;
210			n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0;
211			t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window,
212			document,'script','https://connect.facebook.net/en_US/fbevents.js');
213
214			fbq('init', '
2141356264159446759
vendor: 14 bytes, lines 214-216
214', {});
215
216			
216const eventID = new Date().getTime().toString() + Math.random().toString(36).substring(2);
217
218			fbq('track', 'PageView', {}, {eventID: eventID});
219
220			metaData.event_name = 'PageView';
221			metaData.event_id = eventID;
222			$.ajax({
223				url: 'https://www.kelijia.tw/website/api/api.meta_conversions_api.php',
224				type: 'POST',
225				dataType: 'json',
226				data: {
227					metaData: metaData,
228					nti_JUFBJUI1JUFDJUIwJUJFJUFFJTgwJTgxJUI5JUJDJUFBJUFEJUFEJUIyJUIwJTdFJUJCJUIyJUFDJUJEJUIxJUI5JUIzJUFBJUI3eQ: 'MTc5MTQ1Nzg0ODhYMXpOdnNERGFEeElHUEN4aVpGdXJqYlN1c1BiQ2Fm'
229				},
230				success: function(r){},
231				error: function(r){}
232			});
233
234			
235		</script>
235
236<!--加入購物車 Function-->
237		
237<script>
238		function fb_AddToCart(prodNo, value, contents) {
239			value = parseInt(value);
240
241			if (prodNo && value > 0) {
242				let content_ids = [];
243				content_ids.push(prodNo);
244			
245				let obj = {
246					content_ids: content_ids,
247					content_type: 'product',
248					value: value,
249					currency: 'TWD'
250				};
251			
252				if (contents) {
253					obj.contents = contents;
254				}
255
256				const eventID = new Date().getTime().toString() + Math.random().toString(36).substring(2);
257
258				fbq('track', 'AddToCart', obj, {eventID: eventID});
259
260				metaData.event_name = 'AddToCart';
261				metaData.custom_data = obj;
262				metaData.event_id = eventID;
263				$.ajax({
264					url: 'https://www.kelijia.tw/website/api/api.meta_conversions_api.php',
265					type: 'POST',
266					dataType: 'json',
267					data: {
268						metaData:metaData,
269						nti_JUFBJUI1JUFDJUIwJUJFJUFFJTgwJTgxJUI5JUJDJUFBJUFEJUFEJUIyJUIwJTdFJUJCJUIyJUFDJUJEJUIxJUI5JUIzJUFBJUI3eQ:'MTc5MTQ1Nzg0ODhYMXpOdnNERGFEeElHUEN4aVpGdXJqYlN1c1BiQ2Fm'  
270					},
271					success: function(r){},
272					error: function(r){}
273				});
274			}
275		}
276		</script>
276
277<!--加入願望清單 Function-->
278		
278<script>
279		function fb_AddToWishlist(prodNo, value) {
280			value = parseInt(value);
281
282			if (prodNo && value > 0) {
283				let content_ids = [];
284				content_ids.push(prodNo);
285			
286				const obj = {
287					content_ids: content_ids,
288					content_type: 'product',
289					value: value,
290					currency: 'TWD'
291				};
292
293				const eventID = new Date().getTime().toString() + Math.random().toString(36).substring(2);
294
295				fbq('track', 'AddToWishlist', obj, {eventID: eventID});
296
297				metaData.event_name = 'AddToWishlist';
298				metaData.custom_data = obj;
299				metaData.event_id = eventID;
300
301				$.ajax({
302					url: 'https://www.kelijia.tw/website/api/api.meta_conversions_api.php',
303					type: 'POST',
304					dataType: 'json',
305					data: {
306						metaData:metaData,
307						nti_JUFBJUI1JUFDJUIwJUJFJUFFJTgwJTgxJUI5JUJDJUFBJUFEJUFEJUIyJUIwJTdFJUJCJUIyJUFDJUJEJUIxJUI5JUIzJUFBJUI3eQ:'MTc5MTQ1Nzg0ODhYMXpOdnNERGFEeElHUEN4aVpGdXJqYlN1c1BiQ2Fm'
308					},
309					success: function(r){},
310					error: function(r){}
311				});
312			}
313		}
314		</script>
314
315<!--完成註冊 Function-->
316		
316<script>
317		function fb_CompleteRegistration() {
318			const obj = {
319				currency:'TWD'
320			};
321
322			const eventID = new Date().getTime().toString() + Math.random().toString(36).substring(2);
323
324			fbq('track', 'CompleteRegistration', obj, {eventID: eventID});
325
326			metaData.event_name = 'CompleteRegistration';
327			metaData.custom_data = obj;
328			metaData.event_id = eventID;
329
330			$.ajax({
331				url: 'https://www.kelijia.tw/website/api/api.meta_conversions_api.php',
332				type: 'POST',
333				dataType: 'json',
334				data: {
335					metaData:metaData,
336					nti_JUFBJUI1JUFDJUIwJUJFJUFFJTgwJTgxJUI5JUJDJUFBJUFEJUFEJUIyJUIwJTdFJUJCJUIyJUFDJUJEJUIxJUI5JUIzJUFBJUI3eQ:'MTc5MTQ1Nzg0ODhYMXpOdnNERGFEeElHUEN4aVpGdXJqYlN1c1BiQ2Fm'
337				},
338				success: function(r){},
339				error: function(r){}
340			});
341		}
342		</script>
342
343<!--開發潛在顧客 Function-->
344		
344<script>
345		function fb_Lead() {
346			const obj = {
347				currency:'TWD',
348				value:''
349			};
350
351			const eventID = new Date().getTime().toString() + Math.random().toString(36).substring(2);
352
353			fbq('track', 'Lead', obj, {eventID: eventID});
354
355			metaData.event_name = 'Lead';
356			metaData.custom_data = obj;
357			metaData.event_id = eventID;
358
359			$.ajax({
360				url: 'https://www.kelijia.tw/website/api/api.meta_conversions_api.php',
361				type: 'POST',
362				dataType: 'json',
363				data: {
364					metaData:metaData,
365					nti_JUFBJUI1JUFDJUIwJUJFJUFFJTgwJTgxJUI5JUJDJUFBJUFEJUFEJUIyJUIwJTdFJUJCJUIyJUFDJUJEJUIxJUI5JUIzJUFBJUI3eQ:'MTc5MTQ1Nzg0ODhYMXpOdnNERGFEeElHUEN4aVpGdXJqYlN1c1BiQ2Fm'
366				},
367				success: function(r){},
368				error: function(r){}
369			});
370		}
371		</script>
371
372<!--查看內容 Function-->
373		
373<script>
374		function fb_ViewContent(prodNo, value, content_name) {
375			let content_ids = [];
376			content_ids.push(prodNo);
377
378			const obj = {
379				content_ids: content_ids,
380				content_type: 'product',
381				content_name: content_name,
382				value: value,
383				currency: 'TWD'
384			};
385
386			const eventID = new Date().getTime().toString() + Math.random().toString(36).substring(2);
387
388			fbq('track', 'ViewContent', obj, {eventID: eventID});
389		
390			metaData.event_name = 'ViewContent';
391			metaData.custom_data = obj;
392			metaData.event_id = eventID;
393			$.ajax({
394				url: 'https://www.kelijia.tw/website/api/api.meta_conversions_api.php',
395				type: 'POST',
396				dataType: 'json',
397				data: {
398					metaData:metaData,
399					nti_JUFBJUI1JUFDJUIwJUJFJUFFJTgwJTgxJUI5JUJDJUFBJUFEJUFEJUIyJUIwJTdFJUJCJUIyJUFDJUJEJUIxJUI5JUIzJUFBJUI3eQ:'MTc5MTQ1Nzg0ODhYMXpOdnNERGFEeElHUEN4aVpGdXJqYlN1c1BiQ2Fm'  
400				},
401				success: function(r){},
402				error: function(r){}
403			});
404		}
405		</script>
405
406<!--搜尋 Function-->
407		
407<script>
408		function fb_Search(prod_keyword, str_content_ids) {			
409			const obj = {
410				content_ids: str_content_ids,
411				content_type: 'product',
412				search_string: prod_keyword
413			};
414
415			const eventID = new Date().getTime().toString() + Math.random().toString(36).substring(2);
416
417			fbq('track', 'Search', obj, {eventID: eventID});
418
419			metaData.event_name = 'Search';
420			metaData.custom_data = obj;
421			metaData.event_id = eventID;
422			$.ajax({
423				url: 'https://www.kelijia.tw/website/api/api.meta_conversions_api.php',
424				type: 'POST',
425				dataType: 'json',
426				data: {
427					metaData:metaData,
428					nti_JUFBJUI1JUFDJUIwJUJFJUFFJTgwJTgxJUI5JUJDJUFBJUFEJUFEJUIyJUIwJTdFJUJCJUIyJUFDJUJEJUIxJUI5JUIzJUFBJUI3eQ:'MTc5MTQ1Nzg0ODhYMXpOdnNERGFEeElHUEN4aVpGdXJqYlN1c1BiQ2Fm'  
429				},
430				success: function(r){},
431				error: function(r){}
432			});
433		}
434		</script>
434
435
436<!--查看內容 ViewContent-->
437
438<!--搜尋 Search-->
439
440<!--開始結帳 InitiateCheckout-->
441
442<!--購買 Purchase Function-->
443
444<!--開發潛在顧客 Function,fb_lead設定在 epmem_register.php-->
445    
446        
447        
448            
449            
450        
451        
452        
453    
454    
455    
456    <!--SEO優化 資料結構化:品牌資訊 -->
457    
457<script type="application/ld+json">
458        {
459            "@context":"https://schema.org",
460            "@type":"Corporation",
461            "brand":"KELIJIA",
462            "alternateName":"可立嘉嫩骨",
463            "url":"https://www.kelijia.tw/kelijia",
464            "logo":"",
465            "contactPoint":[{
466                "@type":"ContactPoint",
467                "telephone":"06-2983518",
468                                "contactType":"bill payment",
469                                "contactOption":"TollFree",
470                "areaServed":"TW"
471            }]
472        }
473    </script>
473
474
475        
475<script type="text/javascript" src="https://www.kelijia.tw/kelijia/javascripts/jquery/jquery.cookie.js"></script>
475<!--200310  cookie-->
476    
477
478    
478<script>
479        let isIOS = /iPad|iPhone|iPod/.test(navigator.platform) ||
480        (navigator.platform === 'MacIntel' && navigator.maxTouchPoints > 1)
481        
482        pad_show_type = 'mobile';
483        mobileDeviceDirected = '';
484        forceDevice = '';
485        if(isIOS && pad_show_type =='mobile' && !mobileDeviceDirected && location.href.indexOf("forceDevice=mobile") < 0 && forceDevice != 'web'){
486            url = location.href;
487            if( url.indexOf("?") >= 0 ){
488                url = url+'&forceDevice=mobile';
489            }else{
490                url = url+'?forceDevice=mobile';
491            }
492            window.location.href = url;
493        }
494    </script>
494
495
496                
497    <!-- EXT24 -->
498        <!-- EXT24 END -->
499</head>                        <body id="shopping_cart">
500                <!---->
501                
502    <!---->
503    <!-- Google Tag Manager -->
vendor: 77 bytes, lines 503-505
503
504    <noscript>
505        <iframe src="//www.googletagmanager.com/ns.html?id=
505GTM-K5RPP6GQ
vendor: 111 bytes, lines 505-508
505"
506                height="0" width="0" style="display:none;visibility:hidden"></iframe>
507    </noscript>
508    
508<!-- End Google Tag Manager -->
509
510
511<script>
512    //靜態頁
513    var csrf_key, csrf_val, mem_uid, arrMember, prodTrace;
514    if (0) {
515        $.ajax({
516            url:"/kelijia/api/api.csrf.php",
517            type: "GET",
518            dataType: "json",
519            async: false,
520            success: function(r){
521                csrf_key = r.key;
522                csrf_val = r.value;
523            }
524        });
525
526        $.ajax({
527            url:"/kelijia/api/api.get_member.php?member_group=1",
528            type: "GET",
529            dataType: "json",
530            async: false,
531            success: function(r){
532                mem_uid = r.mem_uid ? r.mem_uid : 0;
533                arrMember = r;
534            }
535        });
536
537        //版頭會員登入登出顯示,function放在各自版頭
538        $(function(){
539            if (typeof setLoginIcon === 'function')
540                setLoginIcon();
541        });
542    } else {
543        csrf_key = 'nti_JUFBJUI1JUFDJUIwJUJFJUFFJTgwJTgxJUI5JUJDJUFBJUFEJUFEJUIyJUIwJTdFJUJCJUIyJUFDJUJEJUIxJUI5JUIzJUFBJUI3eQ';
544        csrf_val = 'MTc5MTQ1Nzg0ODhYMXpOdnNERGFEeElHUEN4aVpGdXJqYlN1c1BiQ2Fm';
545        mem_uid = '' ? parseInt('') : 0;
546    }
547</script>
547
548
549
550<script>
551    $(function(){
552        if ($("#currency").length) {
553            //選取幣別
554            $("#currency").find("option").each(function(){
555                if ($(this).val() == 'TWD') {
556                    $("#currency").val($(this).val());
557                }
558            });
559
560            //切換幣別
561            $("#currency").change(function(){
562                var currency = $("#currency").val();
563                window.location.href = "https://www.kelijia.tw/kelijia/index.php?action=shopping_cart&web_currency=" + currency;
564            });
565        }
566    });
567
568    function formatCurrencyPrice(price)
569    {
570        var new_price = price / parseFloat(1);
571        return new_price.toFixed(2);
572    }
573</script>
573
574    <!---->
575    
576            <div class="mp-pusher" id="mp-pusher">
577                    <div class="FOR_TOP" >
578<!---->
579			<!--版頭top選單-->
580<div class="thofood-top-BG">
581<div class="thofood-top">
582<!---->
583    
584    <ul class="topmanu clearfix">
585<li class=" Shopcar"><a href="index.php?action=shopping_cart">購物車<!--購物車-->(<span class="Cart_Total" class="namber">00</span>)</a>
586<!--購物車下拉-->
587<div class="MemMenu_Cart" id="top_content"></div>
588</li>
589<li class=" Account"><a href="index.php?action=member_account">我的帳戶<!--我的帳戶 --></a></li>
590<li class=" Singin">
591<a href="index.php?action=member_login&r_byeurl=kelijia&b_action=index">會員登入<!--會員登入 --></a>
592<li class="style13_member_f"><a href="https://www.facebook.com/KELIJIA062983518" title="facebook" target="_blank">Facebook</a></li><li class="style13_member_l"><a href="https://lin.ee/zxb7x8Q" title="line" target="_blank">Line</a></li></li>
593</ul>
594</div>
595</div>
596<!--版頭top選單(END)--> 
597
598<!--é ­-->
599<div class="thofood-header-BG">
600<div class="thofood-header">
601
602    <h2 class="og_TopLogo"><a href="https://www.kelijia.tw/kelijia/"><img src="https://rs.joo.com.tw/website/uploads/website_1174/zh-tw/logo.png?0501180015" alt="可立嘉嫩骨" width="335" height="95" border="0" title="可立嘉嫩骨"></a></h2>
603
604<ul class="IndexTop_Search clearfix">
605<li class="topSearchBar">
606<ul>
607<li class="topSearch02">
608<input id="keyword" type="text" value="" placeholder="請輸入商品關鍵字" title="請輸入商品關鍵字"/><!--請輸入商品關鍵字 --></li>
609<li class="topSearch01"><select><option>全部商品</option></select></li>
610<li class="topSearch03"><input id="button_search" type="button" /></li>
611<!--<li class="TF-Back"><a href="https://www.kelijia.tw/kelijia/">回到首頁</a></li>
612<li class="TF-Mail"><a href="/thofood/index.php?action=guestbook">聯絡我們</a></li>
613<li class="TF-FB"><a href="https://zh-tw.facebook.com/thofood">FB粉絲團</a></li>-->
614</ul>
615</li>
616	<li class="topKeyWord">
617	<span>熱門<!--熱門 -->:</span>
618		<a href="https://www.kelijia.tw/kelijia/index.php?action=product_search&prod_keyword=原味嫩骨">原味嫩骨</a>
619		<a href="https://www.kelijia.tw/kelijia/index.php?action=product_search&prod_keyword=紅燒嫩骨">紅燒嫩骨</a>
620		<a href="https://www.kelijia.tw/kelijia/index.php?action=product_search&prod_keyword=可立嘉嫩骨">可立嘉嫩骨</a>
621		<a href="https://www.kelijia.tw/kelijia/index.php?action=product_search&prod_keyword=嫩骨料理包">嫩骨料理包</a>
622		<a href="https://www.kelijia.tw/kelijia/index.php?action=product_search&prod_keyword=台南">台南</a>
623		<a href="https://www.kelijia.tw/kelijia/index.php?action=product_search&prod_keyword=可立嘉嫩骨飯">可立嘉嫩骨飯</a>
624		<a href="https://www.kelijia.tw/kelijia/index.php?action=product_search&prod_keyword=嫩骨飯">嫩骨飯</a>
625		<a href="https://www.kelijia.tw/kelijia/index.php?action=product_search&prod_keyword=台南小吃">台南小吃</a>
626		<a href="https://www.kelijia.tw/kelijia/index.php?action=product_search&prod_keyword=台南美食">台南美食</a>
627		<a href="https://www.kelijia.tw/kelijia/index.php?action=product_search&prod_keyword=台南必吃">台南必吃</a>
628		<a href="https://www.kelijia.tw/kelijia/index.php?action=product_search&prod_keyword=料理包">料理包</a>
629		<a href="https://www.kelijia.tw/kelijia/index.php?action=product_search&prod_keyword=冷凍料理包">冷凍料理包</a>
630		<a href="https://www.kelijia.tw/kelijia/index.php?action=product_search&prod_keyword=加熱">加熱</a>
631		<a href="https://www.kelijia.tw/kelijia/index.php?action=product_search&prod_keyword=軟骨">軟骨</a>
632		<a href="https://www.kelijia.tw/kelijia/index.php?action=product_search&prod_keyword=豬軟骨">豬軟骨</a>
633		<a href="https://www.kelijia.tw/kelijia/index.php?action=product_search&prod_keyword=軟骨肉">軟骨肉</a>
634		<a href="https://www.kelijia.tw/kelijia/index.php?action=product_search&prod_keyword=豬肉">豬肉</a>
635		<a href="https://www.kelijia.tw/kelijia/index.php?action=product_search&prod_keyword=調理包">調理包</a>
636		<a href="https://www.kelijia.tw/kelijia/index.php?action=product_search&prod_keyword=冷凍宅配">冷凍宅配</a>
637		<a href="https://www.kelijia.tw/kelijia/index.php?action=product_search&prod_keyword=宅配美食">宅配美食</a>
638		<a href="https://www.kelijia.tw/kelijia/index.php?action=product_search&prod_keyword=黑貓宅配">黑貓宅配</a>
639		<a href="https://www.kelijia.tw/kelijia/index.php?action=product_search&prod_keyword=安平美食">安平美食</a>
640		<a href="https://www.kelijia.tw/kelijia/index.php?action=product_search&prod_keyword=安平必吃">
640安平必吃</a>
641		<a href="https://www.kelijia.tw/kelijia/index.php?action=product_search&prod_keyword=安平">安平</a>
642		<a href="https://www.kelijia.tw/kelijia/index.php?action=product_search&prod_keyword=台南安平">台南安平</a>
643		<a href="https://www.kelijia.tw/kelijia/index.php?action=product_search&prod_keyword=軟骨飯">軟骨飯</a>
644		</li>
645</ul>
646</div>
647
648<div class="thofood-header-manu">
649	<ul>
650		<!--主選單-->
651				
652				<li id="MENU0">
653			<a class="main_menu" href="index.php?action=about" target="" 
654				accesskey="0" 
655				title="關於我們 Alt+0"
656				onmouseover="javascript:showWebMenu( 0 );" 
657				onfocus="javascript:showWebMenu( 0 );"
658				onmouseout="javascript:removeWebMenu( 0, 1000 );"
659				onblur="javascript:removeWebMenu( 0, 1000 );" >
660								關於我們
661				<span style="display:block;"></span>
662							</a>
663						<!-- 展開選單 end -->               
664		</li>
665				
666				<li id="MENU1">
667			<a class="main_menu" href="https://www.kelijia.tw/kelijia/index.php?action=faq_0" target="" 
668				accesskey="1" 
669				title="購物流程 Alt+1"
670				onmouseover="javascript:showWebMenu( 1 );" 
671				onfocus="javascript:showWebMenu( 1 );"
672				onmouseout="javascript:removeWebMenu( 1, 1000 );"
673				onblur="javascript:removeWebMenu( 1, 1000 );" >
674								購物流程
675				<span style="display:block;"></span>
676							</a>
677						<!-- 展開選單 end -->               
678		</li>
679				
680				<li id="MENU2">
681			<a class="main_menu" href="index.php?action=product_search" target="" 
682				accesskey="2" 
683				title="商品總覽 Alt+2"
684				onmouseover="javascript:showWebMenu( 2 );" 
685				onfocus="javascript:showWebMenu( 2 );"
686				onmouseout="javascript:removeWebMenu( 2, 1000 );"
687				onblur="javascript:removeWebMenu( 2, 1000 );" >
688								商品總覽
689				<span style="display:block;"></span>
690							</a>
691						<!-- 展開選單 end -->               
692		</li>
693				
694				<li id="MENU3">
695			<a class="main_menu" href="index.php?action=news" target="" 
696				accesskey="3" 
697				title="最新消息 Alt+3"
698				onmouseover="javascript:showWebMenu( 3 );" 
699				onfocus="javascript:showWebMenu( 3 );"
700				onmouseout="javascript:removeWebMenu( 3, 1000 );"
701				onblur="javascript:removeWebMenu( 3, 1000 );" >
702								最新消息
703				<span style="display:block;"></span>
704							</a>
705						<!-- 展開選單 end -->               
706		</li>
707				
708				<li id="MENU4">
709			<a class="main_menu" href="https://www.kelijia.tw/kelijia/index.php?action=buyit" target="" 
710				accesskey="4" 
711				title="團購與邀約 Alt+4"
712				onmouseover="javascript:showWebMenu( 4 );" 
713				onfocus="javascript:showWebMenu( 4 );"
714				onmouseout="javascript:removeWebMenu( 4, 1000 );"
715				onblur="javascript:removeWebMenu( 4, 1000 );" >
716								團購與邀約
717				<span style="display:block;"></span>
718							</a>
719						<!-- 展開選單 end -->               
720		</li>
721				
722				<li id="MENU5">
723			<a class="main_menu" href="index.php?action=faq_1" target="" 
724				accesskey="5" 
725				title="常見問答 Alt+5"
726				onmouseover="javascript:showWebMenu( 5 );" 
727				onfocus="javascript:showWebMenu( 5 );"
728				onmouseout="javascript:removeWebMenu( 5, 1000 );"
729				onblur="javascript:removeWebMenu( 5, 1000 );" >
730								常見問答
731				<span style="display:block;"></span>
732							</a>
733						<!-- 展開選單 end -->               
734		</li>
735				
736				<li id="MENU6">
737			<a class="main_menu" href="index.php?action=blog" target="" 
738				accesskey="6" 
739				title="文章專欄 Alt+6"
740				onmouseover="javascript:showWebMenu( 6 );" 
741				onfocus="javascript:showWebMenu( 6 );"
742				onmouseout="javascript:removeWebMenu( 6, 1000 );"
743				onblur="javascript:removeWebMenu( 6, 1000 );" >
744								文章專欄
745				<span style="display:block;"></span>
746							</a>
747						<!-- 展開選單 end -->               
748		</li>
749				
750				<li id="MENU7">
751			<a class="main_menu" href="index.php?action=contact" target="" 
752				accesskey="7" 
753				title="聯絡我們 Alt+7"
754				onmouseover="javascript:showWebMenu( 7 );" 
755				onfocus="javascript:showWebMenu( 7 );"
756				onmouseout="javascript:removeWebMenu( 7, 1000 );"
757				onblur="javascript:removeWebMenu( 7, 1000 );" >
758								聯絡我們
759				<span style="display:block;"></span>
760							</a>
761						<!-- 展開選單 end -->               
762		</li>
763			</ul>
764</div>
765
766</div>
767<div class="tbs_gotop_box" id="gotop"></div>
768
769
770<!-- 瀏覽記綠 -->
771
772
773
774<script>
775/*下拉選單*/
776$(function(){
777	$(".thofood-header-manu > ul > li").hover(
778		function(){
779			var N = this.id.substr(4);
780			$("#MENU_in"+N).stop(true, true).slideToggle(300);
781	});
782});
783
784//抓網址get變數
785function getQueryParams(qs) {
786    qs = qs.split("+").join(" ");
787    var params = [],
788        tokens,
789        re = /[?&]?([^=]+)=([^&]*)/g;
790    while (tokens = re.exec(qs)) {
791        params[decodeURIComponent(tokens[1])] = decodeURIComponent(tokens[2]);
792    }
793    return params;
794}
795var _GET = getQueryParams(document.location.search);//網址get變數
796//版頭購物車
797$(function(){
798	if (_GET['action'] != "shopping_checkout_2" && _GET['action'] != "shopping_checkout_3"){
799		$(".Shopcar").hover(
800			function(){
801				$(".MemMenu_Cart").stop(true, true).slideDown(300);
802			},function(){
803				$(".MemMenu_Cart").stop().slideUp(300);
804			}
805		);
806	}
807});
808$(function(){
809	$("#button_search").click(function(){
810		prod_search();
811	});
812	$('#keyword').keypress(function(event){
813		if(event.keyCode == 13){
814			prod_search($(this).val());
815		}
816	});
817});
818function prod_search(Kw){
819	var keyword ;
820	if (Kw){
821		keyword = Kw ;
822	}else{
823		keyword = $("#keyword").val();
824	}
825	window.location.href = 'https://www.kelijia.tw/kelijia/index.php?action=product_search&prod_keyword='+keyword;
826}
827function headtop_removeScar( uid ){
828	$.ajax({
829		url:"/kelijia/api/api.shopping_cart.php",
830		type: "POST",
831		dataType: "json",
832		data: {myAct:"removeScarByUid",
833			   uid: uid,
834               nti_JUFBJUI1JUFDJUIwJUJFJUFFJTgwJTgxJUI5JUJDJUFBJUFEJUFEJUIyJUIwJTdFJUJCJUIyJUFDJUJEJUIxJUI5JUIzJUFBJUI3eQ : 'MTc5MTQ1Nzg0ODhYMXpOdnNERGFEeElHUEN4aVpGdXJqYlN1c1BiQ2Fm'
835		},
836		success: function(Jdata){
837			if(Jdata.error=='C00'){
838				top_refresh();
839			}
840		}
841	});
842}
843function top_refresh(_scar_no)
844{
845	if(_scar_no==null)
846		var _scar_no = "";
847
848	$.ajax({
849		url: "/kelijia/api/api.shopping_cart.php",
850		type: "POST",
851		dataType: "json",
852		data: {myAct:"getCartNumber",
853               nti_JUFBJUI1JUFDJUIwJUJFJUFFJTgwJTgxJUI5JUJDJUFBJUFEJUFEJUIyJUIwJTdFJUJCJUIyJUFDJUJEJUIxJUI5JUIzJUFBJUI3eQ : 'MTc5MTQ1Nzg0ODhYMXpOdnNERGFEeElHUEN4aVpGdXJqYlN1c1BiQ2Fm'
854		},
855		success: function(Jdata){
856			if( Jdata.error == 'C00' ){
857				$('#top_content').empty();
858				var html='';
859				var count = 0;
860					$.each( Jdata.content, function( key, value ) {
861						var top_str = "";
862						if(value['scar_type']==1)
863							top_str = "(贈品)";
864						if(value['scar_type']==2)
865							top_str = "(加購)";
866						html +='<ul class="MemMenu_Product clearfix" id="'+value['uid']+'">';
867						html +='<li class="Cart_Pimg"><a href="index.php?action=product_detail&prod_no='+value['prod_no']+'" class="mycart-img"><img border="0" alt="'+value["prod_name"]+'" title="'+value["prod_name"]+'" src="'+value['prod_file']+'"></a></li>';
868						html +='<li class="Cart_Pname">';
869						html +='<h2><a href="index.php?action=product_detail&prod_no='+value['prod_no']+'" title="'+value["prod_name"]+'">'+value["prod_name"]+top_str+'</a></h2>';
870						html +="<p>$ "+value['scar_price']+'<span>x'+value['scar_count']+'</span></p>';
871						html +='</li>';
872						if(value['scar_type'] != 1)
873							html +='<li class="Cart_Pdelete"><a href="javascript:void(0);" title="刪除" onClick="javascript:headtop_removeScar( '+value['uid']+' );">刪除</a></li>';
874						html +="</ul>";
875						count = count+parseInt(value['scar_count']);
876					});
877					html +='<div class="MemMenu_Product_total">';
878					html +='<p>總計:<span class="Cart_Total">$ '+Jdata.total+'</span></p>';
879					html +='<a href="index.php?action=shopping_cart" title="結帳">結帳</a></div>';
880				$('#top_content').append(html);
881				//$('#Cart_Total').html(count);
882				$('#Cart_Count').html(count+"件商品");
883
884				//往後有購物車數字要更動使用此class
885                $('.Cart_Total').html(count);
886				
887                if (typeof top_refresh_authority === 'function') {
888                    top_refresh_authority();
889                }
890			}
891		}
892	})
893}
894top_refresh();
895
896$(function(){
897
898	$(".thofood-header-manu > ul > li").hover(
899		function(){
900			var N = this.id.substr(4);//id對應檔名編號;數字4代表MENU1的第4個位置,也就是數字1
901			$("#SUB"+N).stop(true, true).slideToggle(300);
902			$(this).toggleClass("mstyle_hover_2");//主選單背景
903
904		});
905
906});
907/* 選單平分寬度 */
908$(function(){
909var MENU_W = 100;
910var LIST_N = $(".thofood-header-manu > ul > li").length;
911var LIST_W = MENU_W / LIST_N + "%";
912$(".thofood-header-manu > ul > li").css({ width:LIST_W});
913
914})
915
916$(function(){
917	$('.tbs_gotop_box').click(function(){
918		var $body = (window.opera) ? (document.compatMode == "CSS1Compat" ?
919		$('html') : $('body')) : $('html,body');
920		$body.animate({
921			scrollTop: 0
922			}, 600);
923		return false;
924	});
925});
926$(function(){
927$(window).scroll(function() {
928      if ($(window).scrollTop() > 400) {
929         $(".tbs_gotop_box").fadeIn("slow");
930      }
931      else {
932        $(".tbs_gotop_box").fadeOut("fast");
933      }
934     });
935});
936
937
938//右側(瀏覽記錄)
939var scrollPic_13 = new ScrollPic();
940				scrollPic_13.scrollContId   = "Cont_box"; //内容容器ID
941				scrollPic_13.arrLeftId      = "TopArrow";//左箭头ID
942				scrollPic_13.arrRightId     = "BottomArrow"; //右箭头ID
943				scrollPic_13.frameWidth     = 114;//显示框宽度 **显示框宽度必须是翻页宽度的倍数
944				scrollPic_13.pageWidth      = 57; //翻页宽度
945				scrollPic_13.upright        = true; //垂直滚动
946				scrollPic_13.listEvent      = "onclick"; //切换事件
947				scrollPic_13.speed          = 10; //移动速度(单位毫秒,越小越快)
948				scrollPic_13.space          = 10; //每次移动像素(单位px,越大越快)
949				scrollPic_13.autoPlay       = false; //自动播放
950				scrollPic_13.autoPlayTime   = 5; //自动播放间隔时间(秒)
951				scrollPic_13.circularly		= true; //不循环
952				scrollPic_13.initialize(); //初始化
953//右側(置頂)			
954$(function(){
955$('.df_Back_top').click(function(){
956var $body = (window.opera) ? (document.compatMode == "CSS1Compat" ?
957$('html') : $('body')) : $('html,body');
958$body.animate({
959scrollTop: 0
960}, 600);
961return false;
962});
963});
964
965
966const targetDiv = document.querySelector('.df_HistoryBox');
967let isScrolling;
968
969window.addEventListener('scroll', () => {
970  // 1. 只要在滾動中,就加上 class
971  targetDiv.classList.add('hidden-box');
972
973  // 2. 每次滾動時都先清除掉之前的「停止計時器」
974  window.clearTimeout(isScrolling);
975
976  // 3. 設定一個計時器,當停止滾動 200 毫秒後執行
977  isScrolling = setTimeout(() => {
978    // 4. 滾動停止了,移除 class
979    targetDiv.classList.remove('hidden-box');
980  }, 200); // 200 毫秒可以根據你的手感調整
981});
982
983
984</script>
984	</div>
985        
986        <div class="FOR_MAIN" >
987
988                        <!--加入購物車完成 遮罩-->
989            <div id="addCartMask" class="addCartMask" style="display: none;" onclick="$(this).css('display','none')">
990                <div class="addCartBlock">
991                    <div class="addCartBlock_img"><img src="images/addCartIcon.png" alt="" /></div>
992                    <div class="addCartBlock_txt">已加入購物車</div>
993                </div>
994            </div>
995
996            <!--加入詢價車完成 遮罩-->
997            <div id="addRfqMask" class="addCartMask" style="display: none;" onclick="$(this).css('display','none')">
998                <div class="addCartBlock">
999                    <div class="addCartBlock_img"><img src="images/addCartIcon.png" alt="" /></div>
1000                    <div class="addCartBlock_txt">已加入詢價車</div>
1001                </div>
1002            </div>
1003            
1004            <!---->
1005                        <div class="m_breadCrumbs"><div class="breadCrumbs2">  <a href="#C" title="中央內容區塊" id="AC" accesskey="C" name="C" class="accesskeyLink">:::</a>  <ol itemscope itemtype="http://schema.org/BreadcrumbList">    <li class="BC_list" itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">      <a itemprop="item" href="https://www.kelijia.tw/" title="首頁">        <span itemprop="name">首頁</span>      </a>      <meta itemprop="position" content="1" />    </li>    <li class="BC_symbol">-</li>    <li class="BC_list" itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">      <a itemprop="item" href="https://www.kelijia.tw/kelijia/index.php?action=shopping_cart" title="購物車">        <span itemprop="name">購物車</span>      </a>      <meta itemprop="position" content="2" />    </li>  </ol></div></div>
1006                        <!---->
1007            <!---->
1008            <div class="clearfix">
1009<!---->
1010<!---->
1011<!---->                    
1012<!---->
1013<!---->
1014<!---->
1015		 <!---->
1016<div class="main_content_no_center"><!---->
1017<!---->
1018
1019<!---->
1020
1021<!---->
1022				<!---->
1023		<!---->
1024
1025	<!---->
1026	
1027
1028	<!---->
1029				
1030		            <style>
1031	.all_scart_btn_groupleft{ float: left;}
1032	.all_scart_btn_groupleft > span{ float: unset; line-height: 24px;}	
1033	.all_scart_btn_groupleft .scart_content_radio{ display: flex; align-items: center; justify-content: end; flex-wrap: wrap;}
1034	.all_scart_btn_groupleft .scart_content_radio .scart_content_radio_in{ display: flex; align-items: center;}
1035	.all_scart_btn_groupleft .scart_content_radio input{display: none;}
1036	.all_scart_btn_groupleft .scart_content_radio label{ line-height: 24px; position: relative; padding:0 10px; margin:0; color:#333333;display: flex;cursor: pointer;-webkit-box-sizing: border-box;-moz-box-sizing: border-box;box-sizing: border-box;}
1037
1038	.all_scart_btn_groupleft .scart_content_radio input + label:before{ margin-top:2px;display:inline-block; background-color:#FFF; content: "";width: 20px;height: 20px;line-height:24px;margin-right:5px;text-align:center;border:2px solid #d8d8d8;border-radius:100%;vertical-align:text-top;}
1039	.all_scart_btn_groupleft .scart_content_radio input:checked + label:before { background-position: 2px; background-repeat: no-repeat; display: inline-block; color: #666; background-image: url(css/images/scart_point.svg); background-size: 12px; width: 20px; height: 20px; border-color:#bbb;}
1040	.all_scart_btn_groupleft .scart_content_radio input:disabled + label{cursor:default;}
1041	.all_scart_btn_groupleft .scart_content_radio input:disabled + label:before{background-color:#e9e9e9;}
1042	.all_scart_btn span a:link, .all_scart_btn span a:visited, .scart_content_I span a:link, .scart_content_I span a:visited{ margin-right:5px;}
1043
1044</style>
1045<!-- 最大提領量 START -->
1046<!-- 最大提領量 END -->
1047<div class="all_scart_box">
1048<!-- 購物車步驟 START-->
1049<div class="all_scart_top clearfix">
1050	<h3 class="top_title">購物車<!--我的購物車--></h3>
1051	<div class="cart_step_bg1">
1052		<ul class="cart_step clearfix ">
1053			<li class="font_color_01"><span>我的購物車</span></li> <!-- 購物車步驟1 -->
1054			<li class="font_color_02"><span>填寫資料</span></li> <!-- 購物車步驟2 -->
1055			<li class="font_color_02"><span>付款</span></li> <!-- 購物車步驟3 -->
1056			<li class="font_color_02"><span>完成訂購</span></li> <!-- 購物車步驟4 -->
1057		</ul>
1058	</div>
1059</div>
1060<!-- 購物車步驟 END -->
1061<div class="all_scart_content">
1062<div class="scart_content_A">
1063	<!-- A. form 表單 START -->
1064	<form name="it45_formList" method="post" action="">
1065
1066		<!-- A-1. 購物車無商品區塊 START-->
1067		<div id="no_prod_box" style="display: none">
1068			<!---->
1069			購物車中沒有商品 - <a href="index.php?action=index">請選購商品!</a><!---->
1070		</div>
1071		<!-- A-1. 購物車無商品區塊 END -->
1072
1073		<!-- A-2. 商品區塊 START -->
1074		 <!-- 總商品數,預設0 -->
1075
1076				<!-- A-2. 商品區塊 END -->
1077
1078		<!-- A-3. 全部總計 START -->
1079				<!-- A-3. 全部總計 END -->
1080
1081		<input type="hidden" name="nti_JUFBJUI1JUFDJUIwJUJFJUFFJTgwJTgxJUI5JUJDJUFBJUFEJUFEJUIyJUIwJTdFJUJCJUIyJUFDJUJEJUIxJUI5JUIzJUFBJUI3eQ" value="MTc5MTQ1Nzg0ODhYMXpOdnNERGFEeElHUEN4aVpGdXJqYlN1c1BiQ2Fm">
1082	</form>
1083	<!-- form 表單 END-->
1084</div>
1085<div class="all_scart_btn clearfix">
1086<!-- 結帳 -->
1087	<form name="it45_formA" method="post" action="https://www.kelijia.tw/kelijia/index.php?action=shopping_cart" onsubmit="return check_submit();">
1088		<input name="cart_myAct" type="hidden" value="CHECK_OUT" />
1089		<input name="from_cart" type="hidden" value="yes" />
1090		<div class="all_scart_btn_groupleft">
1091			<span class="font_size_05 one_page_none">下單前請先詳閱<!--下單前請先詳閱--><a href="index.php?action=faq_0" title="購物須知" target="_blank" class="font_size_05 scart_mark">購物須知<!--購物須知--></a></span>
1092						<!-- 退換貨說明end  -->
1093			<span class="dorascart01_faq" style="display: none;">旅客有責任確保於機上購買之免稅品符合目的地國家的免稅限額及安全規定。<!--旅客有責任確保於機上購買之免稅品符合目的地國家的免稅限額及安全規定。--><br>下單前請先詳閱<!--下單前請先詳閱-->&nbsp;<a href="index.php?action=faq_0" title="各地區免稅品入境規定" target="_blank">各地區免稅品入境規定<!--各地區免稅品入境規定--></a></span>
1094		</div>
1095		<div class="all_scart_btn_group">
1096			<div class="all_scart_btn jooshop_btn_color2"><input type="button" value="繼續選購" class="" onclick="location.href='https://www.kelijia.tw/kelijia/';"><!--繼續選購--></div>
1097						<div class="all_scart_btn jooshop_btn_color">
1098				<input name="btn_submit" type="submit" value="前往結帳"><!--確認付款-->
1099			</div>
1100					</div>
1101		<input type="hidden" name="nti_JUFBJUI1JUFDJUIwJUJFJUFFJTgwJTgxJUI5JUJDJUFBJUFEJUFEJUIyJUIwJTdFJUJCJUIyJUFDJUJEJUIxJUI5JUIzJUFBJUI3eQ" value="MTc5MTQ1Nzg0ODhYMXpOdnNERGFEeElHUEN4aVpGdXJqYlN1c1BiQ2Fm">
1102	</form>
1103	<!-- 結帳 end -->
1104</div>
1105</div>
1106</div>
1107<!-- 非會員購物Lightbox START -->
1108<div id="it45_gotopaybox" class="it45_gotopaybox" style="display: none;">
1109	<span>登入會員,享有更多會員優惠!</span>
1110	<div class="it45_gotopaybtnbox">
1111		<div class="jooshop_btn_color"><input type="button" value="立即登入會員" onclick="location.href='index.php?action=member_login&r_byeurl=kelijia&b_action=shopping_cart';"></div>
1112		<div class="jooshop_btn_color"><input name="btn_submit" type="button" value="直接前往結帳" onclick="it45_formASubmit();"><!--確認付款--></div>
1113	</div>
1114</div>
1115<!-- 非會員購物Lightbox END -->
1116<!-- script START -->
1117<script>
1118    var pickup_max_rule = "";
1119	var err_gender = [];
1120	var err_gender_msg = '';
1121    var err_pickupmax_msg = '';
1122
1123    $(document).ready(function() {
1124		if(pickup_max_rule){
1125            pre_prod_no();
1126
1127            $(".detail_box").click(function(){
1128                pre_prod_no(false, true);
1129            }).fancybox();
1130
1131            $(".maximize_name").click(function(){
1132				if ($(".maximize_name_detail").is(":visible")) {
1133				} else {
1134					$(this).toggleClass("max_active");
1135					$(this).siblings(".maximize_name_detail").slideDown();
1136				}
1137			});
1138			/*
1139			$(".max_active").click(function(){
1140				$(this).siblings(".maximize_name_detail").slideUp();
1141			});
1142			*/
1143		}
1144
1145        /*#no_prod_box 要不要顯示*/
1146        var count_in_scar = "0";
1147        it45_setNoProdBoxDisplay(count_in_scar);
1148
1149        /*取得購物車總價 & 各溫層總價*/
1150        it45_getTotal();
1151
1152        /*購物內容展開*/
1153        $(".i-shoppinglist-title").click(function () {
1154			$(".i-shoppinglist-content").slideToggle();
1155			/*隱藏購物明細 <!--隱藏購物明細-->*/
1156			if ($(".i_hidebox").text() == '隱藏購物明細 -') {
1157			    $('.i_hidebox').text('顯示購物明細 +');
1158			} else {
1159                $('.i_hidebox').text('隱藏購物明細 -');
1160			}
1161        });
1162
1163        /*修改商品數量*/
1164        $('.i_setP_quantity').each(function(i,ele) {
1165            /* -1 */
1166            $(ele).find('input').eq(0).click(function(){
1167                var input_scar_count = $(this).next();
1168                var scar_count = input_scar_count.val();
1169                var ori_scar_count = scar_count;
1170                var scar_uid = input_scar_count.attr('uid');
1171                scar_count = checkProdQty(-- scar_count);
1172
1173                if (ori_scar_count != scar_count) {
1174                    input_scar_count.val(scar_count);
1175                    it45_setCount(scar_count, scar_uid);
1176                }
1177
1178                if (checkProdLimitBuy()){
1179                    input_scar_count.val(ori_scar_count);
1180                    it45_setCount(ori_scar_count, scar_uid);
1181                }
1182            });
1183
1184            $(ele).find('input').eq(1).focusin(function(){
1185                $(this).data('val', $(this).val());
1186            });
1187
1188            /* input by user */
1189            $(ele).find('input').eq(1).change(function(){
1190                var input_scar_count = $(this);
1191                var scar_count = input_scar_count.val();
1192                var ori_scar_count = $(this).data('val');
1193                var scar_uid = input_scar_count.attr('uid');
1194                var max_scar_count = parseInt(input_scar_count.attr('max_count'));
1195                scar_count = checkProdQty(scar_count, max_scar_count);
1196
1197                if (ori_scar_count == max_scar_count){
1198                    alert("已達最大可購買量");
1199                }else{
1200                    input_scar_count.val(scar_count);
1201                    it45_setCount(scar_count, scar_uid);
1202
1203                    if (checkProdLimitBuy()){
1204                        input_scar_count.val(ori_scar_count);
1205                        it45_setCount(ori_scar_count, scar_uid);
1206                    }
1207                }
1208            });
1209
1210            /* +1 */
1211            $(ele).find('input').eq(2).click(function(){
1212                var input_scar_count = $(this).prev();
1213                var scar_count = input_scar_count.val();
1214                var ori_scar_count = scar_count;
1215                var scar_uid = input_scar_count.attr('uid');
1216                var max_scar_count = parseInt(input_scar_count.attr('max_count'));
1217                scar_count = checkProdQty(++ scar_count, max_scar_count);
1218
1219                if (ori_scar_count == max_scar_count){
1220                    alert("已達最大可購買量");
1221                }else{
1222                    if (ori_scar_count != scar_count){
1223                        input_scar_count.val(scar_count);
1224                        it45_setCount(scar_count, scar_uid);
1225                    }
1226
1227                    if(checkProdLimitBuy()){
1228                        input_scar_count.val(ori_scar_count);
1229                        it45_setCount(ori_scar_count, scar_uid);
1230                    }
1231                }
1232            });
1233        });
1234
1235        /****** 埋扣 ******/
1236        if (typeof(bwtm_shopping_cart) == 'function') {
1237            var arr_prodNos = [];
1238                        bwtm_shopping_cart(arr_prodNos);
1239        }
1240
1241		if (typeof(appier_product_cartList) == 'function') {
1242			var arr_prodNos = [];
1243			var amt = '0';
1244						appier_product_cartList(arr_prodNos, amt);
1245		}
1246        /****** 埋扣END ******/
1247    });
1248
1249    if(typeof(formatNumber) === 'undefined'){
1250        function formatNumber(str)
1251        {
1252            str = str.trim();
1253            if(str.length <= 3){
1254                return str;
1255            }else{
1256                return formatNumber(str.substr(0,str.length-3))+','+str.substr(str.length-3);
1257            }
1258        }
1259    }
1260
1261	/* #no_prod_box 要不要顯示 */
1262	function it45_setNoProdBoxDisplay(count_in_scar) {
1263		if (count_in_scar > 0) {
1264			$("#no_prod_box").hide();
1265			$(".all_scart_btn_group > .all_scart_btn.jooshop_btn_color").show();
1266		} else {
1267			$("#no_prod_box").show();
1268			$(".all_scart_btn_group > .all_scart_btn.jooshop_btn_color").hide();
1269		}
1270    }
1271
1272    /* 取得購物車總價 & 各溫層總價 */
1273    var dollar_sign = '$ ';
1274    var it45_priceTotal = 0;
1275    var not_exist_prod_type = [];
1276
1277    function it45_getTotal( _jsonStr ){
1278        if( _jsonStr ){
1279            var _return = JSON.parse( _jsonStr );
1280            if( _return.error == 'C00' ){
1281                it45_priceTotal = _return.content;
1282                _return.content = formatNumber(_return.content);
1283                $("#it45_priceTotal").html('<small>'+ dollar_sign +'</small>' +_return.content);
1284                $("#it45_TotalPrice").val(it45_priceTotal);
1285                $(".currency_price").html(formatCurrencyPrice(it45_priceTotal));
1286
1287                                
1288                                                if(it45_priceTotal >= 249 && it45_priceTotal <= 9999999){
1289                    $('#addpro_119').show();
1290                }else{
1291                    $('#addpro_119').hide();
1292                }
1293                                if(it45_priceTotal >= 600 && it45_priceTotal <= 20000){
1294                    $('#addpro_419').show();
1295                }else{
1296                    $('#addpro_419').hide();
1297                }
1298                                if(it45_priceTotal >= 99 && it45_priceTotal <= 999999){
1299                    $('#addpro_832').show();
1300                }else{
1301                    $('#addpro_832').hide();
1302                }
1303                                if(it45_priceTotal >= 6000 && it45_priceTotal <= 999999){
1304                    $('#addpro_854').show();
1305                }else{
1306                    $('#addpro_854').hide();
1307                }
1308                                if(it45_priceTotal >= 15000 && it45_priceTotal <= 999999){
1309                    $('#addpro_855').show();
1310                }else{
1311                    $('#addpro_855').hide();
1312                }
1313                                if(it45_priceTotal >= 6000 && it45_priceTotal <= 99999){
1314                    $('#addpro_859').show();
1315                }else{
1316                    $('#addpro_859').hide();
1317                }
1318                                if(it45_priceTotal >= 10 && it45_priceTotal <= 10000){
1319                    $('#addpro_1234').show();
1320                }else{
1321                    $('#addpro_1234').hide();
1322                }
1323                                if(it45_priceTotal >= 2000 && it45_priceTotal <= 999999){
1324                    $('#addpro_1959').show();
1325                }else{
1326                    $('#addpro_1959').hide();
1327                }
1328                                if(it45_priceTotal >= 1 && it45_priceTotal <= 500000){
1329                    $('#addpro_2692').show();
1330                }else{
1331                    $('#addpro_2692').hide();
1332                }
1333                                if(it45_priceTotal >= 699 && it45_priceTotal <= 600000){
1334                    $('#addpro_2931').show();
1335                }else{
1336                    $('#addpro_2931').hide();
1337                }
1338                                if(it45_priceTotal >= 700 && it45_priceTotal <= 99999){
1339                    $('#addpro_4030').show();
1340                }else{
1341                    $('#addpro_4030').hide();
1342                }
1343                                if(it45_priceTotal >= 0 && it45_priceTotal <= 0){
1344                    $('#addpro_4254').show();
1345                }else{
1346                    $('#addpro_4254').hide();
1347                }
1348                                if(it45_priceTotal >= 39 && it45_priceTotal <= 999999999){
1349                    $('#addpro_4591').show();
1350                }else{
1351                    $('#addpro_4591').hide();
1352                }
1353                                if(it45_priceTotal >= 350 && it45_priceTotal <= 99999999){
1354                    $('#addpro_5049').show();
1355                }else{
1356                    $('#addpro_5049').hide();
1357                }
1358                                if(it45_priceTotal >= 1 && it45_priceTotal <= 9999999){
1359                    $('#addpro_5077').show();
1360                }else{
1361                    $('#addpro_5077').hide();
1362                }
1363                                if(it45_priceTotal >= 100 && it45_priceTotal <= 99999999){
1364                    $('#addpro_5814').show();
1365                }else{
1366                    $('#addpro_5814').hide();
1367                }
1368                                if(it45_priceTotal >= 1 && it45_priceTotal <= 99999){
1369                    $('#addpro_5840').show();
1370                }else{
1371                    $('#addpro_5840').hide();
1372                }
1373                                if(it45_priceTotal >= 1500 && it45_priceTotal <= 999999){
1374                    $('#addpro_6025').show();
1375                }else{
1376                    $('#addpro_6025').hide();
1377                }
1378                                if(it45_priceTotal >= 1 && it45_priceTotal <= 999999999){
1379                    $('#addpro_6026').show();
1380                }else{
1381                    $('#addpro_6026').hide();
1382                }
1383                                if(it45_priceTotal >= 1000 && it45_priceTotal <= 999999){
1384                    $('#addpro_6289').show();
1385                }else{
1386                    $('#addpro_6289').hide();
1387                }
1388                                if(it45_priceTotal >= 499 && it45_priceTotal <= 100000){
1389                    $('#addpro_6531').show();
1390                }else{
1391                    $('#addpro_6531').hide();
1392                }
1393                                if(it45_priceTotal >= 515 && it45_priceTotal <= 9999){
1394                    $('#addpro_6981').show();
1395                }else{
1396                    $('#addpro_6981').hide();
1397                }
1398                                if(it45_priceTotal >= 1 && it45_priceTotal <= 9999){
1399                    $('#addpro_7036').show();
1400                }else{
1401                    $('#addpro_7036').hide();
1402                }
1403                                if(it45_priceTotal >= 1 && it45_priceTotal <= 999999){
1404                    $('#addpro_7179').show();
1405                }else{
1406                    $('#addpro_7179').hide();
1407                }
1408                                if(it45_priceTotal >= 1000 && it45_priceTotal <= 2147483647){
1409                    $('#addpro_7213').show();
1410                }else{
1411                    $('#addpro_7213').hide();
1412                }
1413                                if(it45_priceTotal >= 1 && it45_priceTotal <= 999999){
1414                    $('#addpro_7327').show();
1415                }else{
1416                    $('#addpro_7327').hide();
1417                }
1418                                if(it45_priceTotal >= 1 && it45_priceTotal <= 9999999){
1419                    $('#addpro_7333').show();
1420                }else{
1421                    $('#addpro_7333').hide();
1422                }
1423                                if(it45_priceTotal >= 1 && it45_priceTotal <= 99999){
1424                    $('#addpro_7653').show();
1425                }else{
1426                    $('#addpro_7653').hide();
1427                }
1428                                if(it45_priceTotal >= 10 && it45_priceTotal <= 9999999){
1429                    $('#addpro_7697').show();
1430                }else{
1431                    $('#addpro_7697').hide();
1432                }
1433                                if(it45_priceTotal >= 1 && it45_priceTotal <= 999999){
1434                    $('#addpro_7961').show();
1435                }else{
1436                    $('#addpro_7961').hide();
1437                }
1438                                if(it45_priceTotal >= 200 && it45_priceTotal <= 9999999){
1439                    $('#addpro_8076').show();
1440                }else{
1441                    $('#addpro_8076').hide();
1442                }
1443                                if(it45_priceTotal >= 1800 && it45_priceTotal <= 999999){
1444                    $('#addpro_8283').show();
1445                }else{
1446                    $('#addpro_8283').hide();
1447                }
1448                
1449								if(_return.content_type){
1450					$.each(_return.content_type,function(index,val){
1451						$('#subpricetype'+val['type']).html('<small>'+ dollar_sign + '</small>' + formatNumber(val['total']));
1452						not_exist_prod_type[val['type']] = false;
1453					});
1454				}else{
1455					/* no prod => hide the nextstep submit button */
1456				}
1457
1458				/* 沒商品的溫層隱藏起來 */
1459                not_exist_prod_type.forEach(function (val, index) {
1460					if( val ){
1461						$('div#box_type'+index).empty();
1462						$('div#clean_box_type'+index).empty();
1463					}
1464                });
1465            }
1466        } else {
1467			$.ajax({
1468				url : "https://www.kelijia.tw/kelijia/api/api.shopping_cart.php",
1469				async : false,
1470				type : 'POST',
1471				data_type : 'JSON',
1472				data : {
1473					myAct : "getScarPriceTotalByScno",
1474                    nti_JUFBJUI1JUFDJUIwJUJFJUFFJTgwJTgxJUI5JUJDJUFBJUFEJUFEJUIyJUIwJTdFJUJCJUIyJUFDJUJEJUIxJUI5JUIzJUFBJUI3eQ : 'MTc5MTQ1Nzg0ODhYMXpOdnNERGFEeElHUEN4aVpGdXJqYlN1c1BiQ2Fm'
1475				},
1476				success : function(_jsonStr){
1477					it45_getTotal(_jsonStr);
1478				}
1479			});
1480        }
1481    }
1482
1483	/* 檢查商品數量 */
1484	function checkProdQty(num, max){
1485		var regex_is_int = new RegExp(/^[0-9]+$/);
1486		if (num < 1 || !regex_is_int.test(num)) {
1487			num = 1;
1488		} else if (typeof max == 'number') {
1489			if (num > max){
1490				num = max;
1491			}
1492		}
1493		return num;
1494	}
1495
1496	/* 更改 DB 商品數量 */
1497	function it45_setCount(scar_count, uid)
1498	{
1499        $.ajax({
1500            url : "https://www.kelijia.tw/kelijia/api/api.shopping_cart.php",
1501            async : false,
1502            type : 'POST',
1503            data_type : 'json',
1504            data : {
1505                myAct : "setScarCount",
1506                uid : uid,
1507                scar_count : scar_count,
1508				nti_JUFBJUI1JUFDJUIwJUJFJUFFJTgwJTgxJUI5JUJDJUFBJUFEJUFEJUIyJUIwJTdFJUJCJUIyJUFDJUJEJUIxJUI5JUIzJUFBJUI3eQ : 'MTc5MTQ1Nzg0ODhYMXpOdnNERGFEeElHUEN4aVpGdXJqYlN1c1BiQ2Fm'
1509			},
1510			success : function(_jsonStr){
1511				//console.log(_jsonStr);
1512                it45_setCountRequest(_jsonStr);
1513				it45_setProdPrice(uid, scar_count);
1514				if (typeof(ga_addToCartSelect) == 'function') {
1515					ga_addToCartSelect(scar_count, uid);
1516				}
1517			}
1518		});
1519	}
1520
1521	function it45_setProdPrice(uid, scar_count){
1522		$.ajax({
1523			url: "https://www.kelijia.tw/kelijia/api/api.shopping_cart.php",
1524			type: "POST",
1525			dataType: "json",
1526			data: {
1527				uid: uid,
1528				myAct: "setScarProdPriceByCount",
1529				scar_count: scar_count,
1530				nti_JUFBJUI1JUFDJUIwJUJFJUFFJTgwJTgxJUI5JUJDJUFBJUFEJUFEJUIyJUIwJTdFJUJCJUIyJUFDJUJEJUIxJUI5JUIzJUFBJUI3eQ : 'MTc5MTQ1Nzg0ODhYMXpOdnNERGFEeElHUEN4aVpGdXJqYlN1c1BiQ2Fm'
1531			},
1532			success: function (Jdata) {    
1533				$('#i_setP_per_price_'+uid > p).html('<small>'+ dollar_sign +'</small>' +Jdata.selling_price);
1534			}
1535		});
1536	}
1537
1538	/* 商品數量更改後,頁面相關配置 */
1539	function it45_setCountRequest(_jsonStr){
1540		/* 先把所有分類滿額設為未符合 */
1541		$('.i_check_match_wmkt55, .i_check_match_prod_evt').each(function() {
1542			$(this).html("未符合"); /* 未符合 */
1543            $(this).removeClass('box_style_02').addClass('box_style_03');
1544		});
1545
1546		/*** 更新後購物車內容 ***/
1547		var _return = JSON.parse(_jsonStr);
1548		if( _return.error == 'C00' ){
1549			var arrScarGroupNo = _return.content;
1550			var prod_total_count = 0;
1551			var prod_type_total_count = [];
1552			for( var i = 0; i < arrScarGroupNo.length; i ++){
1553				var _arrScar = arrScarGroupNo[i];
1554				if( _arrScar.status == "1"){
1555				    /**/
1556					var div_id = "#it45_subTotal_" + _arrScar.uid;
1557					if( _arrScar.scar_type != "1" || _arrScar.scar_type != "9"){
1558						$(div_id).html(dollar_sign + formatNumber(_arrScar.sub_total));
1559					}
1560                    /**/
1561					if( _arrScar.scar_type == "0" ){
1562						var sb_count = _arrScar.scar_count;
1563					}
1564                    /**/
1565					if( _arrScar.scar_type == "2" ){
1566						var div_type2_id = "#it45_count_" + _arrScar.uid;
1567						$(div_type2_id).attr('max_count', sb_count);
1568                        $(div_type2_id).val(_arrScar.scar_count);
1569					}
1570                    /**/
1571                    if( _arrScar.scar_type == "1" ){
1572					    var div_type1_id = "#it45_type1_count_" + _arrScar.uid;
1573                        $(div_type1_id).html("X " + _arrScar.scar_count);
1574                    }
1575					/**/
1576					if(prod_type_total_count[_arrScar.prod_type] > 0) {
1577						prod_type_total_count[_arrScar.prod_type] += parseInt(_arrScar.scar_count);
1578					} else {
1579						prod_type_total_count[_arrScar.prod_type] = parseInt(_arrScar.scar_count);
1580					}
1581					/**/
1582					prod_total_count += parseInt(_arrScar.scar_count);
1583
1584					/**/
1585					for( var j = 0; j < _arrScar.wmkt_55.length; j ++) {
1586						var wmkt_55_id  = "#wmkt55_" + _arrScar.wmkt_55[j] + "_" + _arrScar.uid;
1587						$(wmkt_55_id).html("已符合"); /* 已符合 */
1588                        $(wmkt_55_id).removeClass('box_style_03').addClass('box_style_02');
1589					}
1590
1591					/**/
1592					for( var v = 0; v < _arrScar.freeEvent.length; v ++){
1593						var event_id = "#prod_evt_" + _arrScar.freeEvent[v].webdvr_evt_uid + "_" + _arrScar.uid;
1594
1595						if(_arrScar.freeEvent[v].is_match == '1'){
1596                            $(event_id).html("已符合"); /* 已符合 */
1597                            $(event_id).removeClass('box_style_03').addClass('box_style_02');
1598						}
1599					}
1600					
1601				}else{
1602					var div_id = "#it45_item_" + _arrScar.uid;
1603					if( $(div_id).length ){
1604						$(div_id).hide();
1605					}
1606				}
1607
1608				if(pickup_max_rule){
1609                    $("#arrProd_"+_arrScar.prod_uid).val(sb_count);
1610					query_prod_pickupmax(_arrScar.prod_no_old+'@_@'+sb_count, 'N')
1611				}
1612			}
1613
1614			/* 溫層總數量 */
1615			$.each(prod_type_total_count,function(prod_type,count){
1616				$('#subCountType'+prod_type).html(count);
1617			});
1618
1619			/* 商品總數量 */
1620			$('#it45_prodTotal').html(prod_total_count);
1621
1622			/* 取得購物車總價 & 各溫層總價 */
1623			it45_getTotal();
1624
1625			/* 版頭重整 */
1626			top_refresh();
1627		}else{
1628			/**/
1629			alert( '頁面過期,請重新整理! ( ' + _return.error + ' )' );
1630            location.reload();
1631        }
1632	}
1633
1634	/* 刪除DB商品 */
1635	function it45_removeScar(uid)
1636	{
1637		if(pickup_max_rule){
1638	        $.ajax({
1639	            url : "https://www.kelijia.tw/kelijia/api/api.shopping_cart.php",
1640	            async : false,
1641	            type : 'POST',
1642	            data_type : 'json',
1643	            data : {
1644	                myAct : "getScartProdByUid",
1645	                uid : uid,
1646					nti_JUFBJUI1JUFDJUIwJUJFJUFFJTgwJTgxJUI5JUJDJUFBJUFEJUFEJUIyJUIwJTdFJUJCJUIyJUFDJUJEJUIxJUI5JUIzJUFBJUI3eQ : 'MTc5MTQ1Nzg0ODhYMXpOdnNERGFEeElHUEN4aVpGdXJqYlN1c1BiQ2Fm'
1647				},success : function(_jsonStr){
1648	        		var _return =  JSON.parse(_jsonStr);
1649
1650					if(err_gender.indexOf(_return.content.prod_uid) > '-1'){
1651						err_gender.splice(err_gender.indexOf(_return.content.prod_uid), 1);
1652					}
1653
1654					if(err_gender.length == "0") $("form[name='it45_formA']").attr("onsubmit", "return check_submit();");
1655
1656					$("#arrProd_"+_return.content.prod_uid).remove();
1657				}
1658			});
1659		}
1660
1661		$.ajax({
1662			url : "https://www.kelijia.tw/kelijia/api/api.shopping_cart.php",
1663			async : false,
1664			type : 'POST',
1665			data_type : 'json',
1666			data : {
1667				myAct : "removeScarByUid",
1668				uid : uid,
1669                nti_JUFBJUI1JUFDJUIwJUJFJUFFJTgwJTgxJUI5JUJDJUFBJUFEJUFEJUIyJUIwJTdFJUJCJUIyJUFDJUJEJUIxJUI5JUIzJUFBJUI3eQ : 'MTc5MTQ1Nzg0ODhYMXpOdnNERGFEeElHUEN4aVpGdXJqYlN1c1BiQ2Fm'
1670			},
1671			success : function(_jsonStr){
1672				it45_removeScarRequest(_jsonStr);
1673                if (typeof(ga_addToCartDel) == 'function') {
1674                    ga_addToCartDel(uid);
1675                }
1676			}
1677		});
1678	}
1679
1680	/* 刪除商品後,相關頁面配置 */
1681	function it45_removeScarRequest(_jsonStr)
1682	{
1683        /* 先把所有分類滿額設為未符合 */
1684        $('.i_check_match_wmkt55').each(function() {
1685            $(this).html("未符合"); /* 未符合 */
1686            $(this).removeClass('box_style_02').addClass('box_style_03');
1687        });
1688
1689        /* 更新後購物車內容 */
1690		var _return =  JSON.parse(_jsonStr);
1691		if( _return.error == 'C00' ){
1692			var arrScarGroupNo = _return.content;
1693			var prod_total_count = 0;
1694			var prod_type_total_count = [];
1695			/**/
1696			for( var i = 0 ; i < arrScarGroupNo.length ; i++ ){
1697				var _arrScar = arrScarGroupNo[i];
1698				if( _arrScar.status == "0" ){
1699					var div_id = "#it45_item_" + _arrScar.uid;
1700					if( $(div_id).length ){
1701						$(div_id).hide();
1702					}
1703				} else {
1704					/* 計算溫層總數量 */
1705					if(prod_type_total_count[_arrScar.prod_type] > 0) {
1706						prod_type_total_count[_arrScar.prod_type] += parseInt(_arrScar.scar_count);
1707					} else {
1708						prod_type_total_count[_arrScar.prod_type] = parseInt(_arrScar.scar_count);
1709					}
1710					/* 計算總商品數 */
1711					prod_total_count += parseInt(_arrScar.scar_count);
1712
1713                    /**/
1714                    for( var j = 0; j < _arrScar.wmkt_55.length; j ++) {
1715                        var wmkt_55_id  = "#wmkt55_" + _arrScar.wmkt_55[j] + "_" + _arrScar.uid;
1716                        $(wmkt_55_id).html("已符合"); /* 已符合 */
1717                        $(wmkt_55_id).removeClass('box_style_03').addClass('box_style_02');
1718                    }
1719				}
1720			}
1721						/* 取得現有 prod_type */
1722			var ori_arr_prod_type = get_exist_prod_type();
1723			$.each(prod_type_total_count,function(prod_type, count){
1724				$('#subCountType'+prod_type).html(count);
1725				/* prod_type 已不存在 */
1726				var index = ori_arr_prod_type.indexOf(prod_type);
1727				if (index > -1) {
1728					ori_arr_prod_type.splice(index, 1);
1729				}
1730			});
1731			/* prod_type 已不存在 */
1732			$.each(ori_arr_prod_type, function(index, prod_type){
1733				$('#clean_box_type'+prod_type).hide();
1734			});
1735
1736			/* 商品總數量 */
1737			$('#it45_prodTotal').html(prod_total_count);
1738
1739			if (prod_total_count == 0) {
1740				$('.i-shoppinglist-title').hide();
1741				$('.i-shoppinglist-content').show();
1742			}
1743
1744			/* 取得購物車總價 & 各溫層總價 */
1745			it45_getTotal();
1746
1747			/* 版頭重整 */
1748			top_refresh();
1749		}else{
1750			/* 頁面過期,請重新整理! */
1751			alert( '頁面過期,請重新整理! ( ' + _return.error + ' )' );
1752            location.reload();
1753        }
1754	}
1755
1756    /* 取得現有 prod_type */
1757	function get_exist_prod_type() {
1758		var arr_prod_type_list = [];
1759		$.each($('div[id*="clean_box_type"]'), function(index, item){
1760			var temp_prod_type = $(item).attr('id').split('type');
1761			arr_prod_type_list.push(parseInt(temp_prod_type[1]));
1762		});
1763		return arr_prod_type_list;
1764	}
1765
1766	function pre_prod_no(check_info, show_all_info)
1767	{
1768        var barcodes = [];
1769
1770	    $(".arrProd").each(function(){
1771            barcodes.push({"barcode": $(this).data('prod_no_old'), "qty": parseInt($(this).val())});
1772     	});
1773
1774        query_prod_pickupmax(barcodes, 'N', check_info, show_all_info);
1775	}
1776
1777	/* 查詢商品最大提領量 */
1778	function query_prod_pickupmax(prod_data, show_alert, check_info, show_all_info)
1779	{
1780	    var barcodes = [];
1781
1782        var getGroup = (show_all_info) ? true : (check_info ? true : false);
1783
1784	    var a = (prod_data.indexOf('@_@') > 0) ? prod_data.split('@_@') : "";
1785
1786	    if(a.length){
1787	        barcodes.push({"barcode": a[0], "qty": a[1]});
1788
1789	    }else if(prod_data){
1790	        barcodes = prod_data;
1791			if(getGroup == false)$('.maximize_name').hide();
1792        }
1793
1794        var obj_data = {
1795            "web_uid": "1174",
1796			"mem_uid": "",
1797			"getGroup": getGroup,
1798			"barcodes": barcodes
1799        };
1800
1801        show_alert = (show_alert == 'N') ? false : true;
1802
1803		$.ajax({
1804			url: "https://www.kelijia.tw/kelijia/api/api.app_product.php",
1805			async: false,
1806			type: 'POST',
1807			data_type: 'json',
1808			data: {
1809                action: "PRODUCT_PICKUP_MAX",
1810                apikey: "316E6D71AC9565BD18B6E93EA50C64B8",
1811				data: JSON.stringify(obj_data)
1812			},
1813			success:function(_jsonStr){
1814                var rs_msg = "";
1815
1816                if(show_all_info) {
1817                    var htm_str = "";
1818                    htm_str += "<div class='title'>最大提領量</div>";
1819                    htm_str += "<div class='list'>";
1820                    htm_str += "<ul class='tab_title clearfix'>";
1821                    htm_str += "<li>群組名稱</li>";
1822                    htm_str += "<li><span>最大</span>提貨量</li>";
1823                    htm_str += "<li><span>限制</span>購買身分</li>";
1824                    htm_str += "</ul>";
1825                    htm_str += "<div class='list_box'>";
1826                }
1827
1828				if(_jsonStr.LIST !== undefined){
1829                    if(_jsonStr.LIST.length > 0){
1830                        for(i = 0; i < _jsonStr.LIST.length; i ++){
1831                            var sort_item = _jsonStr.LIST[i];
1832
1833                            if(check_info){
1834                                if("" != sort_item.group_type && sort_item.group_gender != "無限制"){
1835                                    if(rs_msg.length > 0) rs_msg += "\r\n";
1836                                    if(err_gender_msg.length > 0) err_gender_msg += "\r\n";
1837
1838                                    if($.inArray(sort_item.prod_uid, err_gender) == '-1'){
1839                                        err_gender.push(sort_item.prod_uid);
1840                                    }
1841
1842                                    err_gender_msg += "您所購買的【" + sort_item.prod_name + "】不屬於您的性別群組,請刪除商品。";
1843
1844                                    rs_msg += "您所購買的【" + sort_item.prod_name + "】不屬於您的性別群組,請刪除商品。";
1845                                }
1846
1847                                if (sort_item.group_flag == false){
1848                                    if(err_pickupmax_msg.length > 0) err_pickupmax_msg += "\r\n";
1849
1850                                    err_pickupmax_msg += "您的【" + sort_item.group_name + "】群組已超過最大提領量:" + sort_item.group_left + ",請修改商品數量。";
1851                                }
1852                            }else{
1853                                if(rs_msg.length > 0) rs_msg += "\r\n";
1854
1855                                rs_msg += sort_item.group_name + "群組最大提領量為:" + sort_item.group_pickup_max + "。";
1856                            }
1857
1858                            if(show_all_info){
1859                                /* 一組 */
1860                                htm_str += "<ul class='text clearfix'>";
1861                                htm_str += "<li>" + sort_item.group_name + "</li>";
1862                                htm_str += "<li>" + sort_item.group_left + "</li>";
1863                                htm_str += "<li>" + sort_item.group_gender + "</li>";
1864                                htm_str += "</ul>";
1865                                /* 一組 */
1866                            }else{
1867                                if(sort_item.group_name){
1868                                    $('#pickup_group_name_'+sort_item.prod_uid).html(sort_item.group_name).show();
1869                                    $('#pickup_group_left_'+sort_item.prod_uid).html(sort_item.group_left);
1870                                    $('#pickup_group_gender_'+sort_item.prod_uid).html(sort_item.group_gender);
1871                                }else{
1872                                    $('#pickup_group_name_'+sort_item.prod_uid).hide();
1873                                }
1874                        	}
1875                        }
1876				    }
1877				}else{
1878                    if(show_all_info) {
1879                        htm_str += "<ul class='text clearfix'>";
1880                        htm_str += "<li style='width: 100%;'>";
1881                        htm_str += "購物車中沒有最大提領量限制商品!</a>";
1882                    	htm_str += "</li>";
1883                        htm_str += "</ul>";
1884                    }
1885				}
1886
1887                if(show_all_info){
1888                    htm_str += "</div>";
1889                    htm_str += "</div>";
1890
1891                    $("#detail_box_all").html(htm_str);
1892                }
1893
1894                if(rs_msg.length > 0 && show_alert) {
1895			        alert(rs_msg);
1896                }
1897
1898                if(err_gender.length) $("form[name='it45_formA']").attr("onsubmit", "return check_submit();");
1899			}
1900		});
1901	}
1902
1903	function check_submit(rs)
1904	{
1905		if(pickup_max_rule){
1906	        err_gender_msg = "";
1907	        err_pickupmax_msg = "";
1908		    pre_prod_no(true);
1909
1910	        if(err_gender_msg){
1911	            alert(err_gender_msg);
1912	            return false;
1913	    	}
1914	    	if(err_pickupmax_msg){
1915	        	alert(err_pickupmax_msg);
1916	            return false;
1917	        }
1918		}
1919
1920        var agree_return_notes = $('input[name="agree_return_notes"]:checked').val();
1921		if (agree_return_notes == 'disagree') {
1922            alert('請同意退換貨說明');
1923            return false;
1924		}
1925	}
1926
1927	function it45_formASubmit()
1928    {
1929        $("form[name='it45_formA']").submit();
1930    }
1931
1932	function checkProdLimitBuy()
1933	{
1934		var is_error = false;
1935
1936		$.ajax({
1937			url : "https://www.kelijia.tw/kelijia/api/api.shopping_cart.php",
1938			async : false,
1939			type : 'POST',
1940			data_type : 'json',
1941			data : {
1942				myAct : "checkProdLimitBuy",
1943				scar_no: "",
1944				mem_uid: "",
1945				nti_JUFBJUI1JUFDJUIwJUJFJUFFJTgwJTgxJUI5JUJDJUFBJUFEJUFEJUIyJUIwJTdFJUJCJUIyJUFDJUJEJUIxJUI5JUIzJUFBJUI3eQ : 'MTc5MTQ1Nzg0ODhYMXpOdnNERGFEeElHUEN4aVpGdXJqYlN1c1BiQ2Fm'
1946			},
1947			success : function(rs){
1948				if(rs != "C00"){
1949					alert(rs);
1950                    is_error = true;
1951				}
1952			}
1953		});
1954
1955		return is_error;
1956	}
1957
1958$(document).ready(function() {
1959    $("#it45_gotopay").fancybox({ helpers: { title: null}, maxWidth	: 310, maxHeight : 100, fitToView : false, width : '90%', height : '90%', autoSize : false, closeClick	: false, openEffect	: 'none', closeEffect	: 'none' });
1960});
1961</script>
1961
1962<!-- script END -->    					<!---->
1963		<!---->
1964
1965	<!---->
1966	
1967
1968	<!---->
1969				
1970		
1971
1972
1973
1974	
1975</div>
1976<!---->
1977<!---->
1978
1979</div>            <!---->
1980        </div>
1981
1982        
1983                  <div class="FOR_FOOTER">
1984                      <!-- 電腦版公版 START -->
1985        <div class="joo_normal_cr">
1986            <div class="joo_menu clearfix">
1987                <div class="joo_menu_in menu_main">
1988                    <h5>關於我們</h5>
1989                    <ul>
1990                        <li><a href="index.php?action=about" title="品牌故事">品牌故事</a></li>
1991                        <li><a href="index.php?action=news" title="最新消息">最新消息</a></li>
1992                        <li><a href="index.php?action=faq_0" title="常見問題">常見問題</a></li>
1993                        <li><a href="index.php?action=contact" title="聯絡我們">聯絡我們</a></li>
1994                    </ul>
1995                </div>
1996                <div class="joo_menu_in menu_member">
1997                    <h5>會員中心</h5>
1998                    <ul>
1999                        <li><a href="https://www.joo.com.tw/kelijia/index.php?action=order_inquiry" title="訂單查詢">訂單查詢</a></li>
2000                        <li><a href="https://www.joo.com.tw/kelijia/index.php?action=member_edit" title="修改會員資料">修改會員資料</a></li>
2001                        <li><a href="https://www.joo.com.tw/kelijia/index.php?action=member_into_00" title="會員註冊">會員註冊</a></li>
2002                        <li><a href="https://www.joo.com.tw/kelijia/index.php?action=member_lostpw" title="忘記密碼">忘記密碼</a></li>
2003                    </ul>
2004                </div>
2005                <div class="joo_menu_in menu_sort">
2006                    <h5>商品分類</h5>
2007                    <ul>
2008                        
2009                                            </ul>
2010                </div>
2011                <div class="joo_bottom_btn">
2012                    <ul class="clearfix">
2013                        <li>
2014                            <a href="index.php?forceDevice=mobile" title="切換手機版">
2015                                <svg class="icon-bottom_phone" xmlns="http://www.w3.org/2000/svg"><use xlink:href="https://www.kelijia.tw/kelijia/images/sprite0518.svg#icon-bottom_mobile"></use></svg>
2016                            </a>
2017                        </li>
2018                        <li>
2019                            <a href="index.php?action=contact" title="聯絡我們">
2020                                <svg class="icon-bottom_email" xmlns="http://www.w3.org/2000/svg"><use xlink:href="https://www.kelijia.tw/kelijia/images/sprite0518.svg#icon-bottom_mail"></use></svg>
2021                            </a>
2022                        </li>
2023                                                <li>
2024                            <a href="https://www.facebook.com/KELIJIA062983518" title="Facebook粉絲專頁">
2025                                <svg class="icon-bottom_fb" xmlns="http://www.w3.org/2000/svg"><use xlink:href="https://www.kelijia.tw/kelijia/images/sprite0518.svg#icon-bottom_fb"></use></svg>
2026                            </a>
2027                        </li>
2028                                                                        <li>
2029                            <a href="https://lin.ee/zxb7x8Q" title="Line" target="_blank">
2030                                <svg class="icon-bottom_line" xmlns="http://www.w3.org/2000/svg"><use xlink:href="https://www.kelijia.tw/kelijia/images/sprite0518.svg#icon-bottom_line"></use></svg>
2031                            </a>
2032                        </li>
2033                                                                    </ul>
2034                </div>
2035            </div>
2036        </div>
2037        <div class="joo_normal_cr2">可立嘉嫩骨版權所有 © copyright Reserved.</div>
2038        <!-- 電腦版公版 END -->
2039              </div>
2040            </div>
2041
2042    <!---->
2043    
2044
2045<script>
2046    // 允許的 iframe 來源
2047    allow_iframe_src = ['www.google.com'];
2048    $(document).ready(function(){$("iframe").each(function(t){var e=$(this).attr("src")||"";allow_iframe_src.some(t=>-1!==e.indexOf(t))&&($(this).removeAttr("sandbox"),$(this).attr("src",$(this).attr("src")+"?t="+(new Date).getTime()))})});
2049</script>
2049
2050
2051<script language="javascript">
2052/**
2053 * date input format checker.
2054 */
2055function dateCheckerKeyIn (dateInput, event, ShoppingScar) {
2056	ShoppingScar = ShoppingScar || null;
2057	var memBirthday = $(dateInput).val();
2058	var lastKeyIn = event.which;
2059	/* console.log(lastKeyIn)*/
2060	if (lastKeyIn == 8 || lastKeyIn == 37 || lastKeyIn == 38 || lastKeyIn == 39 || lastKeyIn == 40 || lastKeyIn == 9) { /* permit keyin but do nothing.*/
2061		return null;
2062	} else if (!((lastKeyIn >= 48 && lastKeyIn <= 57) || (lastKeyIn >= 96 && lastKeyIn <= 105)) && lastKeyIn != 190 && lastKeyIn != 191 && lastKeyIn != 173 && lastKeyIn != 111 && lastKeyIn != 109) { /* 不允許字元, back*/
2063		event.preventDefault ();
2064		/* console.log('bad char.')*/
2065		return null;
2066	}
2067
2068	if (!__dateChecker (dateInput, ShoppingScar)) {
2069		event.preventDefault ();
2070	}
2071
2072}
2073
2074/**
2075 * date format checker
2076 */
2077function __dateChecker (dateInput, ShoppingScar) {
2078	ShoppingScar = ShoppingScar || null;
2079	var memBirthday = $(dateInput).val();
2080
2081	var nowD = new Date();
2082
2083	var memBirthdayY = memBirthday.split(/[-/]/)[0];
2084	var memBirthdayM = (memBirthday.split(/[-/]/)[1] == 'undefined') ? '' : memBirthday.split(/[-/]/)[1];
2085	var memBirthdayD = (memBirthday.split(/[-/]/)[2] == 'undefined') ? '' : memBirthday.split(/[-/]/)[2];
2086	if(ShoppingScar == null){
2087		/* console.log(memBirthdayY)*/
2088		if (memBirthdayY.length > 4 || (nowD.getYear() + 1900) < parseInt(memBirthdayY, 10)) {
2089			$(dateInput).val ('');
2090			/*console.log ('year fault.' + nowD.getYear())*/
2091			return false;
2092		} else if ( memBirthdayM.length >= 2 && (parseInt(memBirthdayM, 10) > 12 || parseInt(memBirthdayM, 10) < 1) ) {
2093			$(dateInput).val (memBirthday.substring(0, 5));
2094			/*console.log ('month fault.')*/
2095			return false;
2096		} else if ( memBirthdayD.length >= 2 && (parseInt(memBirthdayD, 10) > 31 || parseInt(memBirthdayD, 10) < 1) ) {
2097			$(dateInput).val (memBirthday.substring(0, 8));
2098			/*console.log ('day fault.')*/
2099			return false;
2100		} else if (memBirthday.length > 10) {
2101			$(dateInput).val (memBirthday.substring(0, memBirthday.length - 1));
2102			/*console.log('length fault.')*/
2103			return false;
2104		}
2105	}else{
2106
2107		if(memBirthday.length == 10){
2108			if(!isDate(dateInput, memBirthday)){
2109				return false;
2110			}
2111		}
2112		if(memBirthday.length > 10) {
2113			$(dateInput).val (memBirthday.substring(0, memBirthday.length - 1));
2114			return false;
2115		}
2116	}
2117	return true;
2118}
2119
2120function _openPageEditContent( _wpitem_uid )
2121{
2122	var open_uri = 'https://admin.joo.com.tw/kelijia/admweb/admweb.main.php?action=website_page_item_content' +
2123					'&wpitem_uid=' + _wpitem_uid;
2124
2125	var oOpenWindow = window.open(open_uri,
2126								'page_item_content',
2127								'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=780,height=580');
2128	oOpenWindow.focus();
2129}
2130
2131function _openPageEditWindow( open_uri )
2132{
2133	var oOpenWindow = window.open(open_uri,
2134								'page_edit',
2135								'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=780,height=580');
2136	oOpenWindow.focus();
2137}
2138
2139function _openImage( imgUri, imgPath ,imagewidth ,imageheight)
2140{
2141	imagewidth = imagewidth || 695;
2142	imageheight = imageheight || 695;
2143	if( !imgPath ) imgPath = '';
2144	var open_uri = 'https://www.kelijia.tw/kelijia/openwin/openwin.index.php?action=images' +
2145					'&imgUri=' + imgUri +
2146					'&imgPath=' + imgPath;
2147
2148	var oOpenWindow = window.open(open_uri,
2149								'openImage',
2150								'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,width='+imagewidth+',height='+imageheight );
2151	oOpenWindow.focus();
2152}
2153
2154function _openProductSort( jsAct, formName, elName, lang, _args )
2155{
2156	var open_uri = 'https://www.kelijia.tw/kelijia/openwin/openwin.index.php?action=product_sort' +
2157					'&jsAct=' + jsAct +
2158					'&form_name=' + formName +
2159					'&el_name=' + elName +
2160					'&openwin_lang=' + lang;
2161	if(_args)
2162		open_uri += _args;
2163
2164	var oOpenWindow = window.open(open_uri,
2165								'productSort',
2166								'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=600,height=300');
2167	oOpenWindow.focus();
2168}
2169
2170function _reloadAuthimgImg( imgId )
2171{
2172	var r = Math.round(Math.random()*9999);
2173	document.getElementById( imgId ).src = 'https://www.kelijia.tw/kelijia/images/authimg.php?' + r;
2174}
2175
2176/**/
2177/*var menu_move_x = 0; /**/
2178/*var menu_move_y = 0; /**/
2179var menuDivId;
2180var menuDivId_out;
2181var objMenuDiv;
2182var objMenuDiv_out;
2183var _isMenuDiv = 0;
2184
2185function showWebMenu( id ){
2186	menuDivId = 'div_webMenu_' + id;
2187	_isMenuDiv = 1;
2188
2189	objMenu = document.getElementById( 'webMenu_' + id );
2190	objMenuDiv = document.getElementById( menuDivId );
2191
2192	if( objMenuDiv ){
2193		graphics = ij_getXY(objMenu);
2194
2195		objMenuDiv.style.left = graphics[0] + menu_move_x + 'px';
2196		objMenuDiv.style.top = graphics[1] + menu_move_y + 'px';
2197
2198		ij_showDiv(menuDivId, true);
2199	}
2200
2201	if( objMenuDiv_out && menuDivId_out != menuDivId ){
2202		ij_showDiv(menuDivId_out, false);
2203	}
2204	menuDivId_out = null;
2205}
2206
2207function removeWebMenu( id, timeOut ){
2208	menuDivId_out = 'div_webMenu_' + id;
2209	objMenuDiv_out = document.getElementById( 'div_webMenu_' + id );
2210
2211	_isMenuDiv = 0;
2212	setTimeout( '_removeWebMenu()' ,timeOut);
2213}
2214
2215function _removeWebMenu(){
2216	if( !_isMenuDiv && objMenuDiv_out )
2217		ij_showDiv(menuDivId_out, false);
2218}
2219/**/
2220
2221String.prototype.trim = function() { return this.replace(/(^\s*)|(\s*$)/g, ""); };
2222function formatNumber(str) {
2223    str = str.trim();
2224    if(str.length <= 3){
2225        return str;
2226    }else{
2227        return formatNumber(str.substr(0,str.length-3))+','+str.substr(str.length-3);
2228    }
2229}
2230function RemoveStringComma(number) {
2231    var pos = number.indexOf(",");
2232    while (pos != -1) {
2233        number = number.substring(0, pos) + number.substring(pos + 1, number.length);
2234        pos = number.indexOf(",");
2235    }
2236    return number;
2237}
2238/* jquery = jQuery.noConflict(true);*/
2239$(document).ready(function(){
2240    /*
2241    $(".formatNumber").find("font").each(function(i){
2242	$(".formatNumber").each(function(i){
2243       var _num = $(this).html();
2244       $(this).html(formatNumber(_num));
2245    });
2246    */
2247
2248    $("textarea").keyup(function(event){
2249        var test =$(this).val();
2250
2251        if(! test.match(/^[^']{0,}$/)){
2252            $(this).val(test.replace(/[\u0027]+/ig,''));
2253        }
2254    });
2255
2256    /*
2257    $("input").keyup(function(event){
2258        var test =$(this).val();
2259        if(! test.match(/^[^']{0,}$/)){
2260            $(this).val(test.replace(/[\u0027]+/ig,''));
2261        }
2262     });
2263    */
2264    $(':input').on('input paste',function(){$(this).keyup();});
2265
2266    //nocsrf
2267   	var csrfToken = 'MTc5MTQ1Nzg0ODhYMXpOdnNERGFEeElHUEN4aVpGdXJqYlN1c1BiQ2Fm';
2268   	var csrfTokenInput = document.createElement("input");
2269   	$(csrfTokenInput).attr ('type', 'hidden').attr('name', '_csrf').val (csrfToken);
2270
2271   	$('form').each (function (index) {
2272   		$(this).append(csrfTokenInput);
2273   		//console.log($(this).serialize());
2274   });
2275
2276	/* 2019/11/26 把這段搬來裡面 否則這樣頁面有多個form 只有最後一個會加到csrf*/
2277	$('form').each (function (index) {
2278		   /* nocsrf */
2279		var csrfToken = 'MTc5MTQ1Nzg0ODhYMXpOdnNERGFEeElHUEN4aVpGdXJqYlN1c1BiQ2Fm';
2280		var csrfTokenInput = document.createElement("input");
2281		$(csrfTokenInput).attr ('type', 'hidden').attr('name', 'nti_JUFBJUI1JUFDJUIwJUJFJUFFJTgwJTgxJUI5JUJDJUFBJUFEJUFEJUIyJUIwJTdFJUJCJUIyJUFDJUJEJUIxJUI5JUIzJUFBJUI3eQ').val (csrfToken);
2282
2283   		$(this).append(csrfTokenInput);
2284   		/*console.log($(this).serialize());*/
2285   	});
2286
2287    // iframe加上sandbox屬性
2288    // if($(".card-number-group").length == 0){
2289    //     $('iframe').each (function (index) {
2290    //         $(this).attr("sandbox", "allow-same-origin");
2291    //     });
2292    // }
2293    $('iframe').each(function (index) {
2294        /* nocsrf */
2295        $(this).attr("sandbox", "allow-scripts allow-same-origin allow-presentation");
2296        $(this).attr("src", $(this).attr("src"));
2297    });
2298
2299	/*alert 主機 ip*/
2300	});
2301
2302function isDate(dateInput, dateStr) {
2303	var dateStr = $(dateInput).val();
2304    var datePat = /^(\d{4})(\/)(\d{1,2})(\/)(\d{1,2})$/;
2305    var matchArray = dateStr.match(datePat); /* is the format ok?*/
2306	var nowD = new Date();
2307	var keyD = new Date(dateStr);
2308	var weekend = keyD.getDay();
2309
2310    if(matchArray == null){
2311		$(dateInput).val('');
2312        return false;
2313    }
2314
2315    year = matchArray[1]; /* p@rse date into variables*/
2316    month = matchArray[3];
2317    day = matchArray[5];
2318
2319    if(month < 1 || month > 12){ /* check month range*/
2320        $(dateInput).val(dateStr.substring(0, 5));
2321        return false;
2322    }
2323
2324    if(day < 1 || day > 31){
2325        $(dateInput).val(dateStr.substring(0, 8));
2326        return false;
2327    }
2328
2329    if((month == 4 || month == 6 || month == 9 || month == 11) && day == 31){
2330        $(dateInput).val(dateStr.substring(0, 8));
2331        return false;
2332    }
2333
2334    if(month == 2){ /* check for february 29th*/
2335        var isleap = (year % 4 == 0 && (year % 100 != 0 || year % 400 == 0));
2336        if(day > 29 || (day == 29 && !isleap)){
2337            $(dateInput).val(dateStr.substring(0, 8));
2338            return false;
2339        }
2340    }
2341
2342    if(nowD.getTime() > keyD.getTime()){
2343		$(dateInput).val('');
2344		return false;
2345	}
2346	if(weekend == 0 || weekend == 6){
2347		$(dateInput).val(dateStr.substring(0, 8));
2348		return false;
2349	}
2350    return true; /* date is valid*/
2351}
2352
2353/*檢查身分證字號*/
2354function check_taiwan_ID( id ){
2355    tab = "ABCDEFGHJKLMNPQRSTUVXYWZIO"
2356    A1 = new Array (1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3 );
2357    A2 = new Array (0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5 );
2358    Mx = new Array (9,8,7,6,5,4,3,2,1,1);
2359
2360    if ( id.length != 10 ) return false;
2361    i = tab.indexOf( id.charAt(0) );
2362    if ( i == -1 ) return false;
2363    sum = A1[i] + A2[i]*9;
2364
2365    for ( i=1; i<10; i++ ) {
2366        v = parseInt( id.charAt(i) );
2367        if ( isNaN(v) ) return false;
2368        sum = sum + v * Mx[i];
2369    }
2370    if ( sum % 10 != 0 ) return false;
2371    return true;
2372}
2373
2374/*檢查居留證號碼*/
2375function check_resident_ID( id ) {
2376
2377    studIdNumber = id
2378
2379    /*格式,用正則表示式比對第一個字母是否為英文字母*/
2380    if(isNaN(studIdNumber.substr(2,8)) || 
2381            (!/^[A-Z]$/.test(studIdNumber.substr(0,1))) || 
2382                (!/^[A-Z]$/.test(studIdNumber.substr(1,1)))){
2383        /*alert("居留證號碼格式錯誤");*/
2384        return false;
2385    }
2386
2387    var idHeader = "ABCDEFGHJKLMNPQRSTUVXYWZIO"; /*按照轉換後權數的大小進行排序*/
2388    /*這邊把身分證字號轉換成準備要對應的*/
2389    studIdNumber = (idHeader.indexOf(studIdNumber.substring(0,1))+10) + 
2390    '' + ((idHeader.indexOf(studIdNumber.substr(1,1))+10) % 10) + '' + studIdNumber.substr(2,8);
2391    /*開始進行身分證數字的相乘與累加,依照順序乘上1987654321*/
2392
2393    s = parseInt(studIdNumber.substr(0,1)) + 
2394    parseInt(studIdNumber.substr(1,1)) * 9 + 
2395    parseInt(studIdNumber.substr(2,1)) * 8 + 
2396    parseInt(studIdNumber.substr(3,1)) * 7 + 
2397    parseInt(studIdNumber.substr(4,1)) * 6 + 
2398    parseInt(studIdNumber.substr(5,1)) * 5 + 
2399    parseInt(studIdNumber.substr(6,1)) * 4 + 
2400    parseInt(studIdNumber.substr(7,1)) * 3 + 
2401    parseInt(studIdNumber.substr(8,1)) * 2 + 
2402    parseInt(studIdNumber.substr(9,1));
2403
2404    /*檢查號碼 = 10 - 相乘後個位數相加總和之尾數。*/
2405    checkNum = parseInt(studIdNumber.substr(10,1));
2406    /*模數 - 總和/模數(10)之餘數若等於第九碼的檢查碼,則驗證成功*/
2407    /*若餘數為0,檢查碼就是0*/
2408    if((s % 10) == 0 || (10 - s % 10) == checkNum){
2409        return true;
2410    }
2411    else{
2412        return false;
2413    }
2414}
2415
2416/*檢查統編*/
2417function isValidGUI(taxId) {
2418    var invalidList = "00000000,11111111";
2419    if (/^\d{8}$/.test(taxId) == false || invalidList.indexOf(taxId) != -1) {
2420        return false;
2421    }
2422
2423    var validateOperator = [1, 2, 1, 2, 1, 2, 4, 1],
2424        sum = 0,
2425        calculate = function(product) { /* 個位數 + 十位數*/
2426            var ones = product % 10,
2427                tens = (product - ones) / 10;
2428            return ones + tens;
2429        };
2430    for (var i = 0; i < validateOperator.length; i++) {
2431        sum += calculate(taxId[i] * validateOperator[i]);
2432    }
2433
2434    return sum % 5 == 0 || (taxId[6] == "7" && (sum + 1) % 5 == 0);
2435}
2436
2437function setCookie(cname, cvalue, exdays) {
2438    var d = new Date();
2439    d.setTime(d.getTime() + (exdays*24*60*60*1000));
2440    var expires = "expires="+ d.toUTCString();
2441    document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/";
2442}
2443</script>
2443
2444
2445<!--  -->
2446
2447
2448
2449<!---->
2450<!---->
2451
2452
2453<!---->
2454<!---->
2455
2456�
2457<!---->
2458
2459<!---->
2460
2461
2462    <!-- 個資聲明 -->
2463    <div class="personal_statement" style="display: none; z-index: 99999;">
2464        本網站使用您的Cookie於優化網站及您的購物經驗。繼續瀏覽網站即表示您同意本公司隱私權政策,您可至隱私權政策了解詳細資訊。
2465        <div class="btn_personal_box">
2466            <button class="btn_personal_statement" name="personal_statement" type="button" onclick="setPersonalStatement();">
2467                我同意            </button>
2468        </div>
2469    </div>
2470    
2470<script>
2471        function setPersonalStatement() {
2472            setCookie('personal_statement', 1, 365);    /*a year*/
2473            $(".personal_statement").hide();
2474        }
2475
2476        function parseCookie() {
2477            var cookieObj = {};
2478            var cookieAry = document.cookie.split(';');
2479            var cookie;
2480
2481            for (var i=0, l=cookieAry.length; i<l; ++i) {
2482                cookie = jQuery.trim(cookieAry[i]);
2483                cookie = cookie.split('=');
2484                cookieObj[cookie[0]] = cookie[1];
2485            }
2486
2487            return cookieObj;
2488        }
2489
2490        function getCookieByName(name) {
2491            var value = parseCookie()[name];
2492            if (value) {
2493                value = decodeURIComponent(value);
2494            }
2495
2496            return value;
2497        }
2498        if (!getCookieByName('personal_statement')) {
2499            $(".personal_statement").show();
2500        }
2501    </script>
2501
2502    <!-- 個資聲明 END -->
2503
2504<script src="./javascripts/jquery.lazyload.js"></script>
2504
2505
2506<style>
2507	.before_slide_lazy.lazy{
2508		display: none !important;
2509	}
2510</style>
2511
2512<script>
2513	function lazyload2(L){
2514        $("img.lazy").each(function(){
2515            if ($(this).parents('.slides').length || $(this).parents('.slides_lazy').length) {
2516				$(this).addClass('before_slide_lazy');
2517            } else {
2518                if (($(window).scrollTop() + window.innerHeight >= $(this).offset().top &&
2519                        $(window).scrollTop() + window.innerHeight <= $(this).offset().top + $(this).outerHeight()) ||
2520                    ($(window).scrollTop() <= $(this).offset().top + $(this).outerHeight()
2521                        && $(window).scrollTop() >= $(this).offset().top) ||
2522                    ($(window).scrollTop() <= $(this).offset().top &&
2523                        $(window).scrollTop() + window.innerHeight >= $(this).offset().top + $(this).outerHeight())) {
2524                    if ($(this).attr('data-original') != $(this).attr('src')) {
2525                        deferred_load = $.Deferred();
2526                        $(this).attr('src', $(this).attr('data-original'));
2527                        $(this).removeClass('lazy');
2528                        deferred_load.resolve();
2529                        $.when(deferred_load).done(function(){
2530                            if (typeof (L) == "function")
2531                                L();
2532                        });
2533                    }
2534                }
2535            }
2536        });
2537    }
2538
2539    $(function(){
2540/*
2541		$("img").addClass('lazy');
2542       	$("img").each(function(){
2543           $(this).attr('data-original',$(this).attr('src'))
2544       	});
2545       	$("img").removeAttr('src');
2546*/
2547        var deferred_lazyload = $.Deferred();
2548        lazyload2();
2549        deferred_lazyload.resolve();
2550
2551        $(window).scroll(function(){
2552            lazyload2();
2553        });
2554
2555        /*必須等輪播之外的圖片已經載入圖片後才載入,這樣才不會造成螢幕內灰圖*/
2556        $.when(deferred_lazyload).done(function(){
2557            /*輪播圖片如果使用slide動畫而非fade,會與lazyload會有衝突(直接出現在螢幕上的圖片必須滾動後才會載入),必須先將輪播圖片全部載好後再啟動輪播*/
2558            /*直接將屬性data-original置換src載入就不會有短暫灰圖的問題*/
2559            $("ul.slides").find("img.lazy").each(function(){
2560                $(this).attr('src',$(this).attr('data-original'));
2561                $(this).removeClass('before_slide_lazy');
2562                $(this).removeClass('lazy');
2563            });
2564            $(".slides_lazy").find("img.lazy").each(function(){
2565                $(this).attr('src',$(this).attr('data-original'));
2566                $(this).removeClass('before_slide_lazy');
2567                $(this).removeClass('lazy');
2568            });
2569        });
2570
2571        $("img.lazy").show().lazyload({effect : "fadeIn", failure_limit : 20 ,threshold:$(window).height(),skip_invisible:false});
2572		/*加入threshold為視窗高度,以免一開始沒load圖*/
2573
2574		$(document).imagesLoaded(function(){ /*圖片出現後*/
2575			$("img.lazy").each(function(){
2576				$(this).lazyload();
2577			});
2578		});
2579    });
2580</script>
2580
2581
2582<!-- Live Chat Widget powered by https://keyreply.com/chat/ -->
2583<!-- Advanced options: -->
2584<!-- data-align="left" -->
2585<!-- data-overlay="true" -->
2586
2587<script>
2588    var u = navigator.userAgent;
2589	if (QueryString('action') == 'member_login') {
2590        var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; /*android终端*/
2591        var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); /*ios终端*/
2592        if (isAndroid) {
2593            token = window.JavaScriptInterface.fetchFirebaseToken();
2594            token = token.split(' from Java side')[0];
2595            html = '<input type="hidden" name="token" value="'+token+'"/>'+
2596                '<input type="hidden" name="device" value="android"/> ';
2597
2598            $("#login_account").after(html);
2599/*            window.stop();*/
2600/*            window.JavaScriptInterface.login();*/
2601        } else if (isiOS) {
2602            window.webkit.messageHandlers.fetchFirebaseToken.postMessage(null);
2603/*            window.stop();*/
2604/*            window.webkit.messageHandlers.login.postMessage(null)*/
2605        }
2606    }
2607
2608
2609    function getiOSToken(token) {
2610	    html = '<input type="hidden" name="token" value="'+token+'"/>'+
2611			    '<input type="hidden" name="device" value="ios"/> ';
2612
2613		$("#login_account").after(html);
2614    }
2615
2616    /*取得get值*/
2617    function QueryString(name)
2618    {
2619        var AllVars = window.location.search.substring(1);
2620        var Vars = AllVars.split("&");
2621        for (i = 0; i < Vars.length; i++)
2622        {
2623            var Var = Vars[i].split("=");
2624            if (Var[0] == name) return Var[1];
2625        }
2626        return "";
2627    }
2628</script>
2628
2629
2630<!---->
2631
2632    
2633<!---->
2634<!---->
2635<!---->
2636<!---->
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649<script>
2650    //prod_temp fancybox
2651    $(function(){
2652        if ($("a.cart_light_box").length) {
2653            let prod_temp_lightbox_width = '' ? 250 : 600;
2654            $("a.cart_light_box").fancybox({
2655                width	    : prod_temp_lightbox_width,
2656                fitToView	: false,
2657                autoSize	: false,
2658                title		: false
2659            });
2660        }
2661
2662        if ($("a.addcart_btn").length) {
2663            $("a.addcart_btn").fancybox({
2664                width	    : "80%",
2665                fitToView	: false,
2666                autoSize	: false,
2667                title		: false
2668            });
2669        }
2670
2671        if ($("a.promate_cart").length) {
2672            $("a.promate_cart").fancybox({
2673                width	    : 600,
2674                height      : "auto",
2675                fitToView	: false,
2676                autoSize	: false,
2677                title		: false
2678            });
2679        }
2680    });
2681
2682    //會員登入
2683    function mem_login() {
2684        //請先登入會員!
2685        if (confirm('請先登入會員!')) {
2686            window.location = 'https://www.kelijia.tw/kelijia/index.php?action=member_login&b_action=shopping_cart&r_byeurl=kelijia&logout=1';
2687        } else {
2688            return false;
2689        }
2690    }
2691
2692    function scart_num_refresh() {
2693        $.ajax({
2694            url: "/kelijia/api/api.shopping_cart.php",
2695            type: "POST",
2696            dataType: "json",
2697            data: {
2698                myAct:"getCartNumber",
2699                [csrf_key]: csrf_val
2700            },
2701            success: function(Jdata){
2702                if( Jdata.error == 'C00' ){
2703                    var count = 0;
2704                    $.each(Jdata.content, function(key, value) {
2705                        count = count + parseInt(value['scar_count']);
2706                    });
2707                    $('.Cart_Total').html(count);
2708                }
2709            }
2710        });
2711    }
2712    if (typeof top_refresh !== 'function') {
2713        scart_num_refresh();
2714    }
2715
2716    function removeScarByWeb(web_byeurl) {
2717        $.ajax({
2718            url: "/kelijia/api/api.shopping_cart.php",
2719            type: "POST",
2720            dataType: "json",
2721            data: {
2722                myAct: "removeScarByWeb",
2723                web_byeurl: web_byeurl,
2724                [csrf_key]: csrf_val
2725            },
2726			success: function(Jdata){
2727				if( Jdata.error == 'C00' ){
2728                    if (typeof(it340_scart_refresh) == 'function') {
2729                        it340_scart_refresh();
2730                    } else {
2731                        top_refresh();
2732                    }
2733				}
2734			}
2735        });
2736    }
2737
2738    //商品列表加入購物車按鈕
2739    function goCart123_mask(form_no) {
2740        $.ajax({
2741            url: "api/api.shopping_cart.php",
2742            type: "POST",
2743            dataType: "json",
2744            data: {
2745                myAct: "check",
2746                [csrf_key]: csrf_val
2747            },
2748            success: function (Jdata) {
2749                if (Jdata.error == 'C00') {
2750                    $.ajax({
2751                        url: 'index.php?action=shopping_cart&web_cart_myAct=SHOPPING_CART&cart_add_from=prod_temp',
2752                        type: "POST",
2753                        dataType: "json",
2754                        data: 'myAct=ajaxadd&' + csrf_key + '=' + csrf_val + '&scar_count[]=1&prod_no[]=' + form_no,
2755                        success: function (response) {
2756                            if (response.error == 'C00') {
2757                                                                $('#addCartMask').delay(300).fadeIn(300).delay(300).fadeOut(800);
2758                                                                //FB Pixel 加入購物車
2759                                if (typeof(fb_AddToCart) == 'function') {
2760                                    fb_AddToCart(form_no, response.fbValue, response.fbContents);
2761                                }
2762                                // alert("已將商品加入購物車");
2763                                top_refresh(response.scar_no);
2764                                $('div.AF_RSides_cart').stop(true, true).animate({right: "0"}, "medium").delay(1000).animate({right: "-90"}, "medium");
2765                            } else if (response.error.indexOf('E') == 0) {
2766                                if (response.error == 'E03') {
2767                                    //alert(response.error + ': ' + response.err_alert);
2768                                    alert('此為會員限購商品,請先登入會員。');
2769                                    //window.top.location.href = response.backURL;
2770                                    window.location.href = "https://www.kelijia.tw/kelijia/index.php?action=member_login&b_action=shopping_cart";
2771                                } else if (response.error == 'E09') { //任選商品,導到詳細頁
2772                                    window.location.href = response.backURL;
2773                                } else if (response.error == 'E01' && 'joo'=='tylokah' ) { // tylokah 測試 test00
2774                                    alert(response.error + ': ' + response.err_alert);
2775                                    window.location.href = 'https://www.kelijia.tw/kelijia/index.php?action=member_login';
2776                                } else {
2777                                    alert(response.error + ': ' + response.err_alert);
2778                                }
2779                                
2780                            }
2781                        }
2782                    });
2783                }
2784            }
2785        });
2786    }
2787
2788    function closeBox_mask(prod_no)
2789    {
2790        goCart123_mask(prod_no);
2791        $(".fancybox-close").click(); //關閉 light box
2792    }
2793
2794    function goRfq_mask(prod_no){
2795		$.ajax({
2796		  url: "index.php?action=shopping_cart_rfq",
2797		  type: "POST",
2798		  dataType: "json",
2799		  data: {
2800              prod_no: prod_no,
2801              [csrf_key]: csrf_val
2802          },
2803          complete:function(){
2804              top_refresh();
2805          }
2806		//   success: function(Jdata){
2807		// 	if( Jdata.error == 'C00' ){
2808		// 		window.location.href = "https://www.kelijia.tw/kelijia/index.php?action=member_login&b_action=shopping_cart";
2809		// 	}
2810		//   }
2811		});
2812                $('#addRfqMask').delay(300).fadeIn(300).delay(300).fadeOut(800);
2813        		
2814	}
2815
2816	function goTrace(prod_uid, prod_no, prod_selling_price, ele, addClass) {
2817        if (mem_uid) {
2818            $.ajax({
2819                url:"https://www.kelijia.tw/kelijia/api/api.product_trace_list.php",
2820                type:"POST",
2821                dataType:"json",
2822                data:{
2823                    uid		: prod_uid,
2824                    myAct	: "add",
2825                    prod_no	: prod_no,
2826                    mem_uid	: mem_uid,
2827                    remove	: true
2828                },
2829                success: function(Jdata){
2830                    if (Jdata.error == 'C00') {
2831                        if (Jdata.status == "1") {
2832                            //FB Pixel 加到願望清單
2833                            if (typeof(fb_AddToWishlist) == 'function')
2834                                fb_AddToWishlist(prod_no, prod_selling_price);
2835
2836                            $(ele).addClass(addClass);
2837                            alert("追蹤清單新增成功");
2838                        } else {
2839                            $(ele).removeClass(addClass);
2840                        }
2841                    } else {
2842                        /**/
2843                        alert('頁面過期,請重新整理! ( ' + Jdata.error + ' )');
2844                    }
2845                }
2846            });
2847        } else {
2848            mem_login();
2849        }
2850    }
2851
2852    $(document).ready(function(){
2853
2854        $("#authimg_audio").on('click', async () => {
2855            
2856            // 發送驗證碼
2857            $.ajax({
2858                url:'api/api.ajax_get_authimg_str.php',
2859                type: 'POST',
2860                dataType: "json",
2861                async: false,
2862                data: {},
2863                success:function(rtn_data){
2864                    if (rtn_data.error == 'C00') {
2865                        var arr = [];
2866                        $.each(rtn_data.authimg_str,function(key,value){
2867                            arr.push('https://www.kelijia.tw/kelijia/assets/audio/numbers/'+value+'.mp3');
2868                        })
2869
2870                        var myAudio = new Audio(); 
2871                        myAudio.preload = true; 
2872                        myAudio.controls = true; 
2873                        myAudio.src = arr[0];         //每次讀數組最後一個元素 
2874                        arr.shift();
2875                        myAudio.addEventListener('ended', playEndedHandler, false); 
2876                        myAudio.play();  
2877                        myAudio.loop = false;//禁止循環,否則無法觸發ended事件 
2878                        function playEndedHandler(){ 
2879                            myAudio.src = arr[0]; 
2880                            arr.shift(); 
2881                            myAudio.play(); 
2882                            !arr.length && myAudio.removeEventListener('ended',playEndedHandler,false);//只有一個元素時解除綁定 
2883                        } 
2884                    }
2885                },
2886                error:function(){
2887                    str = '語音讀取失敗';
2888                }
2889            });
2890
2891        })
2892    });
2893</script>
2893    <!---->
2894
2895        
2896    
2897
2898</body>
2899</html>

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.