PageSourceSearch

https://clandestinofestival.org/2026/wp-content/themes/Festival202…?ver=250520db627d47d5ad1cf3

js clandestinofestival.org collected 2026-09-25 18:44:57 UTC 1,928 bytes, 69 lines download raw bytes

1jQuery(function($) {
2
3    function showNewsletterPopup(popupTime) {
4
5        setTimeout(function(){ $('#newsletter-takeover').fadeIn('fast'); }, popupTime);
6
7        $('#button-close-newsletter').click(function() {
8            $('#newsletter-takeover').hide();
9        });
10        $('#no-thanks').click(function() {
11            $('#newsletter-takeover').hide();
12        });
13    };
14
15    /*$('a[href$="#newsletter"]').click(function(e) {
16        var popupTime = 10;
17        showNewsletterPopup(popupTime);
18    });*/
19
20    $.getScript("https://cdnjs.cloudflare.com/ajax/libs/js-cookie/2.1.3/js.cookie.min.js", function() {
21        //var ref = document.referrer;
22        /*if (!ref.match(/^https?:\/\/([^\/]+\.)?clandestinoinstitut\.org(\/|$)/i)) {
23            return;
24        }*/
25
26        const urlParams = new URLSearchParams(window.location.search);
27        const preview = urlParams.get("preview");
28
29        if (preview === "newsletter") {
30            popupTime = 1;
31        }
32        //console.log(preview);
33
34        var date = new Date();
35        // add ten days
36        date.setDate(date.getDate() + 10);
37
38        var cookieName = "newsletter-takeover-reloaded";
39
40        if (
41            typeof Cookies.get(cookieName) === "undefined" ||
42            preview === "newsletter"
43        ) {
44            var popupTime = 10000;
45
46            showNewsletterPopup(popupTime);
47
48            //24 timmar
49            Cookies.set(cookieName, "0", {
50                expires: date,
51            });
52        }
53    });
54
55
56    function locationHashChanged() {
57        // console.log(location.hash)
58        if (location.hash === "#newsletter") {
59            var popupTime = 10;
60            showNewsletterPopup(popupTime);
61        }
62        if (location.hash === "#close-start") {
63            $("#newsletter-takeover").hide();
64            $("#start-takeover").fadeOut("fast");
65        }
66    }
67    window.onhashchange = locationHashChanged;
68    
69});

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.