PageSourceSearch

https://winwavelotto.com/Casino%20utan%20svensk%20licens_%20Ba%CC%…inon%20utan%20Spelpaus_files/floating-ui.js

js winwavelotto.com collected 2026-10-07 15:01:56 UTC 958 bytes, 39 lines download raw bytes

1/**
2 * Floating UI coordination.
3 *
4 * Mirrors the theme's back-to-top active state (`.cs-scroll-top.is-active`)
5 * onto a `body.eg-scrolltop-active` flag so CSS can dock the OneSignal bell in
6 * the corner when it is alone and raise it above the back-to-top button when
7 * that button is on screen. Pairs with assets/css/floating-ui.css.
8 */
9( function () {
10	function init() {
11		var btt = document.querySelector( '.cs-scroll-top' );
12		if ( ! btt ) {
13			return;
14		}
15
16		var body = document.body;
17
18		function sync() {
19			body.classList.toggle(
20				'eg-scrolltop-active',
21				btt.classList.contains( 'is-active' )
22			);
23		}
24
25		// Persistent by design — the back-to-top button lives for the page lifetime.
26		new MutationObserver( sync ).observe( btt, {
27			attributes: true,
28			attributeFilter: [ 'class' ],
29		} );
30
31		sync();
32	}
33
34	if ( document.readyState !== 'loading' ) {
35		init();
36	} else {
37		document.addEventListener( 'DOMContentLoaded', init );
38	}
39} )();

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.