PageSourceSearch

https://www.lentrepreneurcharentais.fr/wp-content/themes/entrepreneur-charentais/assets/js/header.js?ver=1.0.0

js lentrepreneurcharentais.fr collected 2026-10-03 00:20:56 UTC 973 bytes, 32 lines download raw bytes

1
2
3class ActiveMenuMarker {
4    constructor(menuSelector = '.a42__main-menu') {
5        this.menuSelector = menuSelector;
6        this.currentUrl = window.location.href.split('#')[0].replace(/\/$/, '');
7    }
8
9    init() {
10        const menu = document.querySelector(this.menuSelector);
11        if (!menu) return;
12
13        const links = menu.querySelectorAll('a');
14
15        links.forEach(link => {
16            const href = link.href.split('#')[0].replace(/\/$/, '');
17            if (this.currentUrl === href || this.currentUrl.startsWith(href)) {
18                const menuItem = link.closest('.menu-item');
19                if (menuItem) {
20                    const label = menuItem.querySelector('.item-title-label');
21                    if (label) {
22                        label.classList.add('active');
23                    }
24                }
25            }
26        });
27    }
28}
29
30document.addEventListener('DOMContentLoaded', () => {
31    new ActiveMenuMarker().init();
32});

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.