https://genki-innovation.com/wp_2022/wp-content/themes/shuhari/library/js/libs/content.js?1791586347
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.