PageSourceSearch

https://www.g-vloeren.nl/wp-content/themes/gvloeren/assets/js/table-scroll.js?ver=1789480742

js g-vloeren.nl collected 2026-10-05 10:36:21 UTC 969 bytes, 30 lines download raw bytes

1/**
2 * Table scroll
3 * Wrapt elke tabel in een SimpleBar-container zodat brede tabellen horizontaal
4 * scrollbaar worden met een zichtbare scrollbar. SimpleBar detecteert de
5 * dynamisch toegevoegde [data-simplebar] elementen zelf via zijn MutationObserver.
6 */
7(function () {
8	function initTableScroll() {
9		document.querySelectorAll( 'table' ).forEach( function ( table ) {
10			// sla tabellen over die al gewrapt zijn
11			if ( table.closest( '.table-scroll' ) ) {
12				return;
13			}
14
15			var wrap = document.createElement( 'div' );
16			wrap.className = 'table-scroll';
17			wrap.setAttribute( 'data-simplebar', '' );
18			wrap.setAttribute( 'data-simplebar-auto-hide', 'false' ); // balk niet verbergen
19
20			table.parentNode.insertBefore( wrap, table );
21			wrap.appendChild( table );
22		} );
23	}
24
25	if ( 'loading' === document.readyState ) {
26		document.addEventListener( 'DOMContentLoaded', initTableScroll );
27	} else {
28		initTableScroll();
29	}
30})();

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.