PageSourceSearch

https://mynavi-agent.jp/resource/common/js/footer_fixed.js

js mynavi-agent.jp collected 2026-09-24 17:51:45 UTC 695 bytes, 18 lines download raw bytes

1// フッター固定
2window.addEventListener('load', function() {
3  window.onscroll = function() {
4    var check = window.scrollY; //現在のスクロール地点
5    var docHeight = document.documentElement.scrollHeight; //ドキュメントの高さ
6    var dispHeight = window.innerHeight; //++++++
7
8    const headerHeight = $('header').outerHeight() ?? 80;
9
10    if (check + dispHeight + 100 >= docHeight) { //フッターからの距離
11      $('.footerFixed').fadeOut(0); //フェードアウトの速度
12    } else if ($(this).scrollTop() > headerHeight) {
13      $('.footerFixed').slideDown(); //フェードインの速度
14    } else {
15      $('.footerFixed').slideUp();
16    }
17  };
18});

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.