PageSourceSearch

https://cdn.firstchoice.co.uk/MFE/BodyScrollLockScript/body-scroll-lock.js?ver=7.1.2

js firstchoice.co.uk collected 2026-10-02 04:22:14 UTC 718 bytes, 20 lines download raw bytes

1window.disableBodyScroll = function() {
2	const pageYOffset = window.pageYOffset;
3    document.body.style.position = "fixed";
4    document.body.style.width = "100%";
5    document.body.style.top = `-${pageYOffset}px`;
6    document.body.style.overflowY = "hidden";
7    document.documentElement.style.height = "100vh";
8}
9
10window.enableBodyScroll = function() {
11    const scrollY = Math.abs(parseInt(document.body.style.top, 10));
12    document.body.style.position = "";
13    document.body.style.top = "";
14    document.body.style.width = "";
15    document.body.style.overflowY = "";
16    document.documentElement.style.height = "";
17    if(!Number.isNaN(scrollY)){
18        window.scrollTo(0, scrollY);
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.