PageSourceSearch

https://www.icu.ac.jp/refurbishment-assets/js/PositionFix.js

js icu.ac.jp collected 2026-09-24 08:40:08 UTC 488 bytes, 22 lines download raw bytes

1export default class PositionFixX {
2  constructor(els, halfFlag = false) {
3    this.els = document.querySelectorAll(els);
4    this.halfFlag = halfFlag;
5    this._init();
6  }
7
8  _init() {
9    if (!this.els.length) {
10      return;
11    }
12
13    [...this.els].forEach((el) => {
14      window.addEventListener('scroll', () => {
15        const amount = this.halfFlag
16          ? window.pageXOffset / 2
17          : window.pageXOffset;
18        el.style.left = -amount + 'px';
19      });
20    });
21  }
22}

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.