PageSourceSearch

https://genki-innovation.com/wp_2022/wp-content/themes/shuhari/library/js/libs/content.js?1791586347

js genki-innovation.com collected 2026-10-09 22:52:46 UTC 3,403 bytes, 135 lines download raw bytes

1/* content js */
2	
3
4$(window).scroll(function () {
5    if ($(this).scrollTop() > 100) {
6        $('body').addClass('is-animation');
7        $('#hdr').addClass('is-animation');
8    } else {
9        $('body').removeClass('is-animation');
10        $('#hdr').removeClass('is-animation');
11    }
12});
13
14
15
16
17
18/* ------------------ scroll表示 フッターで消す ------------------ */
19$(function() {
20    var section = $("#footer").offset().top;
21    var scroll = $(window).scrollTop() + $(window).height();
22    
23    $(window).on("scroll", function() {
24      if($(this).scrollTop() > section) {
25        $('#scroll').css('opacity','0');
26        $('.menu-mobile span').addClass('scroll_ftr');
27      } else{
28        $('#scroll').css('opacity','1');
29        $('.menu-mobile span').removeClass('scroll_ftr');
30      };
31    });
32});
33	
34
35
36/* ------------------ アンカーリンク設定 ------------------ */
37
38$(document).ready(function() {
39		var pagetop = $('#btn_pagetop');
40    $(window).scroll(function () {
41       if ($(this).scrollTop() > 100) {
42				pagetop.fadeIn();
43       } else { pagetop.fadeOut();}
44       });
45       pagetop.click(function () {
46           $('body, html').animate({ scrollTop: 0 }, 500);
47              return false;
48   });
49	
50	
51/* ------------------ 現在地のcss追加 ------------------ */
52    var dir = location.href.split('/');
53    if(dir&&dir[3]){
54        $('body').addClass("g-"+dir[3]);
55    }
56    if(dir&&dir[4]){
57        $('body').addClass("g-"+dir[4]);
58    }
59    if(dir&&dir[5]){
60        $('body').addClass("g-"+dir[5]);
61    }
62    if(dir&&dir[6]){
63        $('body').addClass("g-"+dir[6]);
64    }
65});
66
67
68/* ------------------ メニュー子リンク開きっぱなしにする ------------------ */
69$(window).on('load', function(){
70    
71});
72
73
74	
75/* ------------------ スクロールすると変化 ------------------ */
76
77
78
79 /* var hdr = $('#hdr');
80  $(window).scroll(function () {
81        if ($(this).scrollTop() > 100) {
82            $('body').addClass('is-animation');
83            hdr.addClass('is-animation');
84        } else {
85            $('body').removeClass('is-animation');
86            hdr.removeClass('is-animation');
87        }
88    });
89 */
90
91
92/*
93$(window).on('load resize', function(){
94    
95    var windowWidth = $(window).width();
96    var windowSm = 1080;
97    if (windowWidth <= windowSm) {
98        $('.layout_aside_layer').fadeOut('slow');
99    } else {
100        $('.layout_aside_layer').fadeOut('slow');
101    }
102 });
103*/
104
105/* ------------------ アコーディング ------------------ */
106/*
107$(function(){
108$(".acomenu dt").on("click", function() {
109$(this).toggleClass("aco_open");
110$(this).next().slideToggle();
111});
112});
113*/
114
115
116/* ------------------ フェードイン効果 ------------------ */
117$(function () {
118    $(window).scroll(function () {
119        const wHeight = $(window).height();
120        const scrollAmount = $(window).scrollTop();
121        var WindowHeight = $(window).outerHeight();
122        $('.scrollanime').each(function () {
123            const targetPosition = $(this).offset().top;
124            if(scrollAmount > targetPosition - wHeight + 60) {
125                $(this).addClass("fadeinup");
126            }
127        });
128        $('.scrollanime2').each(function () {
129            const targetPosition = $(this).offset().top;
130            if(scrollAmount > targetPosition - wHeight + 60) {
131                $(this).addClass("scrollover");
132            }
133        });
134    });
135  });

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.