PageSourceSearch

https://www.melett.com.pt/wp-content/themes/meletttheme/assets/scripts/layout/footer.js?ver=1695228330

js melett.com.pt collected 2026-10-06 06:40:22 UTC 1,202 bytes, 39 lines download raw bytes

1import Cookie from "../helpers/cookie.js";
2
3jQuery(document).ready($ => {
4
5    // jQuery('.pinToFooter').tooltip({
6    //     container: 'body'
7    // });
8
9    ctaBanner();
10
11    function ctaBanner() {
12        const ctaBanner = $('#cta-banner');
13        const pinBtn = ctaBanner.find('.pinToFooter-btn');
14        const cookie = new Cookie('footer-cta-banner-pinned');
15        const pinInst = pinBtn.attr('data-pin-instructions');
16        const unpinInst = pinBtn.attr('data-unpin-instructions');
17
18        pinBtn.on('click', pinFunction);
19
20        function pinFunction() {
21            let gtmArgs = {
22                event: 'footer_cta_banner_pin_toggle',
23            }
24            if(ctaBanner.hasClass('pinned')) {
25                ctaBanner.removeClass('pinned');
26                pinBtn.attr('title', pinInst);
27                cookie.deleteCookie();
28                gtmArgs.footer_cta_banner_pinned = false;
29            } else {
30                ctaBanner.addClass('pinned');
31                pinBtn.attr('title', unpinInst);
32                cookie.setCookie(1, 1000);
33                gtmArgs.footer_cta_banner_pinned = true;
34            }
35
36            window.dataLayer.push(gtmArgs);
37        }
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.