1/* ã«ãã´ãªæå®ãªã */ 2/* ãªã³ã©ã¤ã³äºç´(V) */ 3var getOnlineListL = function (_c_id, _exh, _id) { 4 getVGList(_c_id, 'L', 'HP', _exh, _id, ''); 5} 6var getOnlineListM = function (_c_id, _exh, _id) { 7 getVGList(_c_id, 'M', 'HP', _exh, _id, ''); 8} 9var getOnlineListS = function (_c_id, _exh, _id) { 10 getVGList(_c_id, 'S', 'HP', _exh, _id, ''); 11} 12/* ï¼äººäºç´ */ 13var getOneListL = function (_c_id, _exh, _id) { 14 getVGList(_c_id, 'L', 'ONE', _exh, _id, ''); 15} 16var getOneListM = function (_c_id, _exh, _id) { 17 getVGList(_c_id, 'M', 'ONE', _exh, _id, ''); 18} 19var getOneListS = function (_c_id, _exh, _id) { 20 getVGList(_c_id, 'S', 'ONE', _exh, _id, ''); 21} 22 23 24/* ã«ãã´ãªæå®ãã */ 25/* ãªã³ã©ã¤ã³äºç´(V) */ 26var getOnlineListCL = function (_c_id, _exh, _id, _ctg) { 27 getVGList2(_c_id, 'L', 'HP', _exh, _id, _ctg); 28} 29var getOnlineListCM = function (_c_id, _exh, _id, _ctg) { 30 getVGList2(_c_id, 'M', 'HP', _exh, _id, _ctg); 31} 32var getOnlineListCS = function (_c_id, _exh, _id, _ctg) { 33 getVGList2(_c_id, 'S', 'HP', _exh, _id, _ctg); 34} 35/* ï¼äººäºç´ */ 36var getOneListCL = function (_c_id, _exh, _id, _ctg) { 37 getVGList2(_c_id, 'L', 'ONE', _exh, _id, _ctg); 38} 39var getOneListCM = function (_c_id, _exh, _id, _ctg) { 40 getVGList2(_c_id, 'M', 'ONE', _exh, _id, _ctg); 41} 42var getOneListCS = function (_c_id, _exh, _id, _ctg) { 43 getVGList2(_c_id, 'S', 'ONE', _exh, _id, _ctg); 44} 45 46 47/* */ 48function getContainer(_id) { 49 var objType = 0; 50 var container = document.getElementById(_id); 51 if (container != null) { 52 objType = 1; 53 } else { 54 for (var i = 0; i < document.getElementsByName(_id).length; i++) { 55 objType = 2; 56 container = document.getElementsByName(_id)[i]; 57 break; 58 } 59 } 60 return container; 61} 62 63/* */ 64var aryItem = new Array(); 65 66function getVGList(_c_id, _size, _mode, _exh, _id) { 67 getVGList2(_c_id, _size, _mode, _exh, _id, ""); 68} 69 70function getVGList2(_c_id, _size, _mode, _exh, _id, _ctg) { 71 if (!_c_id || !_size || !_mode || !_exh) { 72 return; 73 } 74 75 var objType = 0; 76 var container = null; 77 78 if (_id == null || _id == "") { 79 _id = "vg_plan_" + _mode + "_" + _size + "_" + _exh + "_" + _ctg + "_" + (new Date()).getTime(); 80 document.write("<div id='" + _id + "'></div>"); 81 container = document.getElementById(_id); 82 } 83 84 container = document.getElementById(_id); 85 if (container != null) { 86 objType = 1; 87 } else { 88 for (var i = 0; i < document.getElementsByName(_id).length; i++) { 89 container = document.getElementsByName(_id)[i]; 90 objType = 2; 91 break; 92 } 93 } 94 95 var b = 0; 96 for (var i = 0; i < aryItem.length; i++) { 97 var ary1 = aryItem[i]; 98 if (ary1[0] == _id) { 99 b = 1; 100 if (ary1[2] != "") { 101 clearTimeout(ary1[2]); 102 } 103 ary1[2] = ""; 104 break; 105 } 106 } 107 if (container == null) { 108 if (b == 0) { 109 var ary2 = new Array(); 110 ary2[0] = _id; 111 ary2[1] = 0; 112 ary2[2] = ""; 113 aryItem.push(ary2); 114 } 115 116 for (var i = 0; i < aryItem.length; i++) { 117 var ary1 = aryItem[i]; 118 if (ary1[0] == _id) { 119 ary1[1] += 1; 120 if (ary1[1] <= 10) { 121 try { 122 ary1[2] = setTimeout(function () { 123 getVGList2(_c_id, _size, _mode, _exh, _id, _ctg); 124 }, 3000); 125 } catch (e) {} 126 } 127 return; 128 } 129 } 130 } 131 132 if (container != null) { 133 container.innerHTML = "èªã¿è¾¼ã¿ä¸..."; 134 } 135 136 var pUrl = (('https:' == document.location.protocol) ? 'https://' : 'http://') + "www.valuegolf.co.jp/hp_script/vg_plan_list.cfm"; 137 var pParam = "C_ID=" + _c_id + "&LIST_MODE=" + _mode + "&LIST_SIZE=" + _size + "&EXH_FLG=" + _exh + "&CTG=" + _ctg; 138 if (container != null) { 139 pParam += "&ID=" + _id; 140 } 141 var scripts = document.getElementsByTagName("script"); 142 for (var i = 0; i < scripts.length; i++) { 143 if (scripts[i].src.match(/(^|.*\/)vg_plan_list\.js$/)) { 144 if (scripts[i].src.match(/(\.valuegolf\.co\.jp\/hp_script\/)/i)) { 145 pUrl = scripts[i].src.replace(/\.js$/, ".cfm"); 146 } 147 } else if (scripts[i].src.match(/(^|.*\/)vg_plan_list\.js\?\w/)) { 148 if (scripts[i].src.match(/(\.valuegolf\.co\.jp\/hp_script\/)/i)) { 149 pUrl = scripts[i].src.substring(0, scripts[i].src.indexOf("?")).replace(/\.js$/, ".cfm"); 150 } 151 } 152 } 153 154 jQuery(function ($) { 155 $.ajax({
156 type: "GET", 157 url: pUrl, 158 dataType: "script", 159 cache: false, 160 async: false, 161 data: pParam, 162 scriptCharset: "utf-8", 163 error: function (XMLHttpRequest, textStatus, errorThrown) { 164 if (objType == 0) { 165 document.write("ã¨ã©ã¼ãçºçãã¾ããã"); 166 } else { 167 container.innerHTML = "ã¨ã©ã¼ãçºçãã¾ããã"; 168 } 169 } 170 }); 171 }); 172 return; 173}
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.