PageSourceSearch

https://reseau-rebond.fr/resources/js/consents.js

js reseau-rebond.fr collected 2026-09-28 12:16:02 UTC 5,886 bytes, 137 lines download raw bytes

1var consentsIsLoaded = false;
2onConsentsLoaded = function (callback) {
3    if (typeof consentsIsLoaded !== "undefined" && consentsIsLoaded) {
4        callback();
5    } else {
6        document.addEventListener("consentsLoaded", function (event) {
7            callback();
8        });
9    }
10};
11
12load(["/resources/js/consents.js"]);
13
14load(["/vendors/tarteaucitron.js/tarteaucitron.min.js"], function () {
15    tarteaucitron.init({
16        privacyUrl: "" /* Privacy policy url */,
17        hashtag: "#tarteaucitron" /* Open the panel with this hashtag */,
18        cookieName: "tarteaucitron" /* Cookie name */,
19        orientation: "bottom" /* Banner position (top - bottom) */,
20        groupServices: false /* Group services by category */,
21        showAlertSmall: false /* Show the small banner on bottom right */,
22        cookieslist: false /* Show the cookie list */,
23        closePopup: false /* Show a close X on the banner */,
24        showIcon: true /* Show cookie icon to manage cookies */,
25        //"iconSrc": "", /* Optionnal: URL or base64 encoded image */
26        iconPosition:
27            "BottomRight" /* BottomRight, BottomLeft, TopRight and TopLeft */,
28        adblocker: false /* Show a Warning if an adblocker is detected */,
29        DenyAllCta: true /* Show the deny all button */,
30        AcceptAllCta: true /* Show the accept all button when highPrivacy on */,
31        highPrivacy: true /* HIGHLY RECOMMANDED Disable auto consent */,
32        handleBrowserDNTRequest: false /* If Do Not Track == 1, disallow all */,
33        removeCredit: false /* Remove credit link */,
34        moreInfoLink: true /* Show more info link */,
35        useExternalCss: false /* If false, the tarteaucitron.css file will be loaded */,
36        useExternalJs: false /* If false, the tarteaucitron.js file will be loaded */,
37        //"cookieDomain": ".my-multisite-domaine.fr", /* Shared cookie for multisite */
38        readmoreLink: "/readme" /* Change the default readmore link */,
39        mandatory: true /* Show a message about mandatory cookies */,
40        bodyPosition: "bottom",
41        removeCredit: true,
42        serviceDefaultState: "wait",
43    });
44
45    tarteaucitron.services.genially = {
46        key: "genially",
47        type: "video",
48        name: "Genially",
49        needConsent: true,
50        cookies: [
51            "gen.lang",
52            "gen.sig",
53            "gen",
54            "OptanonAlertBoxClosed",
55            "OptanonConsent",
56        ],
57        readmoreLink: "https://www.genial.ly/cookies",
58        uri: "https://www.genial.ly/legal-notice",
59        js: function () {
60            "use strict";
61            tarteaucitron.fallback(["genially_player"], function (x) {
62                var iframe = document.createElement("iframe");
63                for (var i in x.attributes) {
64                    if (!x.attributes.hasOwnProperty(i)) {
65                        continue;
66                    }
67                    iframe.setAttribute(
68                        x.attributes[i].name,
69                        x.attributes[i].value
70                    );
71                }
72                iframe.classList.remove("genially_player");
73                return iframe.outerHTML;
74            });
75        },
76        fallback: function () {
77            "use strict";
78            var id = "genially";
79            tarteaucitron.fallback(["genially_player"], function (elem) {
80                elem.style.width =
81                    elem.getAttribute("width") +
82                    (/^\d+$/.test(elem.getAttribute("width")) ? "px" : "");
83                elem.style.height =
84                    elem.getAttribute("height") +
85                    (/^\d+$/.test(elem.getAttribute("height")) ? "px" : "");
86                return tarteaucitron.engage(id);
87            });
88        },
89    };
90
91    tarteaucitron.services.orangeconfortplus = {
92        key: "orangeconfortplus",
93        type: "other",
94        name: "Orange Confort+",
95        needConsent: true,
96        cookies: ["UCI42", "uci-bl"],
97        readmoreLink: "https://confort-plus.orange.com",
98        uri: "https://confort-plus.orange.com/help/help_fr.html#privacy",
99        js: function () {
100            "use strict";
101            if (tarteaucitron.user.orangeconfortplusScript === undefined) {
102                return;
103            }
104
105            window.accessibilitytoolbar_custom = {
106                /* MANDATORY : ID of the target container which will include the link. If not null, activate the display in link mode. The link will be added as the last element of the target container. */
107                idLinkModeContainer: "low-vision",
108
109                /* OPTIONAL (put it as comments if useless) CSS class applied on the link to unify its appearance with the site. */
110                cssLinkModeClassName: "far fa fa-eye-slash low-vision-button",
111
112                /* OPTIONAL (put it as comments if useless) When the service is displayed as a link in the page, a skip link is automatically added at the top of the page. If you already have a group of skip links, you can specify the target container where the skip link will be added. The link will be added as the last element of the target container. */
113                /* idSkipLinkIdLinkMode : "", */
114
115                /* OPTIONAL (put it as comments if useless) CSS class applied on the skip link */
116                /* cssSkipLinkClassName : "" */
117            };
118
119            jQuery.extend(
120                window.accessibilitytoolbar_custom,
121                tarteaucitron.user.orangeconfortplusOptions || {}
122            );
123            tarteaucitron.addScript(
124                tarteaucitron.user.orangeconfortplusScript,
125                "",
126                "",
127                true,
128                "defer",
129                true
130            );
131        },
132    };
133
134    var event = new Event("consentsLoaded");
135    consentsIsLoaded = true;
136    document.dispatchEvent(event);
137});

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.