PageSourceSearch

https://www.remit.co.jp/js/common-static.js?v=20260925024334

js remit.co.jp collected 2026-09-25 02:43:47 UTC 17,829 bytes, 589 lines download raw bytes

1$(function () {
2  //Banner slider
3  var bannerSlider = $('.r-main-banner-slider');
4  if(bannerSlider.length > 0) {
5    bannerSlider.slick({
6      dots: true,
7      infinite: true,
8      speed: 400,
9      autoplay:true,
10      autoplaySpeed: 3000,
11      // prevArrow: false,
12      // nextArrow: false,
13      slidesToShow: 1,
14      slidesToScroll: 1,
15      cssEase: 'linear',
16      arrows: true,
17    });
18  }
19  /*
20   フォーム その他
21  ----------------------------*/
22  $('.other-check-js:checked').each(function(){
23    var $area = $(this).parents('li');
24    $area.find('.other-text').prop('disabled', false);
25  });
26  $('.other-check-js').on('change', function(){
27    var $area = $(this).parents('li');
28    if ($(this).is(':checked')) {
29      $area.find('.other-text').prop('disabled', false);
30    } else {
31      $area.find('.other-text').prop('disabled', true);
32    }
33  });
34
35
36  $('.name-check-js').on('change', function(){
37    $('.name-area02-js').slideToggle();
38  });
39  $('.country-mega-ignition-js').on('click', function(){
40    $('.country-option-js').slideToggle();
41  });
42  $('.country-close-js').on('click', function(){
43    $('.country-option-js').slideUp();
44  });
45
46  $('.country-name li a').on('click', function(){
47    var $val = $(this).attr('id');
48    $('.coutry-select-new-js').val($val);
49    $('.country-option-js').slideUp();
50  });
51
52    $('.country-initial li a').on('click', function(){
53      var $target = $(this).attr('class');
54      $target = '.country-modal-inner .' + $target;
55      console.log($target);
56      $($target).addClass('active');
57      $('.country-modal-js').addClass('active');
58    });
59    $('.close-modal-js').on('click', function(){
60      $('.country-modal-js').removeClass('active');
61      $(".country-modal-inner > div").each(function (i) {
62        $(this).removeClass('active');
63      });
64    });
65    $('.country-modal-inner table a').on('click', function(){
66      var $val = $(this).attr('class');
67      $('.coutry-select-new-js').val($val);
68      //reset
69      $('.country-option-js').slideUp();
70      $('.country-modal-js').removeClass('active');
71      $(".country-modal-inner > div").each(function (i) {
72        $(this).removeClass('active');
73      });
74    });
75
76  /*
77   ログイン判定
78  ----------------------------*/
79  // ログイン時のクッキー
80  // var date = new Date();
81  // date.setTime(date.getTime() + ( 30 * 60 * 1000 ));
82  // $.cookie('JSESSIONID', '{"loginStatus":"true"}', {expires: date, path: '/'})
83  // ボタンの切り替え
84  var is_loggedin = false;
85  var loggedin_cookie = $.cookie('JSESSIONID');
86  if (loggedin_cookie) {
87    var loggedin_status = $.parseJSON(loggedin_cookie);
88    if (loggedin_status.loginStatus) is_loggedin = true;
89  }
90  if (is_loggedin) {
91    $('.js-user-out').remove();
92    $('.js-user-in').removeClass('dis-none');
93    $('.js-member-status').addClass('btn-human-ver2');
94    $('.js-login-status').addClass('btn-logout');
95  } else {
96    $('.js-user-in').remove();
97    $('.js-user-out').removeClass('dis-none');
98    $('.js-member-status').addClass('btn-human');
99    $('.js-login-status').addClass('btn-login');
100  }
101
102  /*
103   言語切替
104  ----------------------------*/
105  $('select.js-language').change(function(){
106    location.href = $(this).val();
107  });
108
109  /*
110   重要なお知らせの初回モーダル
111  ----------------------------*/
112  $('.emergency-text .emergency-modal').each(function(){
113    var id = $(this).data('id');
114
115    // クッキーから表示済みのIDを取得
116    var ids = $.cookie('shown-emergency-ids');
117    if (! ids) {
118      ids = [];
119    } else {
120      ids = JSON.parse(ids);
121    }
122
123    // 表示済みなら次へ
124    if (ids.indexOf(id) !== -1) return true;
125
126    // クッキーに履歴を保存
127    ids.push(id);
128    $.cookie('shown-emergency-ids', JSON.stringify(ids), {expires: 365});
129
130    // モーダルを表示
131    $.fancybox.open($(this), {
132      toolbar : false,
133      smallBtn : true
134    });
135    return false;
136  });
137
138
139  $('.js-matchHeight').matchHeight({
140    property: 'min-height'
141  });
142  $('.js-matchHeight-normal').matchHeight();
143  $('.js-matchHeight-ul li').matchHeight();
144
145  $('#pagetop').hide();
146  $(window).scroll(function () {
147    if ($(this).scrollTop() > 100) {
148      $('#pagetop').fadeIn();
149    } else {
150      $('#pagetop').fadeOut();
151    }
152  });
153
154  $('#pagetop').on('click', function () {
155    $('html,body').animate({
156      scrollTop: 0
157    }, 300);
158    return false;
159  });
160
161  $('.js-tab-menu li').on('click', function () {
162    var $this = $(this);
163    if ($this.not('active')) {
164      $this.addClass('active').siblings('li').removeClass('active');
165      var index = $('.js-tab-menu li').index(this);
166      $('.js-tab-box > .js-tab-contents').eq(index).addClass('active').siblings('.js-tab-contents').removeClass('active');
167    }
168    return false;
169  });
170
171  $('.js-change-label label').click(function () {
172    var $this = $(this);
173    $('.js-change-label label').removeClass('active');
174    $this.addClass('active');
175  });
176
177  $('.js-change-url select').change(function () {
178    var $this = $(this);
179    var target = $this.prop('value');
180    window.location.href = target;
181  });
182
183  $('[data-language]').on('change', function () {
184    var $this = $(this);
185    var $option = $this.find('option:selected');
186    $('.label').text($option.text());
187    $this.blur();
188  });
189
190  $('[data-sp-navi-btn]').on('click', function () {
191    $('.sp-menu').toggleClass('active');
192    return false;
193  });
194  $('[data-sp-menu-close]').on('click', function () {
195    $('.sp-menu').removeClass('active');
196    return false;
197  });
198
199  $('header .js-header-input').on('focus', function () {
200    var $this = $(this);
201    if ($this.val() === this.defaultValue) {
202      $this.val('');
203    }
204  }).blur(function () {
205    var $this = $(this);
206    if ($this.val() === this.defaultValue || $this.val() === '') {
207      $this.val(this.defaultValue);
208    }
209  });
210
211  $('.global-navigation > ul > li').hover(function () {
212    var $this = $(this);
213    $this.children("a").addClass('mega-hover');
214    $this.children("a").next().fadeIn(200).css('top', $(this).offset().top + $(this).height());
215  }, function () {
216    $(this).children().removeClass('mega-hover').next().fadeOut('fast');
217  });
218
219  $('[data-mega-close]').on('click', function () {
220    $(".megamenu").fadeOut(200);
221    $('.global-navigation > ul > li > a').removeClass();
222    return false;
223  });
224
225  $('.sp-menu-list01 > ul > li > span').on('click', function () {
226    var $this = $(this);
227    $this.next().stop().slideToggle();
228    $this.toggleClass("active");
229    return false;
230  });
231
232  $('[data-toggle-btn]').on('click', function () {
233    $(this).parent().next('.js-toggle-content').stop().slideToggle();
234    $(this).toggleClass('active');
235    return false;
236  });
237
238  $('.form-checkbox-area .js-form-checkbox.js-trig01').on('change', function () {
239    var $this = $(this);
240    if ($this.is(':checked')) {
241      $this.parent().parents('.layout-table-right').find('.js-open-item-box').stop().slideDown();
242    } else {
243      $this.parent().parents('.layout-table-right').find('.js-open-item-box').stop().slideUp();
244    }
245  });
246
247  $(".check-box-open-area .js-form-checkbox.js-bank").on('change', function () {
248    $('.check-box-open-area + ul li label');
249    if ($(this).is(':checked')) {
250      $('.check-box-open-area + ul li label').removeClass('opacity-box-area');
251      $('.check-box-open-area + ul li label input').removeAttr('disabled');
252    } else {
253      $('.check-box-open-area + ul li label').addClass('opacity-box-area');
254      $('.check-box-open-area + ul li label input').attr('disabled', '');
255    }
256  });
257
258  $('.js-country-mega-ignition').on('click', function () {
259    var parents = $(this).parents('.layout-table-right');
260    parents.find('.js-country-option').stop().slideToggle();
261    parents.find('.js-country-select-new').addClass('color-base-bg');
262    return false;
263  });
264
265  $('.country-name li a').on('click', function () {
266    var $this = $(this);
267    var valText = $this.attr('id');
268    var valCore = $this.attr('class');
269    var parents = $this.parents('.layout-table-right');
270    parents.find('.js-country-select-new').val(valText);
271    parents.find('.js-country-modal,.js-country-modal div').removeClass('active');
272    parents.find('.js-country-option').stop().slideToggle();
273    parents.find('.js-country-select-new.core').val(valCore);
274    return false;
275  });
276
277  $('.country-initial li a').on('click', function () {
278    var $this = $(this);
279    var modalKey = $this.attr('class');
280    var parents = $this.parents('.layout-table-right');
281    parents.find('.js-country-modal').addClass('active');
282    parents.find('.js-country-modal div.' + modalKey).addClass('active');
283    return false;
284  });
285
286  $('.js-close-modal').on('click', function () {
287    $('.js-country-modal,.js-country-modal div').removeClass('active');
288    return false;
289  });
290
291  $('.country-modal-inner table tr td a').on('click', function () {
292    var $this = $(this);
293    var modalVal = $this.text();
294    var parents = $this.parents('.layout-table-right');
295    parents.find('input.form-text.js-country-select-new').val(modalVal);
296    parents.find('.js-country-select-new.core').val(modalVal);
297    parents.find('.js-country-modal,.js-country-modal div').removeClass('active');
298    parents.find('.js-country-option').stop().slideToggle();
299    return false;
300  });
301  $('.btn-style-close').on('click', function () {
302    $('.country-option').stop().slideToggle();
303    return false;
304  });
305
306  $('.password .js-form-checkbox').on('change', function () {
307    var $this = $(this);
308    if ($this.is(':checked')) {
309      $this.parents('.layout-table-right.password').find('.open-pass.confirm').attr('type', 'text');
310    } else {
311      $this.parents('.layout-table-right.password').find('.open-pass.confirm').attr('type', 'password');
312    }
313    return false;
314  });
315  $('.password2 .form-checkbox-outer').on('click', function () {
316    $('.js-open-pass2').attr('type', 'text');
317    return false;
318  });
319  $('.password2 .js-form-checkbox').on('change', function () {
320    if ($(this).is(':checked')) {
321      $('.js-open-pass2').attr('type', 'text');
322    } else {
323      $('.js-open-pass2').attr('type', 'password');
324    }
325  });
326  $('.js-pass-key01').on('click', function () {
327    $(this).parents('.rmt-item-box').find('.keyboard-block').slideToggle();
328  });
329
330  $('.keyboard-block .js-btn-style-close').on('click', function () {
331    $(this).parent().slideUp();
332    return false;
333  });
334  $('.keyboard-block ul li a').on('click', function () {
335    var $this = $(this);
336    var key = $this.parents('.rmt-item-box').find('.open-pass').val();
337    var inputKey = $this.text();
338    $this.parents('.rmt-item-box').find('.open-pass').val(key + inputKey);
339    return false;
340  });
341
342  $('.check-box-open-area .js-form-checkbox').on('change', function () {
343    var $this = $(this);
344    var openArea = $this.parents('.layout-table-right').find('.bank-area01');
345    if ($this.is(':checked')) {
346      openArea.stop().slideDown();
347    } else {
348      openArea.stop().slideUp();
349    }
350  });
351
352  $(".quit-select select").on('change', function () {
353    var $this = $(this);
354    var reasonVal = $this.val();
355    var openArea = $this.parents('.quit1_1').find('.quit-show');
356    if (reasonVal == '01') {
357      openArea.stop().slideDown();
358    } else {
359      openArea.stop().slideUp();
360    }
361  });
362
363  $("input.js-ac-radio").on('change', function () {
364    var radioVal = $(this).val();
365    if (radioVal === '1') {
366      $("input[type='submit']").prop("disabled", false);
367    } else {
368      $("input[type='submit']").prop("disabled", true);
369    }
370  });
371
372  $('input#ac-check').on('change', function () {
373    if ($(this).is(':checked')) {
374      $('.btn-style-large').prop('disabled', false);
375    } else {
376      $('.btn-style-large').prop('disabled', true);
377    }
378  });
379
380  $('.js-transfer-simulation-btn').on('click', function () {
381    $(this).next().stop().slideToggle();
382    return false;
383  });
384
385  $("input.js-tg-radio").on('change', function () {
386    var radioVal = $(this).val();
387    if (radioVal == 1) {
388      $(".tg-area").stop().slideDown();
389    } else {
390      $(".tg-area").stop().slideUp();
391    }
392  });
393
394  $("input.js-ba-set").on('change', function () {
395    var radioVal = $(this).val();
396    if (radioVal === '1') {
397      $(".tg-area2").stop().slideDown();
398    } else {
399      $(".tg-area2").stop().slideUp();
400    }
401  });
402
403  $('.check-box-open-area .js-post-check').on('change', function () {
404    if ($(this).is(':checked')) {
405      $('.post-area01').stop().slideDown();
406      $('.post-area02').stop().slideUp();
407    } else {
408      $('.post-area01').stop().slideUp();
409      $('.post-area02').stop().slideDown();
410    }
411  });
412
413  $('.none-navi nav').remove();
414
415  $("input.js-s-money").on('change', function () {
416    var s_money0 = $(this).val();
417    if (s_money0 === '0') {
418      $('.s-money-tg-area0').slideDown();
419      $('.s-money-tg-area1').slideUp();
420      $('h2.change-text-0').show();
421      $('h2.change-text-1').hide();
422    } else if (s_money0 === '1') {
423      $('.s-money-tg-area1').slideDown();
424      $('.s-money-tg-area0').slideUp();
425      $('h2.change-text-1').show();
426      $('h2.change-text-0').hide();
427    }
428  });
429
430  $('.transfer.def-radio-list input').on('click', function () {
431    var $this = $(this);
432    var targetVal = $this.val();
433    var receMoney = $('.js-rece-money');
434    var sMoney = $('.js-s-money .js-form-checkbox');
435    if (targetVal === 'conveni') {
436      $('.bank-account').removeAttr('checked');
437      $this.children().attr('checked');
438      receMoney.parents('li').slideUp();
439      sMoney.removeAttr('readonly').prop('checked', false);
440    } else {
441      $('.conveni').removeAttr('checked');
442      $this.children().attr('checked');
443      receMoney.parents('li').slideDown();
444      sMoney.attr('readonly').prop('checked', true);
445    }
446  });
447
448  $('input[name="transfer-type"]').change(function () {
449    var radioVal02 = $(this).val();
450    if (radioVal02 === 'account') {
451      $('.js-dsb-root01').prop('disabled', false).prop('checked', false);
452    } else if (radioVal02 === 'conveni') {
453      $('.js-dsb-root01').prop('disabled', true).prop('checked', true);
454    }
455  });
456
457  $('.js-bank-account').parent().on('click', function () {
458    $('.js-s-money .js-form-checkbox').attr('readonly');
459    $('.js-s-money .js-form-checkbox').prop('checked', true);
460  });
461
462  $('.radio-noframe input[name="selector"]').on('change', function () {
463    var selectVal = $(this).val();
464    if (selectVal === 'other') {
465      $('.ohter-only').prop('disabled', false);
466    } else {
467      $('.ohter-only').prop('disabled', true);
468    }
469  });
470
471  $('[data-change-check]').on('change', function () {
472    if ($(this).is(':checked')) {
473      $('[data-change-text] span').toggleClass('change');
474    } else {
475      $('[data-change-text] span').toggleClass('change');
476    }
477  });
478
479  $('.js-other-check').on('change', function () {
480    if ($(this).is(':checked')) {
481      $('.other-text').prop('disabled', false);
482    } else {
483      $('.other-text').prop('disabled', true);
484    }
485  });
486
487  $('.tab-list01 li a').on('click', function () {
488    var $this = $(this);
489    var t_class = $this.attr('class');
490    $('.tab-outer > div').addClass('dis-none');
491    $('.tab-outer .exchange-' + t_class).fadeIn().removeClass('dis-none');
492    $('.tab-list01 li a').removeClass('active');
493    $this.addClass('active');
494    return false;
495  });
496
497  var $rmt = {};
498  $('[data-form-checkbox]').on('click', function () {
499    $rmt.controlBtn($('#submitBtn'), $(this));
500    return true;
501  });
502
503  $('[data-name-change]').on('change', function () {
504    $rmt.controlBtn($('#submitBtn2'), $(this));
505    return true;
506  });
507
508  $rmt.controlBtn = function (elem, $this) {
509    elem.prop("disabled", !$this.prop("checked"));
510  };
511
512  $('.js-list2-opener').on('click', function () {
513    var $this = $(this);
514    $this.next().slideToggle();
515    $this.toggleClass("active");
516    return false;
517  });
518
519  $('[data-slide-menu]').on('click', function () {
520    var menuCd = $(this).data("slide-menu");
521    $('[data-slide-item]').each(function () {
522      var slideItem = $(this);
523      if (menuCd === slideItem.data("slide-item")) {
524        slideItem.stop().fadeIn('100', 'swing', 'true');
525      } else {
526        slideItem.stop().fadeOut('100', 'swing', 'true');
527      }
528    });
529    $('[data-slide-menu]').each(function () {
530      var slideMenu = $(this);
531      if (menuCd === slideMenu.data("slide-menu")) {
532        slideMenu.stop().addClass('active');
533      } else {
534        slideMenu.stop().removeClass('active');
535      }
536    });
537    return false;
538  });
539
540  var $setElm = $('.faq .bread-crumb span:last-of-type');
541  var cutFigure = '25';
542  var afterTxt = ' …';
543  $setElm.each(function () {
544    var textLength = $(this).text().length;
545    var textTrim = $(this).text().substr(0, (cutFigure));
546    if (cutFigure < textLength) {
547      $(this).html(textTrim + afterTxt).css({
548        visibility: 'visible'
549      });
550    } else if (cutFigure >= textLength) {
551      $(this).css({
552        visibility: 'visible'
553      });
554    }
555  });
556
557  var width = $(window).width();
558  if (width < 768) {
559    $('[data-pop-up-trigger]').on('click', function () {
560      $(this).next("p.js-pop-up-text").fadeToggle();
561    });
562    $("p.js-pop-up-text").on('click', function () {
563      $(this).fadeOut();
564    });
565  } else {
566    $('[data-pop-up-trigger]').on({
567      'mouseenter': function () {
568        $(this).next("p.js-pop-up-text").fadeToggle();
569      },
570      'mouseleave': function () {
571        $(this).next("p.js-pop-up-text").fadeToggle();
572      }
573    });
574    return false;
575  }
576  
577});
578
579// ページ内リンク
580jQuery(function() {
581$('a[href^="#"]').click(function(){
582  var time = 800;
583  var href= $(this).attr("href");
584  var target = $(href == "#" ? 'html' : href);
585  var distance = target.offset().top;
586  $("html, body").animate({scrollTop:distance}, time, "swing");
587  return false;
588});
589});

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.