PageSourceSearch

https://cfp-consulting.co.jp/wp2024/wp-content/themes/cfp/js/setting.js

js cfp-consulting.co.jp collected 2026-10-07 11:13:29 UTC 3,442 bytes, 122 lines download raw bytes

1"use strict";
2if (
3  ($(".js-mobile").on("click", function () {
4    $(this).toggleClass("js-mobile--close"),
5      $("html").toggleClass("js-locked"),
6      $("#header").toggleClass("show-menu");
7  }),
8  $(function () {
9    var e = $("#header").outerHeight(),
10      s = location.hash;
11    s &&
12      ($("body,html").stop().scrollTop(0),
13      setTimeout(function () {
14        var t = $(s).offset().top - e;
15        $("body,html").stop().animate({ scrollTop: t }, 1e3);
16      }, 100)),
17      jQuery(".js-anchor").click(function (s) {
18        return (
19          jQuery("html,body").animate(
20            { scrollTop: jQuery(this.hash).offset().top - e },
21            1500
22          ),
23          !1
24        );
25      });
26  }),
27  jQuery(function (e) {
28    e(".mh").matchHeight(), e(".service-list__img").matchHeight();
29  }),
30  $(window).on("scroll load assessFeatureHeaders", function () {
31    var e = $(window).scrollTop(),
32      s = e + $(window).height() - 60;
33    $(".js-fadeUp:not(.is-active), .js-fadeIn:not(.is-active)")
34      .filter(function () {
35        var t = $(this).offset().top;
36        return t + $(this).outerHeight() >= e && t <= s;
37      })
38      .addClass("is-active");
39  }),
40  jQuery(document).ready(function (e) {
41    e(window).on("scroll load assessFeatureHeaders", function () {
42      e(window).scrollTop() > e("main > *:first-child").outerHeight()
43        ? e("#header").addClass("on")
44        : e("#header").removeClass("on");
45    });
46  }),
47  $(".contact-form__check").length)
48) {
49  var itemA = $(".contact-form__check a"),
50    parentCheck = $(".wpcf7-list-item-label");
51  parentCheck.prepend(itemA);
52}
53jQuery(document).ready(function (e) {
54  var s = e(".wpcf7 form"),
55    t = s.find(".btn-submit"),
56    o = s.find(".required"),
57    i = o.find("input");
58  t.addClass("disable").prop("disabled", !0);
59  var a = function () {
60      var s = !0;
61      return (
62        o.not(".wpcf7-checkbox").each(function () {
63          var t = e(this);
64          t.is("select") && !t.val()
65            ? (s = !1)
66            : t.is("select") || e.trim(t.val()) || (s = !1);
67        }),
68        i.is(":checked") || (s = !1),
69        s
70      );
71    },
72    n = function () {
73      console.log(a()),
74        a()
75          ? t.removeClass("disable").addClass("is-blue")
76          : t.addClass("disable").removeClass("is-blue");
77    };
78  o.on("input change", n), n();
79}),
80  $(".js-hoverParent .c-btn__01").hover(
81    function () {
82      $(this).parents(".js-hoverParent").addClass("is-hover");
83    },
84    function () {
85      $(this).parents(".js-hoverParent").removeClass("is-hover");
86    }
87  );
88
89
90// recruit ギャラリースライダー
91jQuery(function ($) {
92  if($('.gallery1').length > 0){
93    let gallery1 = new Splide('.gallery1' , {
94      type: "loop",
95      autoWidth: true,
96      arrows: false,
97      pagination: false,
98      drag: false,
99      autoScroll: {
100        speed: 1.0,
101        pauseOnHover: false,
102      },
103    });
104    gallery1.mount(window.splide.Extensions);
105  }
106});
107
108// form セレクト
109jQuery(function ($) {
110  var currentPath = window.location.pathname;
111  if (currentPath.includes("/contact")) {
112    var urlParams = new URLSearchParams(window.location.search);
113    var selectedValue = urlParams.get('type');
114    // 対応表
115    var selectMap = {
116      'entry': '採用について',
117    };
118    if (selectedValue && selectMap[selectedValue]) {
119      $('.wpcf7 .wpcf7-select').val(selectMap[selectedValue]);
120    }
121  }
122});

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.