PageSourceSearch

https://villa-albertine.org/wp-content/themes/villa-albertine/resources/js/utils/scroll-controller.js

js villa-albertine.org collected 2026-10-01 10:23:06 UTC 470 bytes, 17 lines download raw bytes

1import { $, $body, $win, classes } from './globals.js';
2
3export const ScrollController = {
4	$body,
5	$win,
6	scrollLockClass: classes.scrollLock,
7	enableScroll: function() {
8		this.$body.removeClass(this.scrollLockClass);
9		this.$win.trigger('updateVariables');
10	},
11	disableScroll: function() { this.$body.addClass(this.scrollLockClass); },
12	toggleScroll: function(state = null) {
13		if(state === null) return;
14
15		state ? this.enableScroll() : this.disableScroll();
16	},
17};

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.