1// 2// Ãæ¸Å¼ÖÁ«°ÜÈÆÍÑJavascript¥Õ¥¡¥¤¥ë 3// 4//====================================================================== 5 6// ¸¡Æ¤Ãæ¥ê¥¹¥ÈÅÐÏ¿ºÇÂç·ï¿ô 7var COMPARE_LIST_MAX_COUNT = 30; 8 9// ------------------------------------------ 10// ¥Ñ¥ó¤¯¤ºÌá¤ë¥ê¥ó¥¯ 11// ------------------------------------------ 12function SubmitBack(str) { 13 if(str == "select_area" || str == "area_search"){ 14 if(checkElementName(document.form1, "pref_c_list") == true){ 15 document.form1.pref_c_list.value = ""; 16 } 17 if(checkElementName(document.form1, "jititai_id") == true){ 18 document.form1.jititai_id.value = ""; 19 } 20 } 21 document.form1.action = '/php/search/'+str+'.php'; 22 document.form1.target = '_self'; 23 document.form1.submit(); 24} 25 26 27// ------------------------------------------ 28// FORMÆâ¤Ë»ØÄꤵ¤ì¤¿Ì¾Á°¤Î¥¨¥ì¥á¥ó¥È¤¬¤¢¤ë¤« 29// ¥Á¥§¥Ã¥¯¤¹¤ë 30// Ìá¤êÃÍ¡§ false: ̵¤· true: ͤê 31// ------------------------------------------ 32function checkElementName(oForm, sElementName){ 33 34 for(var counter=0; counter<oForm.elements.length; counter++){ 35 if(oForm.elements[counter].name == sElementName ){ 36 return (true); 37 } 38 } 39 return (false); 40 41} 42 43/** 44 * 2299 20160530 LPO µ¡Ç½¤Îßɲá 45 */ 46function CancelLpoParams(arr_param){ 47 var arrPar = arr_param; 48 for (var i = 0; i < arrPar.length; i++) { 49 if(document.getElementById( arrPar[i]) != undefined){ 50 document.getElementById(arrPar[i]).value = ""; 51 } 52 } 53 54} 55 56/** 57 * 2299 20160530 LPO ·ÐͳURLÁȤ߹ç¤ï¤» 58 */ 59function LpoCheckParams() { 60 var params = ''; 61 if(document.getElementById("lpMidashi") != undefined && document.getElementById("lpMidashi").value ) { 62 params += '&lpMidashi='+document.getElementById("lpMidashi").value; 63 } 64 if (document.getElementById("lpInclude") != undefined && document.getElementById("lpInclude").value) { 65 params += '&lpInclude='+document.getElementById("lpInclude").value; 66 } 67 if (document.getElementById("lpSearch") != undefined && document.getElementById("lpSearch").value == 'on') { 68 params += '&lpSearch=on'; 69 } 70 if (document.getElementById("lpNindx") != undefined && document.getElementById("lpNindx").value == 'on') { 71 params += '&lpNindx=on'; 72 } 73 if (document.getElementById("lpPickup") != undefined && document.getElementById("lpPickup").value) { 74 params += '&lpPickup='+document.getElementById("lpPickup").value; 75 } 76 if (document.getElementById("lpSort") != undefined && document.getElementById("lpSort").value) { 77 params += '&lpSort='+document.getElementById("lpSort").value; 78 } 79 if (params != '') { 80 if (params.substr(0,1)=='&') { 81 params = params.substr(1,params.length-1); 82 } 83 return "?"+params; 84 } 85 return ''; 86} 87 88// ------------------------------------------ 89// FORMÆâÍÆ¤òÊÝ»ý¤·¤¿¤Þ¤Þ¡¢»ØÄꤷ¤¿¥Ú¡¼¥¸¤ËÁ«°Ü 90// 91// ------------------------------------------ 92function SubmitJump(str) { 93 CancelLpoParams(new Array("lpInclude")); // 2299 20160530 lpInclude µ¡Ç½¤¬¾Ã¤¨¤ë 94 var lpoPara = LpoCheckParams(); // 2299 20160530¡ÚGoo-net PC/SP¡ÛLPO²þÁ±»Üºö 95 if(str == "price_range"){ 96 document.form1.action = "/php/search/price_range.php"; 97 }else if(str == "thumb"){ 98 document.form1.action = "/php/search/summary.php"+lpoPara; 99 document.form1.disp_mode.value = "thumb"; 100 }else if(str == "detail_list"){ 101 document.form1.action = "/php/search/summary.php"+lpoPara; 102 document.form1.disp_mode.value = "detail_list"; 103 submitWithFilter(); 104 return; 105 }else if(str == "grade_search"){ 106 document.form1.action = "/php/search/grade_search.php"; 107 }else if(str == "area_search"){ 108 document.form1.action = "/php/search/area_search.php"; 109 }else if(str == "review"){ 110 document.form1.action = "/php/search/summary.php"; 111 document.form1.disp_mode.value = "review"; 112 }else if(str == "summary_guarantee"){ 113 document.form1.action = "/php/search/summary.php"; 114 document.form1.disp_mode.value = "summary_guarantee"; 115 }else if(str == "sales_records"){ 116 document.form1.action = "/php/sales_records/car_list.php"; // ÈÎÇä¼ÂÀÓ°ìÍ÷²èÌ̤ؤÎÁ«°Ü ADD BY k.sawada 2012.01.18 117 }else if(str == "tdrive_list"){ 118 document.form1.action = "/php/search/tdrive.php"; //2727 119 }else if(str == "stock" || str == "stock_group" || str == "tdrive"){ 120 //2571 20170413 start 121 var baitaiElement = document.getElementById("baitai"); 122 if (baitaiElement && baitaiElement.value == "gdl"){ 123 var inputElement = document.getElementById("specialgdl"); 124 inputElement.value = "specialgdl"; 125 } 126 //2571 20170213 end 127 document.form1.action = "/php/shop/" +str+ ".php"; // ÈÎÇäºß¸Ë/¥°¥ë¡¼¥×Źºß¸Ë¤Ø¤ÎÁ«°Ü 128 } else { 129 document.form1.action = "/php/search/summary.php"; 130 document.form1.disp_mode.value = "normal"; 131 } 132 var tmp_popularCar = document.getElementById('go_popularCar'); 133 if(tmp_popularCar){ 134 document.getElementById('go_popularCar').value = "1"; 135 } 136 document.form1.submit(); 137} 138 139//2571 20170419 start 140// ------------------------------------------ 141// FORMÆâÍÆ¤òÊÝ»ý¤·¤¿¤Þ¤Þ¡¢»ØÄꤷ¤¿¥Ú¡¼¥¸¤ËÁ«°Ü 142// 143// ------------------------------------------ 144function SubmitJumpLimit(str) { 145 CancelLpoParams(new Array("lpInclude")); // 2299 20160530 lpInclude µ¡Ç½¤¬¾Ã¤¨¤ë 146 var lpoPara = LpoCheckParams(); // 2299 20160530¡ÚGoo-net PC/SP¡ÛLPO²þÁ±»Üºö 147 if(str == "price_range"){ 148 document.form1.action = "/php/search/price_range.php"; 149 }else if(str == "thumb"){ 150 document.form1.action = "/php/search/summary.php"+lpoPara; 151 document.form1.disp_mode.value = "thumb"; 152 }else if(str == "detail_list"){ 153 document.form1.action = "/php/search/summary.php"+lpoPara; 154 document.form1.disp_mode.value = "detail_list"; 155 submitWithFilter(); 156 return; 157 }else if(str == "grade_search"){ 158 document.form1.action = "/php/search/grade_search.php"; 159 }else if(str == "area_search"){ 160 document.form1.action = "/php/search/area_search.php"; 161 }else if(str == "review"){ 162 document.form1.action = "/php/search/summary.php"; 163 document.form1.disp_mode.value = "review"; 164 }else if(str == "summary_guarantee"){ 165 document.form1.action = "/php/search/summary.php"; 166 document.form1.disp_mode.value = "summary_guarantee"; 167 }else if(str == "sales_records"){ 168 document.form1.action = "/php/sales_records/car_list.php"; // ÈÎÇä¼ÂÀÓ°ìÍ÷²èÌ̤ؤÎÁ«°Ü ADD BY k.sawada 2012.01.18 169 }else if(str == "stock" || str == "stock_group" || str == "tdrive"){ 170 document.form1.action = "/php/shop/" +str+ ".php"; // ÈÎÇäºß¸Ë/¥°¥ë¡¼¥×Źºß¸Ë¤Ø¤ÎÁ«°Ü 171 } else { 172 document.form1.action = "/php/search/summary.php"; 173 document.form1.disp_mode.value = "normal"; 174 } 175 document.form1.submit(); 176} 177//2571 20170419 end 178 179// ------------------------------------------ 180// ¥µ¡¼¥Õ¥Ý¥¤¥ó¥È¡Ê¥É¥³¥É¥³jp¡Ë¤Î¥¨¥ê¥¢¾ðÊó¤ò¼èÆÀ 181// ¥¯¥Ã¥¡¼¤ËÅÐÏ¿
182// 2013.05.23 ANG_PRJ-551 ¥É¥³¥É¥³ºï½ü K.Murakami 183// ------------------------------------------ 184//function getSurfPoint(){ 185 186 //var sp = SURFPOINT.getPrefAName(); 187 //document.cookie = "surfpoint="+sp; 188 189//} 190 191 192// ------------------------------------------ 193// ¥«¡¼¥È¤Ø¤ÎÁ«°Ü½èÍý 194// 195// ------------------------------------------ 196function jumpCart(){ 197 198 var url = ''; 199 var domain = ''; 200 if (location.hostname == 'dev.www.goo-net.com') { 201 domain = 'se2191.goo-net.com' 202 } else { 203 domain = 'www.goo-net.com' 204 } 205 206 url = 'https://'+domain+'/goonet/php/estimate/cart.php?rt=cart_click&'+Math.random(); 207 208 window.open(url,'canget'); 209// return false; 210// document.location = url; 211 212} 213 214function checkAndSubmitJump(str) { 215 CancelLpoParams(new Array("lpMidashi","lpSearch","lpNindx")); // 2299 20160530 µ¡Ç½¤¬¾Ã¤¨¤ë 216 if (checkPriceCheckbox()) { 217 SubmitJump(str); 218 } 219} 220 221function checkPriceCheckbox() { 222 var check_flag = false; 223 if (document.getElementById("check_car_price")) { 224 if (document.getElementById("check_car_price").checked == true) { 225 check_flag = true; 226 } 227 } 228 if (document.getElementById("check_total_payment")) { 229 if (document.getElementById("check_total_payment").checked == true) { 230 check_flag = true; 231 } 232 } 233 if (document.getElementById("price_range_type")) { 234 check_flag = true; 235 } 236 if (!check_flag) { 237 alert("¡Ö¼Öξ²Á³Ê¤Çõ¤¹¡×¤«¡Ö»ÙʧÁí³Û¤Çõ¤¹¡×¤Ë¥Á¥§¥Ã¥¯¤òÆþ¤ì¤Æ¤¯¤À¤µ¤¤¡£"); 238 239 return false; 240 } 241 242 return true; 243} 244 245// ¥â¡¼¥À¥ë²èÌ̤«¤é¤Î¥Á¥§¥Ã¥¯ÍÑ 246function checkAndSubmitJumpFromModal(str) { 247 CancelLpoParams(new Array("lpMidashi","lpSearch","lpNindx")); // 2299 20160530 µ¡Ç½¤¬¾Ã¤¨¤ë 248 if (checkPriceCheckboxFromModal()) { 249 SubmitJump(str); 250 } 251} 252 253// ¥â¡¼¥À¥ë²èÌ̤«¤é¤Î¥Á¥§¥Ã¥¯ÍÑ 254function checkPriceCheckboxFromModal() { 255 var check_flag = false; 256 if (window.parent.document.getElementById("check_car_price")) { 257 if (window.parent.document.getElementById("check_car_price").checked == true) { 258 check_flag = true; 259 } 260 } 261 if (window.parent.document.getElementById("check_total_payment")) { 262 if (window.parent.document.getElementById("check_total_payment").checked == true) { 263 check_flag = true; 264 } 265 } 266 if (!check_flag) { 267 alert("¡Ö¼Öξ²Á³Ê¤Çõ¤¹¡×¤«¡Ö»ÙʧÁí³Û¤Çõ¤¹¡×¤Ë¥Á¥§¥Ã¥¯¤òÆþ¤ì¤Æ¤¯¤À¤µ¤¤¡£"); 268 269 return false; 270 } 271 return true; 272} 273 274function updateSearchButtonState($buttons, count) { 275 var isZero = Number(String(count).replace(/,/g, "")) <= 0; 276 $buttons.each(function() { 277 var $button = $(this); 278 if (this.tagName.toLowerCase() === "a" && !$button.data("search-disabled-guard")) { 279 var originalOnClick = this.onclick; 280 this.onclick = function(event) { 281 if ($(this).attr("aria-disabled") === "true") { 282 if (event && event.preventDefault) { 283 event.preventDefault(); 284 } 285 return false; 286 } 287 return originalOnClick ? originalOnClick.call(this, event) : true; 288 }; 289 $button.data("search-disabled-guard", true); 290 } 291 $button 292 .toggleClass("is-zero", isZero) 293 .attr("aria-disabled", isZero ? "true" : "false"); 294 if ($button.is("button, input")) { 295 $button.prop("disabled", isZero); 296 } 297 }); 298}
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.