1//============================================================================== 2// ãã¡ã¤ã«å ï¼ top.js 3// æ©è½ ï¼ ããã 4// æ©è½èª¬æ ï¼ 5//============================================================================== 6 7 8//============================================================================== 9// 颿°å ï¼ - 10// æ©è½ ï¼ åæå 11// æ©è½èª¬æ ï¼ 12// 弿°-1 ï¼ ãªã 13// æ»ãå¤ ï¼ ãªã 14//============================================================================== 15$(function() { 16 17 // ã¯ã¤ãã¯æ¤ç´¢ã»é½éåºç夿´ 18 $('#quick_form select[name="pref_id"]').on('change', function(){ 19 var pref_id = $(this).val(); 20 if (!pref_id) return; 21 //è·¯ç· 22 var url = '/top/getprefroute.php?pref_id=' + pref_id; 23 24 $.ajax({ 25 url: url, 26 cache: true, 27 success: function(html){ 28 $("#search_route").html('<span class="weight-bold">沿ç·</span>' + html); 29 } 30 }); 31 32 //å¸åºçºæ 33 url = '/top/getprefcity.php?pref_id=' + pref_id; 34 35 $.ajax({ 36 url: url, 37 cache: true, 38 success: function(html){ 39 $("#search_city").html('<span class="weight-bold">å¸åºé¡</span>' + html); 40 } 41 }); 42 }).trigger('change'); 43 44 //æ¤ç´¢ç¨®å¥ã®ã¤ãã³ããè¨å®ãã 45 $('input[name="search_type"]').on('change', function(){ 46 //æ ãæ¶ã 47 $('#search_route,#search_city,#search_station').hide(); 48 49 var furl = ''; 50 //å¯¾è±¡ã®æ ã表示ãã 51 switch ($("input[name='search_type']:checked").val()) { 52 case '2': 53 //é§ å 54 $('#search_station').show(); 55 furl = '/chintai/line_list/list.php'; 56 break; 57 58 case '0': 59 //æ²¿ç· 60 $('#search_route').show(); 61 furl = '/chintai/line_list/list.php'; 62 break; 63 64 case '1': 65 //å¸åºçºæ 66 case '3': 67 //å°å³ 68 $('#search_city').show(); 69 furl = '/chintai/area_list/list.php'; 70 break; 71 } 72 73 if (furl) $('#quick_form').attr('action', furl); 74 }).trigger('change'); 75 76 //ãªãã¼ã¿ã¼åãã®æ ãåå¨ãããï¼ 77 if(document.getElementById('repeaterSearch')){ 78 //è·¯ç·ããæ¢ã 79 $("#changelineBtn").on('click', function() { 80 $(".changeBlockWrapper").hide(); 81 $("#lineSearch").show(); 82 $(".changeBtnWrap li").removeClass("active"); 83 $(this).parent("li").addClass("active"); 84 }); 85 //å¸åºçºæããæ¢ã 86 $("#changeAreaBtn").on('click', function() { 87 $(".changeBlockWrapper").hide(); 88 $("#areaSearch").show(); 89 $(".changeBtnWrap li").removeClass("active"); 90 $(this).parent("li").addClass("active"); 91 }); 92 //ååæ¤ç´¢ããæ¡ä»¶ããæ¢ã 93 $("#changeRepeaterBtn").on('click', function() { 94 if($(this).hasClass('disabled')==false){ 95 $(".changeBlockWrapper").hide(); 96 $("#repeaterSearch").show(); 97 $(".changeBtnWrap li").removeClass("active"); 98 $(this).parent("li").addClass("active"); 99 } 100 }); 101 // ããã·ã¥ã«ããåæè¡¨ç¤ºã夿´ 102 switch (location.hash ? location.hash.replace('#', '') : '') { 103 case 'searchArea': 104 $("#changeAreaBtn").trigger('click'); 105 break; 106 case 'searchStation': 107 $("#changelineBtn").trigger('click'); 108 break; 109 } 110 } 111 //ãã ããã®é«ãæã 112 $('ul.kodawari_list li p.KodawariTxt').flatHeights(); 113 $('div.kodawari_list_under .kodawari').flatHeights(); 114 //æ°çç©ä»¶å 115 $('#recommendBox .estateBox .actBox p').flatHeights(); 116 117 118 /* ãµã ãã¤ã«ã®ã¯ããã */ 119 $('.recommendEstate p.nailthumb-container').nailthumb({width:160,height:160,replaceAnimation:'null',method:'',fitDirection:'center center'}); 120 /* ãµã ãã¤ã«ã®ã¯ããã */ 121 $('#recommendEstate p.nailthumb-container').nailthumb({width:165,height:165,replaceAnimation:'null',method:'',fitDirection:'center center'}); 122 123 //ããããç©ä»¶ã®ã«ã«ã¼ã»ã«ããã« 124 $('.recommendEstate,#recommendEstate').jcarousel(); 125 $('.jcarousel-next').bind('click',function(){ 126 $('.recommendEstate img,#recommendEstate img').show().lazyload(); 127 }); 128 129 $('.recommendWrap .estateBox,#recommendBox .estateBox').hover(function(){ 130 $(this).find('ul').stop(true, false).animate({top:0},100); 131 },function(){ 132 $(this).find('ul').stop(true, false).animate({top:165},100); 133 }); 134 135 // selectã®å¤§å°å ¥ãæ¿ã 136 $('select[data-pair-name]').on('change', function(){ 137 var pair = $(this).parent().find('select[name="' + $(this).attr('data-pair-name') + '"]'); 138 if ($(this).val().length <= 0) return; 139 if (pair.val().length <= 0) return; 140 var thisVal = parseInt($(this).val(), 10); 141 var pairVal = parseInt(pair.val(), 10); 142 // thisVal < pairVal ã§ããã¹ã 143 if ($(this).attr('name').match(/_low$/)) { 144 if (pairVal < thisVal) { 145 $(this).val(pairVal).trigger('change'); 146 pair.val(thisVal).trigger('change'); 147 } 148 // pairVal < thisVal ã§ããã¹ã 149 } else { 150 if (thisVal < pairVal) { 151 $(this).val(pairVal).trigger('change'); 152 pair.val(thisVal).trigger('change'); 153 } 154 } 155 }); 156 157 //人æ°ã¿ãã®åãæ¿ã 158 $('body').on('click', '.js-inner-tab-list_item', function() { 159 var index = $(this).parent().find('.js-inner-tab-list_item').index(this); 160 161 $(this).parent().find('.js-inner-tab-list_item').removeClass('is-active'); 162 $(this).addClass('is-active'); 163 164 $(this).parent().nextAll('.js-inner-tab-contents_item').addClass('is-visually-hidden'); 165 $(this).parent().nextAll('.js-inner-tab-contents_item').eq(index).removeClass('is-visually-hidden'); 166 }); 167}); 168 169//============================================================================== 170// 颿°å ï¼ startSuggest2 171// æ©è½ ï¼ ãµã¸ã§ã¹ãéå§ 172// æ©è½èª¬æ ï¼ 173// 弿°-1 ï¼ ãªã 174// æ»ãå¤ ï¼ ãªã 175//============================================================================== 176function startSuggest2() 177{ 178 new Suggest2.Local( 179 "id_stname_2", // å ¥åã®ã¨ã¬ã¡ã³ãID 180 "suggest_station_2", // è£å®åè£ã表示ããã¨ãªã¢ã®ID 181 list, // è£å®åè£ã®æ¤ç´¢å¯¾è±¡ã¨ãªãé å
182 {dispMax: 10, interval: 1000, prefix:true}); // ãªãã·ã§ã³ 183} 184 185 186window.addEventListener ? 187window.addEventListener('load', startSuggest2, false) : 188window.attachEvent('onload', startSuggest2); 189 190//============================================================================== 191// 颿°å ï¼ stationSearchSubmit 192// æ©è½ ï¼ é§ æ¤ç´¢ãµãããã 193// æ©è½èª¬æ ï¼ 194// 弿°-1 ï¼ ãªã 195// æ»ãå¤ ï¼ ãªã 196//============================================================================== 197function stationSearchSubmit() 198{ 199 if ($('#id_stname').val() == '' || $('#id_stname').val() == 'ä¾ï¼æ°å®¿') 200 { 201 alert('é§ åãå ¥åãã¦ãã ãã'); 202 return false; 203 } 204 205 return true; 206} 207 208 209 210//============================================================================== 211//[æ¤ç´¢æ¡ä»¶å±¥æ´ã®ã¹ã©ã¤ãã¼] 212//============================================================================== 213$(function(){ 214 //æ¤ç´¢å±¥æ´ã«æ° 215 var tabNum = $('.historyTitleTab').find('li').length; 216 if(tabNum==1){ 217 $('.slideBtnPv').hide(); 218 $('.slideBtnNx').hide(); 219 } 220 221 //æ¤ç´¢å±¥æ´ãããã¯ã®ã¹ã©ã¤ãã¼ 222 function sliderSet(){ 223 $('#history1').addClass('active').css('left',0); 224 $('#history2').css('left',718); 225 $('#history3').css('left',1436); 226 $('.slideBtnPv').hide(); 227 }; 228 sliderSet(); 229 var sliderWidth = 718; 230 231 //ã>ããã¿ã³ 232 function slideBtnNx(){ 233 if($('#history1').hasClass('active')){ 234 $('#history1').animate({left:-sliderWidth,display:'none'},200).removeClass('active'); 235 $('#history2').animate({left:0},200).addClass('active'); 236 $('#history3').animate({left:sliderWidth},200); 237 $('.historyTitleTab .historyTab1').removeClass('active'); 238 $('.historyTitleTab .historyTab2').addClass('active'); 239 $('.slideBtnPv').show(); 240 }else if($('#history2').hasClass('active')){ 241 $('#history1').animate({left:-sliderWidth*2},200); 242 $('#history2').animate({left:-sliderWidth},200).removeClass('active'); 243 $('#history3').animate({left:0},200).addClass('active'); 244 $('.historyTitleTab .historyTab2').removeClass('active'); 245 $('.historyTitleTab .historyTab3').addClass('active'); 246 $('.slideBtnNx').hide(); 247 } 248 }; 249 250 //ã<ããã¿ã³ 251 function slideBtnPv(){ 252 if($('#history2').hasClass('active')){ 253 $('#history1').animate({left:0},200).addClass('active'); 254 $('#history2').animate({left:sliderWidth},200).removeClass('active'); 255 $('#history3').animate({left:sliderWidth*2},200); 256 $('.historyTitleTab .historyTab2').removeClass('active'); 257 $('.historyTitleTab .historyTab1').addClass('active'); 258 $('.slideBtnPv').hide(); 259 }else if($('#history3').hasClass('active')){ 260 $('#history1').animate({left:-sliderWidth},200); 261 $('#history2').animate({left:0},200).addClass('active'); 262 $('#history3').animate({left:sliderWidth},200).removeClass('active'); 263 $('.historyTitleTab .historyTab3').removeClass('active'); 264 $('.historyTitleTab .historyTab2').addClass('active'); 265 $('.slideBtnNx').show(); 266 } 267 }; 268 269 function tabNumberCountPv(){ 270 if(tabNum==2){ 271 $('.slideBtnNx').show(); 272 $('.slideBtnPv').hide(); 273 } 274 } 275 276 function tabNumberCountNx(){ 277 if(tabNum==2){ 278 $('.slideBtnPv').show(); 279 $('.slideBtnNx').hide(); 280 } 281 } 282 283 $('.slideBtnNx').click(function(){ 284 slideBtnNx(); 285 tabNumberCountNx(); 286 }); 287 288 $('.slideBtnPv').click(function(){ 289 slideBtnPv(); 290 tabNumberCountPv(); 291 }); 292 293 //ã¿ãã§åãæ¿ããæ 294 $('.historyTitleTab li').on('click',function(){ 295 $('.historyTitleTab li').removeClass('active'); 296 $(this).addClass('active'); 297 if($(this).hasClass('historyTab1')){ 298 $('#history1').animate({left:0},200).addClass('active'); 299 $('#history2').animate({left:sliderWidth},200).removeClass('active'); 300 $('#history3').animate({left:sliderWidth*2},200).removeClass('active'); 301 $('.slideBtnPv').hide(); 302 if(tabNum!=1){ 303 $('.slideBtnNx').show(); 304 }else{ 305 $('.slideBtnNx').hide(); 306 } 307 }else if($(this).hasClass('historyTab2')){ 308 if(tabNum==2){ 309 $('.slideBtnNx').hide(); 310 $('.slideBtnPv').show(); 311 }else{ 312 $('.slideBtnPv').show(); 313 $('.slideBtnNx').show(); 314 } 315 $('#history1').animate({left:-sliderWidth},200).removeClass('active'); 316 $('#history2').animate({left:0},200).addClass('active'); 317 $('#history3').animate({left:sliderWidth},200).removeClass('active'); 318 }else{ 319 $('#history1').animate({left:-sliderWidth*2},200).removeClass('active'); 320 $('#history2').animate({left:-sliderWidth},200).removeClass('active'); 321 $('#history3').animate({left:0},200).addClass('active'); 322 $('.slideBtnPv').show(); 323 $('.slideBtnNx').hide(); 324 } 325 }); 326});
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.