PageSourceSearch

https://www.goo-net.com/js/lib/search/SummarySearchCond.js?220525

js goo-net.com collected 2026-10-01 10:29:55 UTC 11,302 bytes, 330 lines download raw bytes

1// global¤Ç¤Î¶¥¹ç¤òËɤ°
2if (typeof SummaryCond === "undefined"){
3    // ¥³¥ó¥¹¥È¥é¥¯¥¿
4    var SummaryCond = function(){
5        this.DOMAIN = location.hostname;
6        this.COUNTER_URL = '/php/search_api/easysearch/search_count.php?';
7        this.JITITAI_URL = '/cgi-bin/goojp/used/jititai_list.cgi?';
8        this.PREF_LIST = '01,02,03,04,05,06,07,08,09,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47';
9        this.COUNTRY_NAME = [];
10        this.COUNTRY_NAME[10] = 'jp';  //ÆüËÜ
11        this.COUNTRY_NAME[20] = 'ger'; //¥É¥¤¥Ä
12        this.COUNTRY_NAME[25] = 'uk';  //¥¤¥®¥ê¥¹
13        this.COUNTRY_NAME[30] = 'ita'; //¥¤¥¿¥ê¥¢
14        this.COUNTRY_NAME[35] = 'fra'; //¥Õ¥é¥ó¥¹
15        this.COUNTRY_NAME[40] = 'sw';  //¥¹¥¦¥§¡¼¥Ç¥ó
16        this.COUNTRY_NAME[45] = '';    //¥ª¥é¥ó¥À
17        this.COUNTRY_NAME[55] = 'us';  //¥¢¥á¥ê¥«
18        this.COUNTRY_NAME[60] = 'ko';  //´Ú¹ñ
19        this.COUNTRY_NAME[65] = '';    //Æî¥¢¥á¥ê¥«
20        this.COUNTRY_NAME[66] = 'cn';  //Ãæ¹ñ
21        this.COUNTRY_NAME[70] = '';    //¥¹¥Ú¥¤¥ó
22        this.COUNTRY_NAME[75] = '';    //¥í¥·¥¢
23        this.COUNTRY_NAME[80] = '';    //¥Ù¥ë¥®¡¼
24        this.COUNTRY_NAME[85] = '';    //¥«¥Ê¥À
25        this.COUNTRY_NAME[90] = '';    //¥¿¥¤
26        this.COUNTRY_NAME[91] = '';    //¥Ë¥å¡¼¥¸¡¼¥é¥ó¥É
27        this.COUNTRY_NAME[92] = '';    //¥Á¥§¥³
28        this.COUNTRY_NAME[93] = '';    //¥ª¡¼¥¹¥È¥é¥ê¥¢
29        this.COUNTRY_NAME[94] = '';    //¥ª¡¼¥¹¥È¥ê¥¢
30        this.COUNTRY_NAME[96] = '';    //¥¹¥í¥Ù¥Ë¥¢
31        this.COUNTRY_NAME[97] = '';    //¥á¥­¥·¥³
32        this.COUNTRY_NAME[99] = 'etc'; //¤½¤Î¾
33
34    };
35
36    //alert¤Çɽ¼¨¤µ¤»¤ë¥á¥Ã¥»¡¼¥¸
37    SummaryCond.ALERT_MESSEAGE = '¥Ç¡¼¥¿¤Î¼èÆÀ¤Ë¼ºÇÔ¤·¤Þ¤·¤¿';
38
39    // color¸µ¤ÎÀßÄê
40    var color_json = {'check_color_10':'', 'check_color_15':'', 'check_color_20':'', 'check_color_25':'', 'check_color_35':'', 'check_color_37':'',
41                     'check_color_45':'', 'check_color_46':'', 'check_color_50':'', 'check_color_55':'', 'check_color_60':'', 'check_color_65':'',
42                     'check_color_30':'', 'check_color_40':'', 'check_color_90':'', 'check_color_1041':''};
43    // colorÊݸÍÑ
44    var color_array = new Array();
45    // ÆÃ¼ì¤Ê½èÍý
46    var select_special_json = {'select_brand_cd':'maker_cd', 'select_body':'n_body_cd', 'select_grade':'grade_cd_list',
47                              'select_pref':'pref_c_list', 'check_restored':'restored'};//¡Ü¡Ö¥ß¥Ã¥·¥ç¥ó¡×¤Î½èÍý
48    var check_special_json = {'check_movie': 'movie_flg'};//¡Ü¡ÖASK¡¦SOLDOUT¤ò´Þ¤á¤Ê¤¤¡×/¡Ö¿§¡×¤Î½èÍý
49    var radio_special_json = {'radio_mission_normal':'mission', 'radio_mission_cvt':'mission', 'radio_mission_mt_mode':'mission',
50                             'radio_mission_c_at':'mission', 'radio_mission_i_at':'mission'};//event_name¤Ë¤è¤Ã¤Æ¡¢Hidden¤òÀßÄê
51
52    /**
53    * ¶õ,undefined,nullȽÄê¤ò¹Ô¤¤¡¢Ãͤ¬¥»¥Ã¥È¤µ¤ì¤Æ¤¤¤ì¤Ðfalse¤òÊÖ¤¹
54    *
55    * @params value string or integer
56    *
57    * @return true or false bool ȽÄê·ë²Ì
58    */
59    SummaryCond.prototype.checkEmpty = function(value){
60        if(value == undefined){
61            return true;
62        }
63        if(value == null){
64            return true;
65        }
66        if(value == ''){
67            return true;
68        }
69        return false;
70    };
71
72    /**
73    * hiddenÃͤò¥¯¥ê¥¢¤¹¤ë
74    *
75    * @params selector string value¤ò¶õ¤Ë¤·¤¿¤¤selector
76    *
77    * @return ¤Ê¤·
78    */
79    SummaryCond.prototype.clearHiddenValue = function(selector) {
80    // ¥Ö¥é¥ó¥É¤Î¥×¥ë¥À¥¦¥ó¤È¼Ö¼ï¤Î¥×¥ë¥À¥¦¥ó¤¬¤¢¤ì¤Ð¥Õ¥é¥°¤òÀßÄê
81    if($("#select_brand_cd").length > 0 && $("#select_car_cd").length > 0) {
82      $("#brand_car_search_flg").val('');
83    }
84
85    // car_grade_cd¤¬ÅÐÏ¿¤µ¤ì¤Æ¤¤¤¿¤é¡¢ºï½ü¤·¤Æ¥µ¥Ö¥ß¥Ã¥È
86    if( $("#car_grade_cd").length > 0 ) {
87        if ($("#car_grade_cd").val() != '') {
88            $("#car_grade_cd").val('');
89            $("#grade_cd_list").val('');
90        }
91    }
92
93    // radio_¤Î¼èÆÀ
94    $(".roundB .box_roundWhite input[type='radio']").each(function() {
95       var event_id = $(this).attr('id');
96       var radio_name = $(this).attr('name');;
97       var hidden_id = '';
98       if($("#" + event_id).is(':checked')) {
99          if( radio_special_json.hasOwnProperty(event_id) ) {
100             hidden_id = radio_special_json[event_id];
101          }else {
102             hidden_id = radio_name.replace('radio_', '');
103          }
104          // default¤ÎÀßÄê
105          $("input[type='radio'][name="+ radio_name + "]").get(0).checked = true;
106          // hiddenvalue¤ÎÀßÄê
107          $("#" + hidden_id).val('');
108       }
109    });
110   // color¤ÎÆÃ¼ì¤Ê½èÍý
111   $("dl.color  dd input[type='checkbox']").each(function() {
112      var event_id = $(this).attr('id');
113      var hidden_id = 'color';
114      if($("#" + event_id).is(':checked')) { 
115        $('#' + event_id).attr('checked', false);
116         $("#" + hidden_id).val('');
117      }
118   });
119   // check_¤Î¼èÆÀ
120   $(".roundB .box_roundWhite input[type='checkbox']").each(function() {
121      var event_id = $(this).attr('id');
122      var hidden_id = '';
123      //¡ÖASK¡¦SOLDOUT¤ò´Þ¤á¤Ê¤¤¡×¤Î½èÍý
124      
125      if($("#" + event_id).is(':checked')) {
126         if( check_special_json.hasOwnProperty(event_id) ) {
127            hidden_id = check_special_json[event_id]; 
128         }else {
129            hidden_id = event_id.replace('check_','');
130         }
131        // default¤ÎÀßÄê
132        $('#' + event_id).attr('checked', false);
133        // hiddenvalue¤ÎÀßÄê
134        $("#" + hidden_id).val('');
135        //¡ÖASK¡¦SOLDOUT¤ò´Þ¤á¤Ê¤¤¡×¤Î½èÍý
136        if(event_id == 'check_ask_ignore' && $("#soldout_ignore").length > 0 ) {
137           $("#soldout_ignore").val('');
138        }
139      }
140   });
141
142   // select_¤Î½èÍý 
143   $(".roundB .box_roundWhite select").each(function() {
144      var event_id = $(this).attr('id');
145      if( $("#"+ event_id).get(0).selectedIndex != 0 ) {
146        if(select_special_json.hasOwnProperty(event_id)) {
147          hidden_id = select_special_json[event_id];
148        }else {
149          hidden_id = event_id.replace('select_', '');
150        }
151        // default¤ÎÀßÄê
152        $("#"+ event_id).get(0).selectedIndex = 0;
153        // hiddenvalue¤ÎÀßÄê
154        $("#" + hidden_id).val('');
155      }
156   });
157
158   //text_¤Î½èÍý
159   $(".roundB .box_roundWhite input[type='text']").each(function() {
160       var event_id = $(this).attr('id');
161       var hidden_id = '';
162       hidden_id = event_id.replace('text_', '');
163       // default¤ÎÀßÄê
164       $("#"+ event_id).val('');
165       // hiddenvalue¤ÎÀßÄê
166       $('#' + hidden_id).val('');
167   });
168   
169}
170
171
172    /**
173    * ̿̾µ¬Â§¤Ë§¤Ã¤¿select,checkbox,radio¤ÎÃͤòhiddenÃͤØËä¤á¹þ¤à
174    *
175    * @params event_id   string hiddenÃͤòÊѤ¨¤¿¤¤id
176    * @params event_name string hiddenÃͤò¼èÆÀ¤¹¤ë°Ù¤Îname(¼ç¤Ëradio¥Ü¥¿¥ó¤Ë¤Æ»ÈÍÑ)
177    *
178    * @return ¤Ê¤·
179    */
180
181    SummaryCond.prototype.changeHiddenAll = function(event_id, event_name) {
182    var id    = event_id;
183    var name  = event_name;
184    var value = '';//default
185    var color = '';
186    var hidden_id = '';
187
188    if (SummaryCond.prototype.checkEmpty(event_id)) event_id = '';
189    if (SummaryCond.prototype.checkEmpty(event_name)) event_name = '';
190
191    //°ìÈ̽èÍý°Ê³°¤Î½èÍýÂбþ(HIDDEN̾¤Ï¥Ï¥ó¥É¥ê¥ó¥°+ID¤Ç¤Ï¤Ê¤¤¾ì¹ç)
192    //-------------------------------------
193    // Offset¤ò0¤ËÌ᤹
194    //-------------------------------------
195        if(event_id.indexOf('offset') != -1) {
196            $('#offset').val('0');
197        }
198    // ¥Ö¥é¥ó¥É¤Î¥×¥ë¥À¥¦¥ó¤È¼Ö¼ï¤Î¥×¥ë¥À¥¦¥ó¤¬¤¢¤ì¤Ð¥Õ¥é¥°¤òÀßÄê
199    if($("#select_brand_cd").length > 0 && $("#select_car_cd").length > 0) {
200      $("#brand_car_search_flg").val('1');
201    }
202
203¡¡¡¡// raido_¤Î½èÍý
204    if(event_id.indexOf('radio_') != -1 ) {
205      if($("#select_mission").val() != 'MT') {
206         if(radio_special_json.hasOwnProperty(event_id)) {
207            hidden_id = radio_special_json[event_id];
208            // ÁªÂò¤µ¤ì¤¿¤ÎÃͤμèÆÀ
209            value = $("#" + event_id).val();
210         }else{
211            hidden_id = event_name.replace('radio_', '');
212            // ÁªÂò¤µ¤ì¤¿¤ÎÃͤμèÆÀ
213            value = $('[name=' + event_name + ']:checked').val();
214         }
215      }
216      // Hidden¤ÎÀßÄê
217      $('#' + hidden_id).val(value);
218      return;
219    }
220    // raido_¤Î½èÍý ´°Î»
221
222    // select_¤Î½èÍý
223    if(event_id.indexOf('select_') != -1 || event_id == 'check_restored') {
224
225      if((event_id == 'select_mission') && ($("#mission").val() != '') && ($("#select_mission").val() == 'AT') ) {
226        return;
227      }
228      if(select_special_json.hasOwnProperty(event_id)) {
229        hidden_id = select_special_json[event_id];
230      }else {
231        hidden_id = event_id.replace('select_', '');
232      }
233
234      if((event_id == 'select_door') && ($("#door_cd_flg").val() != '') && ($("#door_cd_flg").val() == true) ) {
235        return;
236      }
237
238      // ÁªÂò¤µ¤ì¤¿¤ÎÃͤμèÆÀ
239      value = $('#'+event_id).val();
240      // Hidden¤ÎÀßÄê
241      $('#' + hidden_id).val(value);
242      return;
243    }
244    // select_¤Î½èÍý ´°Î»
245
246    // check_¤Î½èÍý
247    if(event_id.indexOf('check_') != -1) {
248      //¡ÖASK¡¦SOLDOUT¤ò´Þ¤á¤Ê¤¤¡×¤Î½èÍý
249      if(event_id.indexOf('ask_ignore') != -1) {
250        var value = "";
251        if($('#' + event_id).is(":checked")) {
252            value=$('#' + event_id).val();
253        }
254        $('#ask_ignore').val(value);
255        $('#soldout_ignore').val(value);
256        return;
257      }
258      //¡Ö¿§¡×¤Î½èÍý
259      if(event_id.indexOf('check_color_') != -1) {
260       //¸¡º÷·ë²Ì¤ÎÊݸ
261       if($('#color').val().length > 0 && color_array.length == 0) {
262          var color_temp = $('#color').val().split(',');
263          for(var i = 0; i< color_temp.length; i++ ){
264            if(color_temp[i] == '20' && color_temp[i + 1] == '21'){
265               color_array.push('20,21');
266               i++;
267            }else{
268               color_array.push(color_temp[i]);
269            }
270          }
271       }
272
273       $.each(color_array,function(key,value) {
274         if(value == "20,21") { 
275           if(!$('#check_color_20').is(':checked')) {
276              color_array.splice(key,1);
277           }
278         }else {
279           if(!$('#check_color_' + value).is(':checked')) {
280              color_array.splice(key,1);
281           }
282         }
283       });
284
285        if(color_array.length >= 5) {
286        }else {
287          if($('#' + event_id).is(':checked')) {
288             if(event_id == 'check_color_20')
289             {
290               color_val = $("#"+event_id).val() + ',21';
291             }else {
292               color_val = $("#"+event_id).val();
293             }
294             color_array.push(color_val);
295          }
296          $('#color').val(color_array.join(','));
297        }
298        
299        return;
300      }
301      
302      if(check_special_json.hasOwnProperty(event_id)) {
303        hidden_id = check_special_json[event_id];
304      }else {
305        hidden_id = event_id.replace('check_', '');
306      }
307
308      // ÁªÂò¤µ¤ì¤¿¤ÎÃͤμèÆÀ
309      if($("#" + event_id).is(":checked")) {
310         value = $('#'+event_id).val();
311      }else {
312         value ='';
313      }
314      // Hidden¤ÎÀßÄê
315      $('#' + hidden_id).val(value);
316      return;
317    }
318    //check_¤Î½èÍý ´°Î»
319
320    //text_¤Î½èÍý
321    if(event_id.indexOf('text_') != -1) {
322      value = $("#" + event_id ).val();
323      hidden_id = event_id.replace('text_', '');
324      $('#' + hidden_id).val(value);
325      return;
326    }
327    return;
328    }
329
330}

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.