Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG le lien pour ouvrir la modale des cookies ne semble pas fonctionner tout le temps #3326

Open
clairezed opened this issue Jan 29, 2024 · 0 comments

Comments

@clairezed
Copy link
Collaborator

clairezed commented Jan 29, 2024

Semble être un pb de l'init de tarteaucitron
(turbo:load fonctionne)

Tester l'import de tac dans vendors, et peut-être nécessité de modifier le script en natif direct ?

Exemple : https://www.1jeune1solution.gouv.fr/scripts/tarteaucitron.js?v=3.159.8

var tarteaucitron = {
    "version": 20231212,
    "cdn": cdn,
    "user": {},
    "lang": {},
    "services": {},
    "added": [],
    "idprocessed": [],
    "state": {},
    "launch": [],
    "parameters": {},
    "isAjax": false,
    "reloadThePage": false,
    "events": {
        "init": function () {},
        "load": function () {},
    },
    "init": function (params) {
        "use strict";
        var origOpen;

        tarteaucitron.parameters = params;
        if (alreadyLaunch === 0) {
            alreadyLaunch = 1;
            if (window.addEventListener) {
                /** DEBUT - A REPORTER SI MAJ DU FICHIER TARTEAUCITRON.JS **/
                try {
                    tarteaucitron.initEvents.loadEvent(false)
                } catch (e) {
                    window.addEventListener("load", function () {
                        tarteaucitron.initEvents.loadEvent(false);
                    }, false);
                }
                /** FIN - A REPORTER SI MAJ DU FICHIER TARTEAUCITRON.JS **/
                window.addEventListener("scroll", function () {
                    tarteaucitron.initEvents.scrollEvent();
                }, false);
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

1 participant