PageSourceSearch

https://life.ja-group.jp/js/script.js

js ja-group.jp collected 2026-10-02 07:04:59 UTC 1,936 bytes, 66 lines download raw bytes

1$(function(){
2  let scrTop = 0;
3  const $window = $(window);
4  const checkSize = function() {
5    return $window.width()<768 ? true : false;
6  };
7  const scrollFixed = function(scr) {
8    if(scr>144) {
9      $("#Header").addClass("is-fixed");
10    } else {
11      $("#Header").removeClass("is-fixed");
12    }
13  };
14
15  scrollFixed($window.scrollTop());
16  $window.on("scroll", function(){
17    setTimeout(function(){
18      const scr = $window.scrollTop();
19      scrollFixed(scr);
20    }, 120);
21  });
22
23  $("a[href^='#']:not([class*='js-'])").on("click", function(){
24    const $el = $($(this).attr("href")),
25      pos = $el.length ? $el.offset().top-$("#Header").outerHeight() : 0,
26      scel = 'scrollingElement' in document ? document.scrollingElement : ua.indexOf("webkit")!=-1 ? document.body : document.documentElement;
27      $(scel).animate({scrollTop: pos});
28      return false;
29  });
30  $(".js-naviOpen").on("click", function(){
31    const $navi = $("#Navi");
32    scrTop = $window.scrollTop();
33    $("body").addClass("is-fixed").css("top", scrTop);
34    $navi.addClass("is-active").slideDown();
35  });
36  $(".js-naviClose").on("click", function(){
37    const $navi = $("#Navi");
38    $navi.slideUp(function(){
39      $navi.removeClass("is-active").removeAttr("style");
40    });
41    $("body").removeClass("is-fixed").removeAttr("style");
42    $window.scrollTop(scrTop);
43    scrTop = 0;
44  });
45  $(".js-searchSwitch").on("click", function(){
46    const $search = $("#Search");
47    if($search.hasClass("is-active")) {
48      $search.slideUp(function(){
49        $search.removeClass("is-active");
50      });
51    } else {
52      $search.addClass("is-active").slideDown();
53    }
54  });
55  // 新着情報
56  let $target = $('.line01_text a');
57  $target.each(function () {
58    let href = $(this).attr('href');
59    if (href != null) {
60      href = href.replace(/#/g, '');
61      if (href.match(/.pdf/i)) {
62        $(this).addClass('ico_pdf');
63      }
64    }
65  });
66});

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.