PageSourceSearch

https://www.romaniaturistica.ro/wp-content/themes/salient-child/assets/js/mobile-menu-icon.js?ver=1790275695

js romaniaturistica.ro collected 2026-09-24 18:49:49 UTC 1,410 bytes, 49 lines download raw bytes

1(function () {
2    const MOBILE_MAX = 1024;
3
4    function init() {
5        const toggle = document.querySelector('.slide-out-widget-area-toggle');
6        if (!toggle) return;
7
8        const iconContainer = toggle.querySelector('.lines-button')?.parentElement;
9        if (!iconContainer) return;
10
11        const originalIconHTML = iconContainer.innerHTML;
12        let resizeTimer;
13
14        function applyMobileState() {
15            toggle.style.paddingTop = '75px';
16            toggle.style.marginRight = '-7px';
17            iconContainer.innerHTML = 'ℹ️';
18            iconContainer.style.fontSize = '22px';
19            iconContainer.style.lineHeight = '1';
20        }
21
22        function restoreDesktopState() {
23            toggle.style.marginTop = '';
24            iconContainer.innerHTML = originalIconHTML;
25        }
26
27        function handleResize() {
28            if (window.innerWidth <= MOBILE_MAX) {
29                applyMobileState();
30            } else {
31                restoreDesktopState();
32            }
33        }
34
35        window.addEventListener('resize', () => {
36            clearTimeout(resizeTimer);
37            resizeTimer = setTimeout(handleResize, 100);
38        });
39
40        handleResize();
41    }
42
43    // Ensure DOM is ready (important in WP)
44    if (document.readyState === 'loading') {
45        document.addEventListener('DOMContentLoaded', init);
46    } else {
47        init();
48    }
49})();

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.