1var root_pattern = /(http|https):\/\/[\w\.-]+/; 2var ip_pattern = /^\d{1,3}\.(\d{1,3}\.){2}\d{1,3}$/; 3var is_ipconnect = ip_pattern.test(location.host); 4var pc_faq_url = 'https://www1.fastcloud.jp/keikyufaq/keikyubus/web/index.html'; 5var sp_faq_url = 'https://www1.fastcloud.jp/keikyufaq/keikyubus/web/index.html'; 6 7/* ã¤ã³ã¯ã«ã¼ã */ 8$(function () { 9 $("#inc-top-slider").load('/inc/top_slider.html'); 10 $("#inc-side-highway-bnr").load('/inc/side_highway_bnr.html'); 11 $("#inc-side-airport-bnr").load('/inc/side_airport_bnr.html'); 12 $("#inc-side-night-morning-bnr").load('/inc/side_night-morning_bnr.html'); 13 $("#inc-side-night-bnr").load('/inc/side_night_bnr.html'); 14 $("#inc-side-recruit-bnr").load('/inc/side_recruit_bnr.html'); 15 $("#inc-side-line-bnr").load('/inc/side_line_bnr.html'); 16 $("#inc-side-line-bnr2").load('/inc/side_line_bnr2.html'); 17 $("#inc-side-basic-bnr").load('/inc/side_basic_bnr.html'); 18 $("#inc-side-company-bnr").load('/inc/side_company_bnr.html'); 19 $("#inc-banner").load('/inc/banner.html'); 20 $("#inc-footer").load('/inc/footer.html', null , function () { 21 22 if(!is_ipconnect){ 23 $("a").on('click', function(e){ 24 // ãåãåãããªã³ã¯ãã¯ãªãã¯ãããå ´å 25 var href = $(this).attr('href'); 26 console.log(href); 27 28 if(href == /contact/){ 29 e.preventDefault(); 30 location.href = 'http://'+location.host+href; 31 } 32 }); 33 } 34 var ua = navigator.userAgent; 35 if ((ua.indexOf('Android') > 0 && ua.indexOf('Mobile') > 0) || ua.indexOf('iPhone') > 0 || ua.indexOf('Blackberry') > 0 || ua.indexOf('iPhone') > 0) { 36 $("meta[name='viewport']").attr('content', 'width=320,user-scalable=no'); 37 $("a.faq_anchor").attr('href', sp_faq_url); 38 } else { 39 $("a.faq_anchor").attr('href', pc_faq_url); 40 } 41 }); 42 // $("#news-highway").load('/inc/news_highway.html'); 43 // $("#news-airport").load('/inc/news_airport.html'); 44 // $("#news-line").load('/inc/news_line.html'); 45 // $("#highway-pulldown1").load('/inc/highway_pulldown1.html'); 46 // $("#highway-pulldown2").load('/inc/highway_pulldown2.html'); 47 // $("#highway-pulldown3").load('/inc/highway_pulldown3.html'); 48 // $("#highway-pulldown4").load('/inc/highway_pulldown4.html'); 49 // $("#highway-pulldown5").load('/inc/highway_pulldown5.html'); 50 // $("#highway-pulldown6").load('/inc/highway_pulldown6.html'); 51 // $("#highway-pulldown7").load('/inc/highway_pulldown7.html'); 52 // $("#highway-pulldown8").load('/inc/highway_pulldown8.html'); 53 // $("#highway-pulldown9").load('/inc/highway_pulldown9.html'); 54 // $("#highway-pulldown10").load('/inc/highway_pulldown10.html'); 55 // $("#highway-pulldown11").load('/inc/highway_pulldown11.html'); 56 // $("#highway-pulldown12").load('/inc/highway_pulldown12.html'); 57 // $("#highway-pulldown13").load('/inc/highway_pulldown13.html'); 58 // $("#highway-pulldown14").load('/inc/highway_pulldown14.html'); 59 // $("#highway-pulldown15").load('/inc/highway_pulldown15.html'); 60 // $("#airport-pulldown1").load('/inc/airport_pulldown1.html'); 61 // $("#airport-pulldown2").load('/inc/airport_pulldown2.html'); 62 // $("#airport-pulldown3").load('/inc/airport_pulldown3.html'); 63 // $("#airport-pulldown4").load('/inc/airport_pulldown4.html'); 64 // $("#airport-pulldown5").load('/inc/airport_pulldown5.html'); 65 // $("#airport-pulldown6").load('/inc/airport_pulldown6.html'); 66 // $("#airport-pulldown7").load('/inc/airport_pulldown7.html'); 67 // $("#airport-pulldown8").load('/inc/airport_pulldown8.html'); 68 // $("#airport-pulldown9").load('/inc/airport_pulldown9.html'); 69 // $("#airport-pulldown10").load('/inc/airport_pulldown10.html'); 70 // $("#airport-pulldown11").load('/inc/airport_pulldown11.html'); 71 // $("#airport-pulldown12").load('/inc/airport_pulldown12.html'); 72 // $("#airport-pulldown13").load('/inc/airport_pulldown13.html'); 73 // $("#airport-pulldown14").load('/inc/airport_pulldown14.html'); 74 // $("#airport-pulldown15").load('/inc/airport_pulldown15.html'); 75 // $("#airport-pulldown16").load('/inc/airport_pulldown16.html'); 76 // $("#airport-pulldown17").load('/inc/airport_pulldown17.html'); 77 78 79 /* ã³ã³ãã³ãã¢ã³ã¼ãã£ãªã³ */ 80 $(".pulldown-box-ttl2").on("click", function () { 81 var windowWidth = $(window).width(); 82 var windowSm = 640; 83 if (windowWidth <= windowSm) { 84 $(this).next().slideToggle(0); 85 $(this).toggleClass("on"); 86 } 87 });
88}); 89 90$(function () { 91 $('#inc-header').load('/inc/header.html',null,function(){ 92 $(".sp-menu").on("click", function () { 93 $(".sp-menu-box").slideToggle(0); 94 }); 95 96 if(!is_ipconnect){ 97 // https+ãã¡ã¤ã³ã«actioï½å¤æ´ 98 var default_act = $("form.h-search").attr('action'); 99 var act = default_act.replace(root_pattern, "http://" + location.host + default_act); 100 $("form.h-search").attr('action', act); 101 } 102 $("form.h-search .h-search-r").children("input").prop('disabled', false); 103 $("form.h-search").css('visibility', ''); 104 }); 105}); 106 107$(function () { 108 $('#inc-gnav').load('/inc/gnav.html',null,function(){ 109 $(".gnav-list").hover( 110 function () { 111 $(this).find(".mega-menu").stop().fadeIn(0); 112 $(this).addClass("active"); 113 }, 114 function () { 115 $(this).find(".mega-menu").stop().fadeOut(0); 116 $(this).removeClass("active"); 117 } 118 ); 119 $(".mega-close-btn").click(function () { 120 $(this).closest(".mega-menu").css("display", "none"); 121 $(this).parent().parent(".gnav-list").removeClass("active"); 122 return false; 123 }); 124 $("body.top .mega-btn0").children(".main-btn").addClass("active"); 125 $(".sp-menu-box dd ul li a").on("click", function () { 126 location.reload(); 127 }); 128 $(".sp-menu-box dt").on("click", function () { 129 $(this).next().slideToggle(0); 130 $(this).toggleClass("on"); 131 }); 132 $('.highway .sp-menu-box').find('dt,dd').each(function () { 133 if ($(this).is('.highway')) { 134 $(this).addClass("on"); 135 $(this).show(); 136 } 137 }); 138 $('.airport .sp-menu-box').find('dt,dd').each(function () { 139 if ($(this).is('.airport')) { 140 $(this).addClass("on"); 141 $(this).show(); 142 } 143 }); 144 $('.night .sp-menu-box').find('dt,dd').each(function () { 145 if ($(this).is('.night')) { 146 $(this).addClass("on"); 147 $(this).show(); 148 } 149 }); 150 $('.line .sp-menu-box').find('dt,dd').each(function () { 151 if ($(this).is('.line')) { 152 $(this).addClass("on"); 153 $(this).show(); 154 } 155 }); 156 $(".close-btn,.close-btn2").on("click", function () { 157 $(".sp-menu-box").slideToggle(0); 158 }); 159 }); 160}); 161 162$(window).on('load', function() { 163 if(location.pathname === '/cgi-bin/search/msearch.cgi'){ 164 // ipã§æ¤ç´¢ç»é¢ãªãã«ã¼ãç¸å¯¾ 165 if( is_ipconnect ){ 166 $("dt a").each(function(){ 167 var href = $(this).attr("href"); 168 href = href.replace(root_pattern, ''); 169 $(this).attr("href", href); 170 }) 171 172 $("p.link").each(function(){ 173 var link = $(this).children("a"); 174 var txt = link.text(); 175 path = txt.replace(root_pattern, 'http://' + location.host); 176 link.text(path); 177 178 var href = link.attr("href"); 179 href = href.replace(root_pattern, ''); 180 link.attr("href", href); 181 }) 182 } 183 184 // æ¤ç´¢ç»é¢ãã¡ã¤ã³ã»Ipå ±éã§index.htmlåã 185 $("dt a").each(function(){ 186 var href = $(this).attr("href"); 187 href = href.replace(/index.html$/g, ''); 188 $(this).attr("href", href); 189 }) 190 191 $("p.link").each(function(){ 192 var link = $(this).children("a"); 193 var txt = link.text(); 194 path = txt.replace(/index.html$/g, ''); 195 link.text(path); 196 197 var href = link.attr("href"); 198 href = href.replace(/index.html$/g, ''); 199 link.attr("href", href); 200 }) 201 } 202}); 203 204/* sp */ 205$(function(){ 206 $(".common-tab-box dt").on("click", function () { 207 $(this).next().toggleClass("on"); 208 $(this).toggleClass("on"); 209 });
210}); 211 212/* ã¢ã³ã«ã¼ãªã³ã¯ã¹ã¯ãã¼ã« */ 213$(window).on("load", function () { 214 $('a[href^=#]').click(function () { 215 var speed = 400; 216 var href = $(this).attr("href"); 217 var target = $(href == "#" || href == "" ? 'html' : href); 218 var position = target.offset().top; 219 $('body,html').animate({ 220 scrollTop: position 221 }, speed, 'swing'); 222 return false; 223 }); 224}); 225 226/* ç»åå·®ãæ¿ã */ 227$(function () { 228 var $setElem = $('.imgChange'), 229 pcName = '_pc', 230 spName = '_sp', 231 replaceWidth = 641; 232 $setElem.each(function () { 233 var $this = $(this); 234 function imgSize() { 235 var windowWidth = parseInt($(window).width()); 236 if (windowWidth >= replaceWidth) { 237 $this.attr('src', $this.attr('src').replace(spName, pcName)).css({ 238 visibility: 'visible' 239 }); 240 } else if (windowWidth < replaceWidth) { 241 $this.attr('src', $this.attr('src').replace(pcName, spName)).css({ 242 visibility: 'visible' 243 }); 244 } 245 } 246 $(window).resize(function () { 247 imgSize(); 248 }); 249 imgSize(); 250 }); 251}); 252$(function () { 253 var $setElem = $('.imgChange2'), 254 pcName = '_pc', 255 tbName = '_tb', 256 spName = '_sp', 257 replaceWidthTb = 1263, 258 replaceWidthSp = 641; 259 $setElem.each(function () { 260 var $this = $(this); 261 function imgSize() { 262 var windowWidth = parseInt($(window).width()); 263 if (windowWidth >= replaceWidthTb) { 264 $this.attr('src', $this.attr('src').replace(spName, pcName)).css({ 265 visibility: 'visible' 266 }); 267 $this.attr('src', $this.attr('src').replace(tbName, pcName)).css({ 268 visibility: 'visible' 269 }); 270 } else if (windowWidth < replaceWidthTb && windowWidth > replaceWidthSp) { 271 $this.attr('src', $this.attr('src').replace(pcName, tbName)).css({ 272 visibility: 'visible' 273 }); 274 $this.attr('src', $this.attr('src').replace(spName, tbName)).css({ 275 visibility: 'visible' 276 }); 277 } else if (windowWidth < replaceWidthSp) { 278 $this.attr('src', $this.attr('src').replace(pcName, spName)).css({ 279 visibility: 'visible' 280 }); 281 $this.attr('src', $this.attr('src').replace(tbName, spName)).css({ 282 visibility: 'visible' 283 }); 284 } 285 } 286 $(window).resize(function () { 287 imgSize(); 288 }); 289 imgSize(); 290 }); 291}); 292 293/* ã¹ããæViewportåãæ¿ã */ 294$(function () { 295 var ua = navigator.userAgent; 296 if ((ua.indexOf('Android') > 0 && ua.indexOf('Mobile') > 0) || ua.indexOf('iPhone') > 0 || ua.indexOf('Blackberry') > 0 || ua.indexOf('iPhone') > 0) { 297 $("meta[name='viewport']").attr('content', 'width=320,user-scalable=no'); 298 $("a.faq_anchor").attr('href', sp_faq_url); 299 } else { 300 $("a.faq_anchor").attr('href', pc_faq_url); 301 } 302}); 303 304/* ã³ã³ãã³ãã¿ãåãæ¿ã */ 305var timer = false; 306$(window).resize(function() { 307 if (timer !== false) { 308 clearTimeout(timer); 309 } 310 timer = setTimeout(function() { 311 onSetAccordion(); 312 }, 200); 313}); 314function onSetAccordion(){ 315 var windowWidth = $(window).width(); 316 var windowSm = 640; 317 if (windowWidth <= windowSm) { 318 /* pc+sp */ 319 $(function () { 320 $(".pulldown-box-ttl").on("click", function () { 321 $(this).next().children().slideToggle(0); 322 $(this).toggleClass("on"); 323 }); 324 }); 325 $('.pulldown-box-ttl2').each(function(){ 326 if($(this).hasClass('on')){ 327 $(this).next().show(); 328 }else{ 329 $(this).next().hide(); 330 } 331 }); 332 }else{ 333 $('.pulldown-box2').show(); 334 } 335} 336onSetAccordion(); 337 338/* ã«ã¬ã³ã表示 */ 339$(window).on("load", function () { 340 /* ã¢ã³ã«ã¼ãªã³ã¯ */ 341 $(function () { 342 $('#inc-side-highway-nav').load('/inc/side_highway_nav.html',null,function(){ 343 var activeUrl = location.pathname.split("/")[2]; 344 navList = $(".side-category li,.sp-menu-box dd ul li").find("a"); 345 navList.each(function () { 346 if ($(this).attr("href").split("/")[2] == activeUrl) { 347 $(this).parent().addClass("active"); 348 }; 349 });
350 if(location.pathname == "/highway/") { $(".side-highway-nav1").addClass("active");} 351 if(document.URL.match("/highway/index.html#tab1")) { $("li").removeClass("active"); $(".side-highway-nav1").addClass("active");} 352 if(document.URL.match("/highway/index.html#tab2")) { $("li").removeClass("active"); $(".side-highway-nav2").addClass("active");} 353 /* ãµã¤ãã¡ãã¥ã¼ã¯ãªãã¯æãã¿ãã«ã¬ã³ã表示 */ 354 $('.side-tab-list li').click(function () { 355 var index = $('.side-tab-list li').index(this); 356 $('.common-tab-box .section').css('display', 'none'); 357 $('.common-tab-box .section').eq(index).css('display', 'block'); 358 $('.side-tab-list li').removeClass('active'); 359 $('.common-tab-list ul li').removeClass('select'); 360 $(this).addClass('active'); 361 $('.common-tab-list ul li').eq(index).addClass('select'); 362 }); 363 }); 364 $('#inc-side-airport-nav').load('/inc/side_airport_nav.html',null,function(){ 365 var activeUrl = location.pathname.split("/")[2]; 366 navList = $(".side-category li,.sp-menu-box dd ul li").find("a"); 367 navList.each(function () { 368 if ($(this).attr("href").split("/")[2] == activeUrl) { 369 $(this).parent().addClass("active"); 370 }; 371 }); 372 if(location.pathname == "/airport/") { $(".side-airport-nav1").addClass("active");} 373 if(document.URL.match("/airport/index.html#tab1")) { $("li").removeClass("active"); $(".side-airport-nav1").addClass("active");} 374 if(document.URL.match("/airport/index.html#tab2")) { $("li").removeClass("active"); $(".side-airport-nav2").addClass("active");} 375 /* ãµã¤ãã¡ãã¥ã¼ã¯ãªãã¯æãã¿ãã«ã¬ã³ã表示 */ 376 $('.side-tab-list li').click(function () { 377 var index = $('.side-tab-list li').index(this); 378 $('.common-tab-box .section').css('display', 'none'); 379 $('.common-tab-box .section').eq(index).css('display', 'block'); 380 $('.side-tab-list li').removeClass('active'); 381 $('.common-tab-list ul li').removeClass('select'); 382 $(this).addClass('active'); 383 $('.common-tab-list ul li').eq(index).addClass('select'); 384 }); 385 }); 386 $('#inc-side-night-morning-nav').load('/inc/side_night-morning_nav.html',null,function(){ 387 var activeUrl = location.pathname.split("/")[2]; 388 navList = $(".side-category li,.sp-menu-box dd ul li").find("a"); 389 navList.each(function () { 390 if ($(this).attr("href").split("/")[2] == activeUrl) { 391 $(this).parent().addClass("active"); 392 }; 393 }); 394 if(location.pathname == "/night-morning/") { $(".side-night-morning-nav1").addClass("active");} 395 if(document.URL.match("/night-morning/index.html#tab1")) { $("li").removeClass("active"); $(".side-night-morning-nav1").addClass("active");} 396 if(document.URL.match("/night-morning/index.html#tab2")) { $("li").removeClass("active"); $(".side-night-morning-nav2").addClass("active");} 397 if(document.URL.match("/night-morning/index.html#tab2")) { $("li").removeClass("active"); $(".side-night-morning-nav3").addClass("active");} 398 /* ãµã¤ãã¡ãã¥ã¼ã¯ãªãã¯æãã¿ãã«ã¬ã³ã表示 */ 399 $('.side-tab-list li').click(function () { 400 var index = $('.side-tab-list li').index(this); 401 $('.common-tab-box .section').css('display', 'none'); 402 $('.common-tab-box .section').eq(index).css('display', 'block'); 403 $('.side-tab-list li').removeClass('active'); 404 $('.common-tab-list ul li').removeClass('select'); 405 $(this).addClass('active'); 406 $('.common-tab-list ul li').eq(index).addClass('select'); 407 }); 408 }); 409 $('#inc-side-night-nav').load('/inc/side_night_nav.html',null,function(){ 410 var activeUrl = location.pathname.split("/")[2]; 411 navList = $(".side-category li,.sp-menu-box dd ul li").find("a"); 412 navList.each(function () { 413 if ($(this).attr("href").split("/")[2] == activeUrl) { 414 $(this).parent().addClass("active"); 415 }; 416 }); 417 if(location.pathname == "/night/") { $(".side-night-nav1").addClass("active");} 418 if(document.URL.match("/night/index.html#tab1")) { $("li").removeClass("active"); $(".side-night-nav1").addClass("active");} 419 if(document.URL.match("/night/index.html#tab2")) { $("li").removeClass("active"); $(".side-night-nav2").addClass("active");} 420 /* ãµã¤ãã¡ãã¥ã¼ã¯ãªãã¯æãã¿ãã«ã¬ã³ã表示 */ 421 $('.side-tab-list li').click(function () { 422 var index = $('.side-tab-list li').index(this); 423 $('.common-tab-box .section').css('display', 'none'); 424 $('.common-tab-box .section').eq(index).css('display', 'block'); 425 $('.side-tab-list li').removeClass('active'); 426 $('.common-tab-list ul li').removeClass('select'); 427 $(this).addClass('active'); 428 $('.common-tab-list ul li').eq(index).addClass('select'); 429 }); 430 }); 431 $('#inc-side-line-nav').load('/inc/side_line_nav.html',null,function(){ 432 var activeUrl = location.pathname.split("/")[2]; 433 navList = $(".side-category li,.sp-menu-box dd ul li").find("a"); 434 navList.each(function () { 435 if ($(this).attr("href").split("/")[2] == activeUrl) { 436 $(this).parent().addClass("active"); 437 }; 438 }); 439 if(location.pathname == "/line/") { $(".side-line-nav1").addClass("active");} 440 if(document.URL.match("/line/index.html#tab1")) { $("li").removeClass("active"); $(".side-line-nav1").addClass("active");} 441 if(document.URL.match("/line/index.html#tab2")) { $("li").removeClass("active"); $(".side-line-nav2").addClass("active");} 442 if(document.URL.match("/line/fare/fare.html")) { $("li").removeClass("active"); $(".side-line-nav3").addClass("active");} 443 if(document.URL.match("/line/ticket/ticket.html")) { $("li").removeClass("active"); $(".side-line-nav4").addClass("active");} 444 if(document.URL.match("/line/ticket/ticket_20220401.html")) { $("li").removeClass("active"); $(".side-line-nav4").addClass("active");} 445 if(document.URL.match("/line/ticket/bustoku.html")) { $("li").removeClass("active");} 446 if(document.URL.match("/line/ticket/tabeles.html")) { $("li").removeClass("active"); $(".side-line-nav5").addClass("active");} 447 if(document.URL.match("/line/ticket/counter.html")) { $("li").removeClass("active"); $(".side-line-nav6").addClass("active");} 448 if(document.URL.match("/line/fare/disability.html")) { $("li").removeClass("active"); $(".side-line-nav7").addClass("active");} 449 /* ãµã¤ãã¡ãã¥ã¼ã¯ãªãã¯æãã¿ãã«ã¬ã³ã表示 */ 450 $('.side-tab-list li').click(function () { 451 var index = $('.side-tab-list li').index(this); 452 $('.common-tab-box .section').css('display', 'none'); 453 $('.common-tab-box .section').eq(index).css('display', 'block'); 454 $('.side-tab-list li').removeClass('active'); 455 $('.common-tab-list ul li').removeClass('select'); 456 $(this).addClass('active'); 457 $('.common-tab-list ul li').eq(index).addClass('select'); 458 }); 459 }); 460 $('#inc-side-line-nav-list').load('/inc/side_line_nav_list.html',null,function(){ 461 var activeUrl = location.pathname.split("/")[2]; 462 navList = $(".side-category li,.sp-menu-box dd ul li").find("a"); 463 navList.each(function () { 464 if ($(this).attr("href").split("/")[2] == activeUrl) { 465 $(this).parent().addClass("active"); 466 }; 467 }); 468 if(location.pathname == "/line/") { $(".side-line-nav1").addClass("active");} 469 if(document.URL.match("/line/index.html#tab1")) { $("li").removeClass("active"); $(".side-line-nav1").addClass("active");} 470 if(document.URL.match("/line/index.html#tab2")) { $("li").removeClass("active"); $(".side-line-nav2").addClass("active");} 471 if(document.URL.match("/line/fare/fare.html")) { $("li").removeClass("active"); $(".side-line-nav3").addClass("active");} 472 if(document.URL.match("/line/ticket/ticket.html")) { $("li").removeClass("active"); $(".side-line-nav4").addClass("active");} 473 if(document.URL.match("/line/ticket/ticket_20220401.html")) { $("li").removeClass("active"); $(".side-line-nav4").addClass("active");} 474 if(document.URL.match("/line/ticket/bustoku.html")) { $("li").removeClass("active");} 475 if(document.URL.match("/line/ticket/tabeles.html")) { $("li").removeClass("active"); $(".side-line-nav5").addClass("active");} 476 if(document.URL.match("/line/ticket/counter.html")) { $("li").removeClass("active"); $(".side-line-nav6").addClass("active");} 477 if(document.URL.match("/line/fare/disability.html")) { $("li").removeClass("active"); $(".side-line-nav7").addClass("active");} 478 /* ãµã¤ãã¡ãã¥ã¼ã¯ãªãã¯æãã¿ãã«ã¬ã³ã表示 */ 479 $('.side-tab-list li').click(function () { 480 var index = $('.side-tab-list li').index(this); 481 $('.common-tab-box .section').css('display', 'none'); 482 $('.common-tab-box .section').eq(index).css('display', 'block'); 483 $('.side-tab-list li').removeClass('active'); 484 $('.common-tab-list ul li').removeClass('select'); 485 $(this).addClass('active'); 486 $('.common-tab-list ul li').eq(index).addClass('select'); 487 }); 488 }); 489 $('#inc-side-company-nav').load('/inc/side_company_nav.html',null,function(){ 490 var activeUrl = location.pathname.split("/")[2]; 491 navList = $(".side-category li,.sp-menu-box dd ul li").find("a"); 492 navList.each(function () { 493 if ($(this).attr("href").split("/")[2] == activeUrl) { 494 $(this).parent().addClass("active"); 495 }; 496 }); 497 if(document.URL.match("/company/program/")) { $("li").removeClass("active"); $(".side-company-nav0").addClass("active");}
498 if(document.URL.match("/company/program/environment.html")) { $("li").removeClass("active"); $(".side-company-nav1").addClass("active");} 499 if(document.URL.match("/company/program/miura.html")) { $("li").removeClass("active"); $(".side-company-nav2").addClass("active");} 500 if(document.URL.match("/company/program/kamakura.html")) { $("li").removeClass("active"); $(".side-company-nav3").addClass("active");} 501 if(document.URL.match("/company/program/tokyo.html")) { $("li").removeClass("active"); $(".side-company-nav4").addClass("active");} 502 if(document.URL.match("/company/outline/")) { $("li").removeClass("active"); $(".side-company-nav5").addClass("active");} 503 $(".side-category .pulldown .ttl").on("click",function(){ 504 $(this).next().slideToggle(0); 505 $(this).toggleClass("on"); 506 }); 507 if(document.URL.match("/company/program/")) { 508 $('.side-category .company-cate .ttl').addClass("on"); 509 $('.side-category .company-cate ul').show(); 510 } 511 if(document.URL.match("/company/outline/")) { 512 $('.side-category .company-guide .ttl').addClass("on"); 513 $('.side-category .company-guide ul').show(); 514 } 515 }); 516 $('#inc-side-recruit-nav').load('/inc/side_recruit_nav.html',null,function(){ 517 var activeUrl = location.pathname.split("/")[2]; 518 navList = $(".side-category li,.sp-menu-box dd ul li").find("a"); 519 navList.each(function () { 520 if ($(this).attr("href").split("/")[2] == activeUrl) { 521 $(this).parent().addClass("active"); 522 }; 523 }); 524 if(document.URL.match("/recruit/driver/driver.html")) { $("li").removeClass("active"); $(".side-recruit-nav1").addClass("active");} 525 if(document.URL.match("/recruit/driver/training.html")) { $("li").removeClass("active"); $(".side-recruit-nav2").addClass("active");} 526 if(document.URL.match("/recruit/driver/commission.html")) { $("li").removeClass("active"); $(".side-recruit-nav3").addClass("active");} 527 if(document.URL.match("/recruit/driver/driver2.html")) { $("li").removeClass("active"); $(".side-recruit-nav4").addClass("active");} 528 if(document.URL.match("/recruit/driver/flow1.html")) { $("li").removeClass("active"); $(".side-recruit-nav5").addClass("active");} 529 if(document.URL.match("/recruit/driver/flow2.html")) { $("li").removeClass("active"); $(".side-recruit-nav6").addClass("active");} 530 if(document.URL.match("/recruit/driver/works.html")) { $("li").removeClass("active"); $(".side-recruit-nav7").addClass("active");} 531 if(document.URL.match("/recruit/driver/voice.html")) { $("li").removeClass("active"); $(".side-recruit-nav8").addClass("active");} 532 if(document.URL.match("/recruit/comprehensive/fresh.html")) { $("li").removeClass("active"); $(".side-recruit-nav9").addClass("active");} 533 if(document.URL.match("/recruit/comprehensive/career.html")) { $("li").removeClass("active"); $(".side-recruit-nav10").addClass("active");} 534 if(document.URL.match("/recruit/sales/fresh.html")) { $("li").removeClass("active"); $(".side-recruit-nav11").addClass("active");} 535 if(document.URL.match("/recruit/sales/index.html")) { $("li").removeClass("active"); $(".side-recruit-nav12").addClass("active");} 536 if(document.URL.match("/recruit/sales/parttime.html")) { $("li").removeClass("active"); $(".side-recruit-nav13").addClass("active");} 537 if(document.URL.match("/recruit/sales/parttime02.html")) { $("li").removeClass("active"); $(".side-recruit-nav14").addClass("active");} 538 if(document.URL.match("/recruit/crew/fresh.html")) { $("li").removeClass("active"); $(".side-recruit-nav15").addClass("active");} 539 if(document.URL.match("/recruit/crew/career.html")) { $("li").removeClass("active"); $(".side-recruit-nav16").addClass("active");} 540 $(".sidebar .side-category .pulldown .ttl").on("click",function(){ 541 $(this).next().slideToggle(0); 542 $(this).toggleClass("on"); 543 }); 544 $('.category1 .side-category').find('dd').each(function(){ 545 if ($(this).is('.recruit-cate1')){ 546 $(this).children(".ttl").addClass("on"); 547 $(this).children("ul").show(); 548 } 549 }); 550 $('.category2 .side-category').find('dd').each(function(){ 551 if ($(this).is('.recruit-cate2')){ 552 $(this).children(".ttl").addClass("on"); 553 $(this).children("ul").show(); 554 } 555 }); 556 $('.category3 .side-category').find('dd').each(function(){ 557 if ($(this).is('.recruit-cate3')){ 558 $$(this).children(".ttl").addClass("on"); 559 $(this).children("ul").show(); 560 } 561 }); 562 $('.category4 .side-category').find('dd').each(function(){ 563 if ($(this).is('.recruit-cate4')){ 564 $(this).children(".ttl").addClass("on"); 565 $(this).children("ul").show(); 566 } 567 }); 568 }); 569 });
570 571 $(function() { 572 $('.common-tab-list ul li').click(function() { 573 var num = $(this).parent().children('li').index(this); 574 $(this).parent('.common-tab-list ul').each(function(){ 575 $('>li',this).removeClass('select').eq(num).addClass('select'); 576 }); 577 $(this).parent().parent().next().children('.section').hide().eq(num).show(); 578 }); 579 // 宿å¸ãã¼ã¸åå¥å¯¾å¿ 580 if(window.location.pathname == '/line/ticket/ticket.html'){ 581 var ref = document.referrer; 582 if(ref == 'https://hptest.keikyu-bus.co.jp/' || ref == 'https://www.keikyu-bus.co.jp/'){ 583 $("#tab2").trigger('click'); 584 } 585 } 586 }); 587 /* ã³ã³ãã³ãã¿ãã¯ãªãã¯æããµã¤ãã¡ãã¥ã¼ã«ã¬ã³ã表示 */ 588 $('.common-tab-list.current ul li').click(function () { 589 var index = $('.common-tab-list.current ul li').index(this); 590 $('.common-tab-box .section').css('display', 'none'); 591 $('.common-tab-box .section').eq(index).css('display', 'block'); 592 $('.common-tab-list.current ul li').removeClass('select'); 593 $('.side-tab-list li').removeClass('active'); 594 $(this).addClass('select'); 595 $('.side-tab-list li').eq(index).addClass('active'); 596 }); 597 /* ã¹ããã¡ãã¥ã¼ã¯ãªãã¯æãã¿ãã«ã¬ã³ã表示 */ 598 $('.sp-tab-list1 li').click(function () { 599 var index = $('.sp-tab-list1 li').index(this); 600 $('.common-tab-box .section').css('display', 'none'); 601 $('.common-tab-box .section').eq(index).css('display', 'block'); 602 $('.sp-tab-list1 li').removeClass('active'); 603 $('.common-tab-list ul li').removeClass('select'); 604 $(this).addClass('active'); 605 $('.common-tab-list ul li').eq(index).addClass('select'); 606 $(".sp-menu-box").slideToggle(0); 607 }); 608 $('.sp-tab-list4 li').click(function () { 609 var index = $('.sp-tab-list4 li').index(this); 610 $('.common-tab-box .section').css('display', 'none'); 611 $('.common-tab-box .section').eq(index).css('display', 'block'); 612 $('.sp-tab-list4 li').removeClass('active'); 613 $('.common-tab-list ul li').removeClass('select'); 614 $(this).addClass('active'); 615 $('.common-tab-list ul li').eq(index).addClass('select'); 616 $(".sp-menu-box").slideToggle(0); 617 }); 618 /* ãããã¼ã¡ãã¥ã¼ã¯ãªãã¯æãã¿ãã«ã¬ã³ã表示 */ 619 $('.head-tab-list1 li').click(function () { 620 var index = $('.head-tab-list1 li').index(this); 621 $('.common-tab-box .section').css('display', 'none'); 622 $('.common-tab-box .section').eq(index).css('display', 'block'); 623 $('.common-tab-list ul li').removeClass('select'); 624 $('.common-tab-list ul li').eq(index).addClass('select'); 625 }); 626 $('.head-tab-list4 li').click(function () { 627 var index = $('.head-tab-list4 li').index(this); 628 $('.common-tab-box .section').css('display', 'none'); 629 $('.common-tab-box .section').eq(index).css('display', 'block'); 630 $('.common-tab-list ul li').removeClass('select'); 631 $('.common-tab-list ul li').eq(index).addClass('select'); 632 }); 633}); 634 635/* æ°çã¢ã¤ã³ã³è¨ç½®ç¨ */ 636$(window).on("load", function () { 637 $("li").each(function () { 638 if ($(this).hasClass("new")) { 639 $(this).children(".txt,.txt2").wrapInner("<span></span>"); 640 } 641 if ($(this).hasClass("ico-night")) { 642 $(this).children("a").wrapInner("<span></span>"); 643 } 644 }); 645}); 646
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.