PageSourceSearch

https://www.jec.ac.jp/wp-content/themes/jec/assets/js/chatbot.js

js jec.ac.jp collected 2026-10-02 07:21:43 UTC 918 bytes, 20 lines download raw bytes

1window.addEventListener("scroll", function () {
2  const __left = document.querySelector(".__left");
3  const scroll = window.pageYOffset;
4  if (scroll > 10) {
5    __left.style.opacity = "1";
6    // web_plugin_chat_box.log(scroll);
7  } else {
8    __left.style.opacity = "0";
9    // web_plugin_chat_box.log(scroll);
10  }
11  
12  var check = window.pageYOffset; //現在のスクロール位置を取得
13  var docHeight = $(document).height(); //ページ全体の高さを取得
14  var dispHeight = $(window).height(); //表示されている高さを取得
15  if(check > docHeight-dispHeight-980){ //消えるときのフッターからの距離を数字で調整※サイトに合わせて変更
16    $('#web_plugin_chat_box.__left').fadeOut(80); //数字が大きいほどゆっくり消える
17  }else{
18    $('#web_plugin_chat_box.__left').fadeIn(80); //数字が大きいほどゆっくり出る
19  }
20});

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.