PageSourceSearch

https://www.sulniac.fr/wp-content/themes/noyau/assets/js/PrivacyPolicy/script.js?ver=1

js sulniac.fr collected 2026-10-02 12:43:24 UTC 740 bytes, 27 lines download raw bytes

1// Execute the script only when the DOM is ready.
2ready = (callback) => {
3    if (document.readyState !== 'loading') {
4        callback()
5    } else {
6        document.addEventListener('DOMContentLoaded', callback)
7    }
8}
9
10ready(() => {
11    const $container = document.getElementById('PrivacyPolicy');
12    const $button = document.getElementById('validatePolicy');
13
14    if (!!$container && !!$button) {
15
16        let validatePolicy = localStorage.getItem('validatePolicy');
17
18        if (!validatePolicy) {
19            $container.classList.remove('hide')
20        }
21
22        $button.addEventListener('click', () => {
23            $container.classList.add('hideX')
24            localStorage.setItem('validatePolicy', 'true');
25        })
26    }
27})

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.