1/*! ISunfar 2015 v.1.0 2 * Copyright (c) 2015 cvufo 3 * E-mail:[email protected] 4 */ 5function getParameterByName(n) { 6 n = n.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]"); 7 var i = "[\\?&]" + n + "=([^&#]*)", 8 r = new RegExp(i), 9 t = r.exec(window.location.search); 10 return t == null ? "" : decodeURIComponent(t[1].replace(/\+/g, " ")) 11} 12 13function get_pic_url(n, t, i) { 14 if (t == '198001'){ 15 return "https://www.isunfar.com.tw/images/198001.jpg"; 16 } 17 18 if (t == '198002'){ 19 return "https://www.isunfar.com.tw/images/198002.jpg"; 20 } 21 22 if (t == '198003'){ 23 return "https://www.isunfar.com.tw/images/product/noimg/gift.jpg"; 24 } 25 26 if (t == '198004'){ 27 return "https://www.isunfar.com.tw/images/product/noimg/gift.jpg"; 28 } 29 30 if (t == '198005'){ 31 return "https://www.isunfar.com.tw/images/198005.jpg"; 32 } 33 34 if (t == '198007') { 35 return "https://www.isunfar.com.tw/images/198007.jpg"; 36 } 37 38 if (t == '198006' || t == '198008' || t == '198009' || t == '198010' || t == '198003'){ 39 return "https://www.isunfar.com.tw/images/product/noimg/gift.jpg"; 40 } 41 42 if (n == 'temp'){ 43 return `https://sunfar.blob.core.windows.net/webimage/temp/jpg${i}/${t}YF10.jpg`; 44 } 45 46 if (n == '' || n == null){ 47 if (i < 200) { 48 i = "200"; 49 } 50 return `/images/product/noimg/bg${i}.gif`; 51 } 52 53 if (n == "nogift"){ 54 return `/images/product/noimg/gift.jpg`; 55 } 56 57 if (t.substring(0, 3) === '300') { 58 let now = new Date(); 59 let yearMonth = `${now.getUTCFullYear()}${(now.getUTCMonth() + 1).toString().padStart(2, '0') }`; 60 return `https://sunfar.blob.core.windows.net/webimage/jpg${i}/${n.substring(0, 3)}/${yearMonth}/${n}`; 61 } 62 return `https://sunfar.blob.core.windows.net/webimage/jpg${i}/${n.substring(0,3)}/${n}`; 63} 64 65function stringfilter(n) { 66 return n.replace(/\+/g, "ï¼") 67 .replace(/\&/g, "ï¼") 68 .replace(/\//ig, "-") 69 .replace(/\"/ig, "å") 70 .replace(/\*/ig, "x") 71 .replace(/\./ig, ",") 72 .replace(/\#/ig, "-") 73 .replace(/\:/ig, "") 74 .replace(/\</ig, "") 75 .replace(/\>/ig, "") 76} 77 78function create_prodlist_json() { 79 $(".ptli").each(function () { 80 var n = $(this).parents(".rbc_item_bc").data("tbn"), 81 t = $(this).data("tpt"); 82 $.ajax({
83 type: "POST", 84 url: "/ashx/prodlist_pt.ashx", 85 data: { 86 bc_no: n, 87 ept: t 88 }, 89 dataType: "text" 90 }) 91 }) 92} 93Array.prototype.remove = function (n) { 94 this.splice(this.indexOf(n) == -1 ? this.length : this.indexOf(n), 1) 95}; 96Array.prototype.removeObj = function (n) { 97 var t = this; 98 $.each(t, function (i, r) { 99 if (r.ps.toString() == n) return t.splice(i, 1), !1 100 }) 101}; 102Array.prototype.indexOf || (Array.prototype.indexOf = function (n) { 103 var i = this.length >>> 0, 104 t = Number(arguments[1]) || 0; 105 for (t = t < 0 ? Math.ceil(t) : Math.floor(t), t < 0 && (t += i); t < i; t++) 106 if (t in this && this[t] === n) return t; 107 return -1 108}); 109Array.prototype.filter || (Array.prototype.filter = function (n, t) { 110 var r = this, 111 u = [], 112 i = 0, 113 f, e = r.length; 114 if (typeof n == "function") 115 while (i < e) i in r && (f = r[i], n.call(t, f, i, r) && (u[u.length] = f)), ++i; 116 return u 117}); 118var thousandComma = function (n) { 119 if (typeof n == "undefined") return n; 120 for (var t = n.toString(), i = /(-?\d+)(\d{3})/; i.test(t);) t = t.replace(i, "$1,$2"); 121 return t 122}, FormatNumber = function (n) { 123 if (typeof n == "undefined") return n; 124 for (var t = n.toString(), i = /(-?\d+)(\d{3})/; i.test(t);) t = t.replace(i, "$1,$2"); 125 return t 126};
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.