1$(function() { 2 3 //del 2021.09.06 4 /* pagetop 5 ---------------------------------*/ 6 // var pagetop = $("#pageTop"); 7 // if(pagetop.length > 0){ 8 // $(window).scroll(function () { 9 // if ($(this).scrollTop() > 100) { 10 // pagetop.fadeIn(); 11 // } else { 12 // pagetop.fadeOut(); 13 // } 14 // }); 15 // // positionY ----- 16 // $(window).bind("scroll", function() { 17 // scrollHeight = $(document).height(); 18 // scrollPosition = $(window).height() + $(window).scrollTop(); 19 // footHeight = $("#footer").height(); 20 // footTop = $("#footer").offset().top; 21 // pagetopHeight = pagetop.height(); 22 // if ( scrollHeight - scrollPosition <= footHeight ) { 23 // pagetop.css({ "position":"absolute","top": footTop - pagetopHeight - 10 + "px", "bottom":"auto" }); 24 // } else { 25 // pagetop.css({ "position":"fixed", "bottom": "10px", "top":"auto" }); 26 // } 27 // }).scroll().resize(); 28 29 // // click action ----- 30 // $("#pageTop a").click(function(){ 31 // $('body,html').animate({ 32 // scrollTop: 0 33 // }, 500); 34 // return false; 35 // }); 36 37 // } 38 39 /* resize action 40 ---------------------------------*/ 41 var checkWidth = function() { 42 var browserWidth = $(window).width(); 43 /*if(browserWidth <= 640){*/ 44 if(browserWidth <= 480){ 45 $('.listSelect').addClass('sp'); 46 }else{ 47 $('.listSelect').removeClass('sp'); 48 } 49 }; 50 checkWidth(); 51 $(window).resize(checkWidth); 52 53 //del 2021.09.06 54 /* header 55 ---------------------------------*/ 56 // (function(){ 57 // var scrollTop = 0; 58 // var _callbacks = { 59 // beforeOpen : function () { 60 // scrollTop = $(window).scrollTop(); 61 // }, 62 // open : function(){ 63 // _callbacks.resize(); 64 // }, 65 // resize : function(){ 66 // $('body, .mfp-bg, #wrapper').css({ 67 // height : $(window).innerHeight(), 68 // minHeight : $('.mfp-wrap .mfp-content').outerHeight() 69 // }); 70 // }, 71 // afterClose : function(){ 72 // $('body, #wrapper').css({ 73 // height : 'auto', 74 // minHeight : '' 75 // }); 76 // $(window).scrollTop(scrollTop); 77 // } 78 // }; 79 // $('#header .menuBtn a').magnificPopup({ 80 // type: 'inline', 81 // preloader: false, 82 // callbacks : _callbacks 83 // }); 84 // })(); 85 // $('#headerMenuSp .mypage a').on('click',function(){ 86 // $('#headerMenuSp .mypageMenu').slideToggle(); 87 // $('#headerMenuSp').toggleClass('open'); 88 // return false; 89 // }); 90 91 92 //del 2021.09.06 93 /* header scroll 94 ---------------------------------*/ 95 // ( function () { 96 // var nav = jQuery('.headerArea'); 97 98 // // ã¡ãã¥ã¼ã®top座æ¨ãåå¾ãã 99 // if(nav.length > 0){ 100 // var offsetTop = nav.offset().top; 101 102 // var floatMenu = function() { 103 // var ScrTop = $(window).scrollTop(); 104 105 // // ã¹ã¯ãã¼ã«ä½ç½®ãã¡ãã¥ã¼ã®top座æ¨ãè¶ ãããåºå®ã«ãã 106 // if (ScrTop > offsetTop) { 107 // nav.addClass('fixed'); 108 // } else { 109 // nav.removeClass('fixed'); 110 // } 111 // }; 112 113 // } 114 // $(window).on('load.header, scroll.header, touchmove.header', floatMenu) 115 // } )(); 116 117 118 119 120 121 122 /* searchTab 123 ---------------------------------*/ 124 // è¿½å æ¡ä»¶ã¢ã³ã¼ãã£ãªã³ 125 $('#wrapper .searchBox .closeBox a').on('click', function() { 126// var scposi = $(this).closest('div').parents().offset().top; 127 var scposi = $(this).closest('div').parents().parents().prev().offset().top; 128 $(this).parent().prev().slideToggle(); 129 $(this).parent().toggleClass('open'); 130 // if (!$(this).parent().hasClass('open')) { // del 2021.09.06 BR 131 // $('body,html').animate({ scrollTop: scposi }); 132 // } 133 //console.log($(this).closest('div')) 134 return false; 135 }); 136 // ãã§ãã¯ããã¯ã¹å ±é 137 $('.searchSelectBox input[type="checkbox"]').each(function(){ 138 if ($(this).prop('checked')) { 139 $(this).closest('label').addClass('checked'); 140 } else { 141 $(this).closest('label').removeClass('checked'); 142 } 143 }); 144 $('.searchSelectBox input[type="checkbox"]').on('change', function(){ 145 if ($(this).prop('checked')) { 146 $(this).closest('label').addClass('checked'); 147 } else { 148 $(this).closest('label').removeClass('checked'); 149 } 150 }); 151 // åéç§ç®ããã ããæ¡ä»¶ã¢ã³ã¼ãã£ãªã³ 152 $('#wrapper .listSelectBox p').on('click', function() { 153 $(this).parent().next().slideToggle(); 154 $(this).parent().toggleClass('open'); 155 }); 156 // ie8ã¯åéç§ç®ãã¢ã³ã¼ãã£ãªã³ã«ããéãã¦ãã 157 if (window.navigator.userAgent.toLowerCase().indexOf("msie 8.") != -1) { 158 $('#wrapper .listSelectBox.subjects p').each(function() { 159 $(this).parent().hide(); 160 $(this).parent().next().toggle(); 161 $(this).parent().toggleClass('open'); 162 }); 163 } 164 // åéç§ç®ã«ãã´ãªé¸æ 165 $('.listSelectBox .subjectCheck li input[type="checkbox"]').on('change', function(){ 166 if ($(this).hasClass('cat')) { 167 $(this).closest('ul').find('input[type="checkbox"]').prop('checked', $(this).prop('checked')); 168 } 169 $(this).closest('ul').find('input[type="checkbox"]').each(function(){ 170 if ($(this).prop('checked')) { 171 $(this).closest('label').addClass('checked'); 172 } else { 173 $(this).closest('label').removeClass('checked'); 174 } 175 }); 176 }); 177 // é常å¤ã®å¤åå½¢æ ï¼ææ¥ãããªã¯ã¹ 178 $('.partMatrix th input[type="checkbox"]').on('change', function(){ 179 var th = $(this).closest('th'); 180 if ($(th).hasClass('row_header')) { 181 if ($(this).prop('checked')) { 182 // console.log('row_header add_check'); 183 // console.log($(elem).parent().find('td input')); 184 $(th).parent().find('td input').each(function(){ 185 $(this).prop('checked', true); 186 }) 187 } else { 188 $(th).parent().find('td input').each(function(){ 189 $(this).prop('checked', false); 190 }) 191 } 192 } 193 if ($(th).hasClass('col_header')) { 194 var w=$(this).val(); 195 var c=$(this).prop('checked') ? true : false; 196 console.log(w,c); 197 $(th).closest('table').find('td input').each(function(){ 198 if ($(this).hasClass('w_'+w)) { 199 $(this).prop('checked', c); 200 } 201 }); 202 } 203 });
204 205 206 /* height 207 ---------------------------------*/ 208 // ã¯ããã¦ã®æ¹ã¸ 209 if ($('#wrapper .aboutBox ul li , #wrapper .agencyList li').get(0)) { 210 $("#wrapper .aboutBox ul li , #wrapper .agencyList li").heightLine(); 211 } 212 // æ±äººè©³ç´°é¨åï¼æ¤ç´¢ãæ°ã«ãªããªã¹ããªã©ãé©ç¨ï¼ 213 //$('#wrapper .recruitConditions').each(function(){ 214 // $(this).find('li').heightLine(); 215 //}); 216 $('#wrapper .recruitConditions').each(function(){ 217 for (var i=0; i<10; i++) { 218 $(this).find('.heightLineGroup'+i).heightLine(); 219 } 220 }); 221 222 /* recruitBnr è¿½å¾ 223 ---------------------------------*/ 224 (function(){ 225 var $recruitBnr = $("#recruitBnr"); 226 if($recruitBnr.length){ 227 var menuTopMargin = 10; 228 var $parent = $recruitBnr.parent().parent(); 229 var $recruitBnrBox = $('.recruitBnrBox'); 230 var height = $recruitBnr.height(); 231 var parentY = $parent.offset().top; 232 var parentH = $parent.height(); 233 var targetScrollValue = parentY - menuTopMargin; 234 var parentScrollValue = ((parentY + parentH) - (menuTopMargin + he
234ight)); 235 if($('#recruitBnrPc').is(':visible')){ 236 $(window).scroll(function() { 237 var wScrollvalue = $(window).scrollTop(); 238 var top = 0; 239 240 //$("span.test").text(targetScrollValue+':'+parentScrollValue+':'+wScrollvalue+':'+parentY); 241 if(wScrollvalue > targetScrollValue){ 242 if(wScrollvalue > parentScrollValue){ 243 top = parentH - height; 244 }else{ 245 top = wScrollvalue - parentY + menuTopMargin; 246 } 247 }else{ 248 top = "0"; 249 } 250 $recruitBnr.css({ top : top }); 251 }).scroll(); 252 } 253 $(window).on('resize.scrollRecruitBnr', function(){ 254 $recruitBnr.width($parent.width()); 255 height = $recruitBnr.height(); 256 $recruitBnrBox.height(height); 257 parentY = $parent.offset().top; 258 parentH = $parent.height(); 259 targetScrollValue = parentY - menuTopMargin; 260 parentScrollValue = ((parentY + parentH) - (menuTopMargin + height)); 261 }).trigger('resize.scrollRecruitBnr'); 262 263 $recruitBnr.find('.bnrBtnArea a[href^=#]').click(function() { 264 var speed = 1000; // ããªç§ 265 var href= $(this).attr("href"); 266 var target = $(href == "#" || href == "" ? 'html' : href); 267 var hd = $('.headerArea').outerHeight(); 268 var position = target.offset().top - hd - 10; 269 $('body,html').animate({scrollTop:position}, speed, 'swing'); 270 return false; 271 }); 272 } 273 })(); 274 275 276 /* checkbox ããããã¨ã³ããªã¼ 277 ---------------------------------*/ 278 //var chkbox = $('#wrapper .locationSelect input[type=checkbox]'); 279 //function onChecked() { 280 // var isChecked = $(this).prop('checked'), 281 // myparent = $(this).closest('td'); 282 // 283 // if (isChecked) { 284 // myparent.addClass('checked'); 285 // } else { 286 // myparent.removeClass('checked'); 287 // } 288 //} 289 //chkbox.on('click', onChecked); 290 //chkbox.filter(':checked').each(function () { 291 // $(this).triggerHandler('click'); 292 //}); 293 294 295 /* btnFavorite 296 --------------------------------- 297 if ($('#wrapper .btnFavorite').get(0)) { 298 $('#wrapper .btnFavorite').on('click', function() { 299 $(this).toggleClass('on'); 300 return false; 301 }); 302 } 303 */ 304 305 /* åéç§ç® 306 ---------------------------------------*/ 307 //$('.listSelectBox').each(function(){ 308 // var $selectBox = $(this), 309 // $list = $selectBox.find('.listSelectItem'), 310 // $inputs = $selectBox.find('.subjectCheck li input[type="checkbox"]'); 311 // 312 // $inputs.on('change', function(){ 313 // var html = ''; 314 // /* add start */ 315 // if ($(this).hasClass('cat') && $(this).prop('checked')) { 316 // $(this).closest('ul').find('input[type="checkbox"]').prop('checked', true); 317 // } 318 // /* add end */ 319 // $inputs.each(function(index, value) { 320 // if (this.checked){ 321 // html += ('<li>' + $(this).closest('label').text() + '</li>'); 322 // } 323 // }); 324 // $list 325 // .css('display', (html) ? 'inline-block' : 'none') 326 // .html(html); 327 // }); 328 //}); 329 330 /* åéç§ç®ããã ããæ¡ä»¶ checkbox 331 ---------------------------------------*/ 332 $('.listSelectBox').each(function(){ 333 var selectedName = ''; 334 $(this).find('input[type="checkbox"]:checked').each(function(){ 335 if (selectedName != '') { 336 selectedName = selectedName + 'ï¼'; 337 return false; 338 } 339 selectedName = $(this).parent().text(); 340 }); 341 $(this).find('.listSelectItem').text(selectedName); 342 }); 343 $('.listSelectBox li input[type="checkbox"]').on('change', function(){ 344 var selectedName = ''; 345 $(this).closest('.listSelect').find('input[type="checkbox"]:checked').each(function(){ 346 if (selectedName != '') { 347 selectedName = selectedName + '+'; 348 return false; 349 } 350 selectedName = $(this).parent().text(); 351 }); 352 $(this).closest('.listSelectBox').find('.listSelectItem').text(selectedName); 353 }); 354 355 356 /* select design 357 ---------------------------------------*/ 358 //var $easySelectBox = $('.design-select-box'); 359 //if($easySelectBox.length) $easySelectBox.easySelectBox(); 360 $(".selectBox select").change(function(){ 361 $(this).next("div.select").children("span.selected").text($("option:selected", this).text()); 362 }); 363 364 /* sp privacy popup 365 ---------------------------------------*/ 366 (function(){ 367 var scnTop; 368 var _callbacks = { 369 open : function(){ 370 _callbacks.resize(); 371 }, 372 resize : function(){ 373 scnTop = $(window).scrollTop(); 374 $('body, .mfp-bg, #wrapper').css({ 375 height : $(window).innerHeight(), 376 minHeight : $('.mfp-wrap .mfp-content').outerHeight() 377 }); 378 $('.mfp-wrap').css("top", "0px"); 379 }, 380 afterClose : function(){ 381 $('body, #wrapper').css({ 382 height : 'auto', 383 minHeight : '' 384 }); 385 $('body,html').scrollTop(scnTop); 386 } 387 }; 388 $('.open-privacy-popup').magnificPopup({ 389 type: 'inline', 390 preloader: false, 391 alignTop: true, 392 callbacks : _callbacks 393 }); 394 })(); 395 396 /* clear search conditions 397 ---------------------------------------*/ 398 $("[name=clear]").each(function(){ 399 $(this).on("click", function(){ 400 var $target = $(this).closest('form'); 401 $target.find('select').each(function(){ 402 $(this).val(''); 403 $(this).next("div.select").children("span.selected").text($("option:selected", this).text()); 404 }); 405 $target.find('input[type=checkbox]').each(function(){ 406 $(this).prop('checked', false); 407 $(this).closest('label').removeClass('checked'); 408 }); 409 $target.find('.listSelectItem').each(function(){ 410 $(this).text(''); 411 }); 412 $target.find('input[type=text]').each(function(){ 413 $(this).val(''); 414 }); 415 $target.find('#calendar,#calendar-sp').each(function(){ // chg 2021.09.06 BR 416 $.multicalendar.getObject($('#calendar,#calendar-sp')).clearSelected(); 417 }); 418 $target.find('#calendar2').each(function(){ 419 $.multicalendar.getObject($('#calendar2')).clearSelected(); 420 }); 421 // 2019.05.13 422 document.cookie = 'CC_LAST_JOB_SEARCH_CONDITIONS=""; max-age=0; path=/'; 423 }); 424 }); 425 426 /* favorite 427 ---------------------------------------*/ 428 $("[id^=favo_]").on("click", function(){ 429 $.ajax({
430 url: '/mypage/addFavorite.php', 431 data: { 432 offer_id : $(this).children('[name=oid]').val(), 433 add : ($(this).hasClass('on') ? 'true' : 'false') 434 }, 435 dataType: 'json', 436 type: 'GET', 437 context: this, 438 success: function(json){ 439 if (json.status != 'OK') { 440 $(this).prop('disabled', true); 441 } else { 442 $(this).toggleClass('on'); 443 if (window.navigator.userAgent.toLowerCase().indexOf("msie 8.") != -1) { 444 window.location.reload(); 445 } 446 } 447 }, 448 error: function(json){ 449 $(this).prop('disabled', true); 450 }, 451 cache: false 452 }); 453 }); 454 455 /* location.hash 456 ---------------------------------------*/ 457 var elem = window.location.hash; 458 if ($(elem)[0]) { 459 //var pos = $(elem).offset().top - 5; 460 var hd = $('.headerArea').outerHeight(); 461 var pos = $(elem).offset().top - hd - 10; 462 $('body,html').animate({scrollTop:pos}, 'slow', 'swing'); 463 } 464 465 /* to form 466 ---------------------------------------*/ 467 $("#to_form").click(function(){ 468 var speed = 500; // ããªç§ 469 var href= $(this).attr("href"); 470 var target = $(href == "#" || href == "" ? 'html' : href); 471 var hd = $('.headerArea').outerHeight(); 472 var position = target.offset().top - hd - 10; 473 $('body,html').animate({scrollTop:position}, speed, 'swing'); 474 return false; 475 }); 476 477 /* alert 478 ---------------------------------------*/ 479 (function(){ 480 var _callbacks = { 481 open : function(){ 482 _callbacks.resize(); 483 }, 484 resize : function(){ 485 scnTop = $(window).scrollTop(); 486 $('body, .mfp-bg, #wrapper').css({ 487 height : $(window).innerHeight(), 488 minHeight : $('.mfp-wrap .mfp-content').outerHeight() 489 }); 490 $('.mfp-wrap').css("top", "0px"); 491 }, 492 afterClose : function(){ 493 $('body, #wrapper').css({ 494 height : 'auto', 495 minHeight : '' 496 }); 497 $('body,html').scrollTop(scnTop); 498 } 499 }; 500 $(".alertTit").magnificPopup({ 501 type: 'inline', 502 preloader: false, 503 alignTop: true, 504 //modal: true, 505 callbacks: _callbacks 506 }); 507 })(); 508 509 /* career mail 510 ---------------------------------------*/ 511 $('.careerMail').each(function(){ 512 $(this).on('click', function(){ 513 var result = window.confirm('ã±ã¢ããããã£ãªã¢ããã®ã¡ã¼ã«ãåä¿¡ããããCareNet.comã®\nè¨å®ã夿´ãã¦ãããããã§ããï¼'); 514 if (result) { 515 $.ajax({
516 url: '/mypage/acceptCareerMail.php', 517 dataType: 'json', 518 type: 'GET', 519 cache: false 520 }).done(function(json){ 521 if (json.status == 'OK') { 522 $('.rightCont .careerMail').next().css('margin-top','0'); 523 $('.careerMail').remove(); 524 alert('è¨å®ã夿´ãã¾ããã\n次åã®é ä¿¡ããå¾ ã¡ãã ããã'); 525 location.reload(); 526 } else { 527 alert('夿´ã§ãã¾ããã§ããã\næéã空ãã¦å度ã試ããã ããã'); 528 } 529 }).fail(function(json){ 530 alert('夿´ã§ãã¾ããã§ããã\næéã空ãã¦å度ã試ããã ããã'); 531 }); 532 }; 533 }); 534 }); 535 536 // ãã¼ã¸è¡¨ç¤º add 2021.09.06 BR ããããã¼ã¸ã«ç§»è¡ 537 // $(document).ready(function(){ 538 // // åç¬ã®æ¥ä»å ¥å 539 // $('#calendar_from, #calendar_to, #calendar_from2, #calendar_to2 , #calendar_from-sp,#calendar_to-sp').datepicker({ showOn: "button" }); 540 // $('#calendar_from').change(function(){ 541 // $('#calendar_to , #calendar_to-sp').datepicker('option', 'minDate', $('#calendar_from,#calendar_from-sp').val()); 542 // }); 543 // $('#calendar_from2').change(function(){ 544 // $('#calendar_to2').datepicker('option', 'minDate', $('#calendar_from2').val()); 545 // }); 546 // // ã«ã¬ã³ãã¼è¡¨ç¤º 547 // // $('#calendar').multicalendar({ hidePrevNext: true, setInput: true, inputName : 'work_date' }); 548 // // æç§»å 549 // $('#ext-month-prev').on('click',function(){ 550 // $.datepicker._adjustDate('#calendar', -1, "M"); 551 // }); 552 // $('#ext-month-prev-sp').on('click',function(){ 553 // $.datepicker._adjustDate('#calendar-sp', -1, "M"); 554 // }); 555 // $('#ext-month-next').on('click',function(){ 556 // $.datepicker._adjustDate('#calendar', +1, "M"); 557 // }); 558 // $('#ext-month-next-sp').on('click',function(){ 559 // $.datepicker._adjustDate('#calendar-sp', +1, "M"); 560 // }); 561 // // ã¿ãå¶å¾¡ 562 // $('.searchMenu li').click(function(){ 563 // if ($(this).hasClass("menu02")) { 564 // $('.menu01act').hide(); 565 // $('.menu03act').hide(); 566 // $('.menu02act').show(); 567 // // $('#dlpref').addClass('drkGrn'); 568 // // $('#dlsubjects').removeClass('drkGrn'); 569 // $('#dlfacility,#dlfacility-sp').removeClass('drkGrn'); 570 // // $('#dlfreeword').removeClass('drkGrn'); 571 // $('#searchForm,#searchForm-sp').attr('action', '/search/parttime.php'); 572 // } else if ($(this).hasClass("menu03")) { 573 // $('.menu01act').hide(); 574 // $('.menu02act').hide(); 575 // $('.menu03act').show(); 576 // // $('#dlpref').removeClass('drkGrn'); 577 // // $('#dlsubjects').addClass('drkGrn'); 578 // $('#dlfacility,#dlfacility-sp').removeClass('drkGrn'); 579 // // $('#dlfreeword').addClass('drkGrn'); 580 // $('#searchForm,#searchForm-sp').attr('action', '/search/spot.php'); 581 // } else { 582 // $('.menu02act').hide(); 583 // $('.menu03act').hide(); 584 // $('.menu01act').show(); 585 // // $('#dlpref').addClass('drkGrn'); 586 // // $('#dlsubjects').removeClass('drkGrn'); 587 // $('#dlfacility,#dlfacility-sp').addClass('drkGrn'); 588 // // $('#dlfreeword').removeClass('drkGrn'); 589 // $('#searchForm,#searchForm-sp').attr('action', '/search/fulltime.php'); 590 // } 591 // }); 592 // }); 593// cn 594 595}); 596 597 598// add common2021.js 599(function ($) { 600 'use strict'; 601 602 // PC/SPå¤å® 603 // ã¹ã¯ãã¼ã«ã¤ãã³ã 604 // ãªãµã¤ãºã¤ãã³ã 605 // ã¹ã ã¼ãºã¹ã¯ãã¼ã« 606 607 /* ãããã */ 608 var break_point = 768;//ãã¬ã¤ã¯ãã¤ã³ã 609 var mql = window.matchMedia('screen and (max-width: '+break_point+'px)');//ãMediaQueryListã®çæ 610 var deviceFlag = mql.matches ? 1 : 0; // 0 : PC , 1 : SP 611 612 // pagetop 613 var timer = null; 614 var $pageTop = $('#pageTop'); 615 $pageTop.hide(); 616 617 // ã¹ã¯ãã¼ã«ã¤ãã³ã 618 $(window).on('scroll touchmove', function () { 619 620 // ã¹ã¯ãã¼ã«ä¸ãå¤å® 621 if (timer !== false) { 622 clearTimeout(timer); 623 } 624
625 // 200mså¾ã«ãã§ã¼ãã¤ã³ 626 timer = setTimeout(function () { 627 if ($(this).scrollTop() > 100) { 628 $('#pageTop').fadeIn('normal'); 629 } else { 630 $pageTop.fadeOut(); 631 } 632 }, 200); 633 634 var scrollHeight = $(document).height(); 635 var scrollPosition = $(window).height() + $(window).scrollTop(); 636 var footHeight = parseInt($('.c-footer').innerHeight()); 637 638 639 if (scrollHeight - scrollPosition <= footHeight) { 640 // ç¾å¨ã®ä¸ããä½ç½®ããããã¿ã¼ã®é«ãã®ä½ç½®ã«ã¯ãã£ãã 641 $pageTop.css({ 642 'position': 'absolute', 643 'bottom': footHeight 644 }); 645 }else { // â SP 646 $pageTop.css({ 647 'position': 'fixed', 648 'bottom': '20px' 649 }); 650 } 651 }); 652 653 654 655 // ãªãµã¤ãºã¤ãã³ã 656 657 var checkBreakPoint = function (mql) { 658 deviceFlag = mql.matches ? 1 : 0;// 0 : PC , 1 : SP 659 // â PC 660 if (deviceFlag == 0) { 661 } else { 662 // âSP 663 } 664 deviceFlag = mql.matches; 665 } 666 667 // ãã¬ã¤ã¯ãã¤ã³ãã®ç¬éã«çºç« 668 mql.addListener(checkBreakPoint);//MediaQueryListã®changeã¤ãã³ãã«ç»é² 669 670 // ååãã§ã㯠671 checkBreakPoint(mql); 672 673 674 // ã¹ã ã¼ãºã¹ã¯ãã¼ã« 675 // #ã§å§ã¾ãã¢ã³ã«ã¼ãã¯ãªãã¯ããå ´åã«ã¹ã ã¼ã¹ã¹ã¯ãã¼ã« 676 $('a[href^="#"]').on('click', function () { 677 var speed = 500; 678 // ã¢ã³ã«ã¼ã®å¤åå¾ 679 var href = $(this).attr('href'); 680 // ç§»åå ãåå¾ 681 var target = $(href == '#' || href == '' ? 'html' : href); 682 // ç§»åå ãæ°å¤ã§åå¾ 683 var position = target.offset().top; 684 685 // ã¹ã ã¼ã¹ã¹ã¯ãã¼ã« 686 $('body,html').animate({ 687 scrollTop: position - $('.c-header').innerHeight() 688 }, speed, 'swing'); 689 return false; 690 }); 691 692 // image bg 693 (function () { 694 $.fn.imageBg = function () { 695 var $this = this; 696 var imgSrc = ''; 697 if (deviceFlag) { 698 /* sp */ 699 imgSrc = $this.find('img').eq(1).length > 0 ? $this.find('img').eq(1).attr('src') : $this.find('img').eq(0).attr('src'); 700 } else { 701 imgSrc = $this.find('img').eq(0).attr('src'); 702 } 703 704 $this.find('img').hide(); 705 $this.css({ 706 backgroundImage: 'url("' + imgSrc + '")' 707 }); 708 } 709 //âå®è¡ 710 $('.js-img-bg').each(function () { 711 $(this).imageBg(); 712 }); 713 })(); 714 715 716 //nav 717 var navObject = (function () { 718 var cls = 'is-active'; 719 720 var Nav = function () { 721 var _this = this; 722 723 this.$btn = $('.js-hamburger'); 724 this.$btn_close = $('.js-close'); 725 this.$target = $('.js-hamburger-target'); 726 this.$link = $('.js-hamburger-target .nav-link'); 727 728 this.active_flg = false; 729 730 //ãã¿ã³ã¯ãªã㯠731 this.$btn.on('click', function () { 732 (!_this.active_flg) ? _this.on() : _this.off(); 733 }); 734 735 this.$target.on('click', function () { 736 (!_this.active_flg) ? _this.on() : _this.off(); 737 }); 738 739 this.$link.on('click', function () { 740 (!_this.active_flg) ? _this.on() : _this.off(); 741 }); 742 743 744 745 }; 746 747 Nav.prototype = { 748 on: function () { 749 var _this = this; 750 _this.$btn.addClass(cls); 751 _this.$target.addClass(cls); 752 _this.active_flg = true; 753 }, 754 off: function () { 755 var _this = this; 756 _this.$btn.removeClass(cls); 757 _this.$target.removeClass(cls); 758 _this.active_flg = false; 759 }, 760 }; 761 762 return Nav; 763 }()); 764 var Nav = new navObject(); 765 766 767 //ããã¼ãã£ã³ã°ããã¼ 768 (function(){ 769 if($('.c-floating-banner01-wrap').length > 0 ){ 770 var $floating_wrap = $('.c-floating-banner01-wrap'); 771 var $floating_close = $('.js-floating-close'); 772 773 $(window).on('scroll touchmove',function(){ 774 775 var scrollHeight = $(document).height(); 776 var scrollPosition = $(window).height() + $(window).scrollTop(); 777 var footHeight = parseInt($('.c-footer').innerHeight()); 778 779 780 if (scrollHeight - scrollPosition <= footHeight) { 781 // ç¾å¨ã®ä¸ããä½ç½®ããããã¿ã¼ã®é«ãã®ä½ç½®ã«ã¯ãã£ãã 782 $floating_wrap.css({ 783 'position': 'absolute', 784 'bottom': footHeight + 100 785 }); 786 }else { // â SP 787 $floating_wrap.css({ 788 'position': 'fixed', 789 'bottom': '100px' 790 });
791 } 792 }); 793 794 $floating_close.on('click',function(){ 795 $floating_wrap.fadeOut(); 796 }); 797 798 } 799 })(); 800 801 802 //ãæ°ã«å ¥ããã¿ã³ 803 (function(){ 804 var $favorite = $('.js-favorite'); 805 var $cls = 'isFavorite'; 806 $favorite.on('click',function(){ 807 var $this = $(this); 808 if($this.hasClass($cls)){ 809 $this.removeClass($cls); 810 }else { 811 $this.addClass($cls); 812 } 813 }); 814 })(); 815 816 817 //ã¿ãåãæ¿ã 818 (function(){ 819 var cls = 'is-active'; 820 var $trigger = $('.js-tab'); 821 var $target = $('.js-tab-target .scout-message'); 822 823 $trigger.on('click',function(){ 824 var $this = $(this); 825 //ãªã»ãã 2021.09.03 del 826 // $trigger.removeClass(cls); 827 // $target.removeClass(cls); 828 829 //2021.09.03 del 830 // $this.addClass(cls); 831 832 var this_data_option = $this.data('option'); 833 834 //2021.09.03 add 835 if(this_data_option === 'unread'){ 836 window.location.href = '/scout/?type=2'; 837 return false; 838 } 839 if(this_data_option === 'noreply'){ 840 window.location.href = '/scout/?type=3'; 841 return false; 842 } 843 if(this_data_option === 'replied'){ 844 window.location.href = '/scout/?type=4'; 845 return false; 846 } 847 if(this_data_option === 'all'){ 848 window.location.href = '/scout/?type=1'; 849 return false; 850 } 851 852 // 2021.09.03 del 853 // if(this_data_option === 'all'){ 854 // $target.addClass(cls); 855 // return false; 856 // } 857 858 859 860 $target.each(function(){ 861 var $this_target = $(this); 862 var this_target_option = $this_target.data('option'); 863 if(this_data_option === this_target_option){ 864 $this_target.addClass(cls); 865 866 } 867 }); 868 }); 869 870 871 })();
872 873 874 //executive-content-modal éãã 875 (function(){ 876 var $close = $('.executive-content-modal .js-close'); 877 var $target = $('.executive-content-modal'); 878 $close.on('click',function(){ 879 $target.addClass('is-hide'); 880 }); 881 })(); 882 883 884 (function(){ 885 var hash = location.hash; 886 if(hash) { 887 var target = $('[data-id="'+hash+'"]');//offset()ã使ãããjQueryãªãã¸ã§ã¯ãå 888 if(!target.length) return;/* targetããªãã£ãã¨ãã¯ãã以éã®å¦çãããªã */ 889 // ç§»åå ãæ°å¤ã§åå¾ 890 $(window).on('load',function(){ 891 history.replaceState('','','./');/* åèªã¿è¾¼ã¿ããã¨ãã«ã¹ã ã¼ã¹ã¹ã¯ãã¼ã«ããªãããã«hashãåãé¤ã */ 892 893 //loadã®ä¸ã«æ¸ããã¨ã§ãç»åãèªã¿è¾¼ãã å¾ã«å®è¡ãããããã«ãªã 894 //loadã®ä¸ã«æ¸ããªãã¨ç»åãèªã¿è¾¼ã¾ããåã«offset().topãã¦ãã¾ããããæ£ããä½ç½®ã«ãªããªã 895 var position = target.offset().top; 896 //headerã®é«ã 897 var headerHeight = $('.c-header').innerHeight(); 898 899 if(deviceFlag === 0){ 900 //pc 901 }else{ 902 //sp 903 position = position - headerHeight; 904 } 905 906 // ã¹ã ã¼ã¹ã¹ã¯ãã¼ã« 907 $('body,html').animate({scrollTop:position}, 300, 'swing'); 908 909 }); 910 } 911 })(); 912 913 914 915 916 })(jQuery);
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.