PageSourceSearch

https://www.gentside.com/modules/custom/websites_mod/dist/js/helpers-position-helper-js.js

js gentside.com collected 2026-10-02 05:24:56 UTC 1,171 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkwebsites_base=self.webpackChunkwebsites_base||[]).push([[3461],{7871(t,e,n){n.d(e,{default:()=>i});class i{static inViewport(t,e=0,n=0){if(!t)return!1;if(e<0||e>1)return console.error("Value error, should be between 0 & 1, 1 is 100%"),null;const i=window.scrollY,o=t.getBoundingClientRect().top+i,r=i+n+t.getBoundingClientRect().height*e,s=i+window.innerHeight,w=o,f=o+t.clientHeight;return f>=r&&f<=s||w<=s&&w>=r}static inBottom(t,e=0){const n=i.getOffsetTop(t)+t.clientHeight,o=n+e,r=window.scrollY,s=r+window.innerHeight;return r>n||o>r&&o<=s}static inTop(t,e=0){const n=i.getOffsetTop(t)+e,o=window.scrollY,r=o+window.innerHeight;return n>=o&&n<r}static getVisibility(t){const e=window.scrollY,n=e+window.innerHeight,o=i.getOffsetTop(t),r=o+t.clientHeight;return o>e&&o<n?Math.round(100*(n-o)/window.innerHeight):r>e&&r<n?Math.round(100*(r-e)/window.innerHeight):o<e&&r>n?100:0}static getOffsetTop(t){let e=t.offsetTop;for(;t.offsetParent;)e+=(t=t.offsetParent).offsetTop;return Math.round(e)}static getPositionPercent(t){return Math.floor(100*((t.offsetHeight+window.innerHeight-t.getBoundingClientRect().top)/t.offsetHeight-1))}}}}]);

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.