PageSourceSearch

https://ivision.ne.jp//js/main.js

js ivision.ne.jp collected 2026-10-04 19:23:59 UTC 2,857 bytes, 102 lines download raw bytes

1$(function () {
2
3  $('.hamburger').on('click', function(){
4    const currentText =$('.ham_txt').text();
5    $('.ham_menu').toggleClass('open');
6    $('.sp_menu').toggleClass('open');
7    if(currentText === 'MENU') {
8      $('.ham_txt').text('CLOSE');
9    } else {
10      $('.ham_txt').text('MENU');
11    }
12  });
13
14  $('.sp_menu a').on('click', function(){
15    $('.ham_menu').removeClass('open');
16    $('.sp_menu').removeClass('open');
17    const currentText =$('.ham_txt').text();
18    if(currentText === 'MENU') {
19      $('.ham_txt').text('CLOSE');
20    } else {
21      $('.ham_txt').text('MENU');
22    }
23  });
24
25  $('.slideKey').click(function () {
26    $('.slideTarget').slideToggle();
27  });
28
29  $('.partner__logo').slick({
30      autoplay: true,
31      autoplaySpeed: 0,
32      cssEase: "linear",
33      speed: 8000,
34      infinite: true,
35      dots: false,
36      arrows: false,
37      pauseOnFocus: false,
38      pauseOnHover: false,
39      pauseOnDotsHover: false,
40      variableWidth: true,
41  });
42
43  $('.partner__logo2').slick({
44    autoplay: true,
45    autoplaySpeed: 0,
46    cssEase: "linear",
47    speed: 8000,
48    infinite: true,
49    dots: false,
50    arrows: false,
51    pauseOnFocus: false,
52    pauseOnHover: false,
53    pauseOnDotsHover: false,
54    variableWidth: true,
55    rtl: true,
56});
57});
58
59$('.recruit_interview-link').on('click', function(){
60  $(this).parents('.recruit_interview-item').find('.recruit_interview-detailWrap').addClass('open');
61});
62$('.close_btn').on('click', function(){
63  $(this).closest('.recruit_interview-detailWrap').removeClass('open');
64});
65
66$(function () {
67  // ページロード時にスクロール位置をリセットする
68  function resetScrollPosition() {
69    if (window.location.hash) {
70      // 一旦ページの最上部に戻す
71      window.scrollTo(0, 0);
72    }
73  }
74  function scrollToHash() {
75    var hash = window.location.hash;
76    if (hash) {
77      var target = $(hash);
78      if (target.length) {
79        var position = target.offset().top;
80        $("html, body").animate({ scrollTop: position }, 500, "swing");
81      }
82    }
83  }
84    // ページロード時にスクロール位置をリセットしてからスムーズスクロール
85    $(window).on("load", function () {
86      resetScrollPosition();
87      setTimeout(scrollToHash, 0); // 少し遅らせてスクロール実行
88    });
89  
90    // ハッシュ変更時の動作
91    $(window).on("hashchange", scrollToHash);
92
93  // スムーススクロール処理
94  $('a[href^="#"], a[href*="/#"]').click(function () {
95    var speed = 500;
96    var href = $(this).attr("href").replace(/.*#/, "#"); // ハッシュ部分だけ取得
97    var target = $(href === "#" || href === "" ? "html" : href);
98    var position = target.offset().top; // ヘッダー高さを考慮
99    $('body,html').animate({ scrollTop: position }, speed, "swing");
100    return false;
101  });
102});

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.