Skip to content
This repository has been archived by the owner on Nov 12, 2024. It is now read-only.

Commit

Permalink
Updated cookies
Browse files Browse the repository at this point in the history
  • Loading branch information
tanguy-fgl committed May 20, 2024
1 parent 5a1b33a commit 8efb627
Show file tree
Hide file tree
Showing 9 changed files with 72 additions and 83 deletions.
139 changes: 64 additions & 75 deletions assets/js/cookieconsent-config.js
Original file line number Diff line number Diff line change
@@ -1,131 +1,120 @@
import 'https://cdn.jsdelivr.net/gh/orestbida/[email protected].0/dist/cookieconsent.umd.js';
import 'https://cdn.jsdelivr.net/gh/orestbida/[email protected].1/dist/cookieconsent.umd.js';

// Enable dark mode
document.documentElement.classList.add('cc--darkmode');

CookieConsent.run({
guiOptions: {
consentModal: {
layout: "bar inline",
position: "bottom",
layout: 'bar inline',
position: 'bottom',
equalWeightButtons: true,
flipButtons: false
flipButtons: false,
},
preferencesModal: {
layout: "box",
position: "right",
layout: 'box',
position: 'right',
equalWeightButtons: true,
flipButtons: true
}
flipButtons: true,
},
},
categories: {
necessary: {
readOnly: true
readOnly: true,
},
functionality: {},
analytics: {},
marketing: {}
},
language: {
default: "en",
autoDetect: "browser",
default: 'en',
autoDetect: 'document',
translations: {
en: {
consentModal: {
title: "Hello traveller, it's cookie time!",
description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip.",
acceptAllBtn: "Accept all",
acceptNecessaryBtn: "Reject all",
showPreferencesBtn: "Manage preferences",
footer: "<a href=\"#link\">Privacy Policy</a>\n<a href=\"#link\">Terms and conditions</a>"
description: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip.',
acceptAllBtn: 'Accept all',
acceptNecessaryBtn: 'Reject all',
showPreferencesBtn: 'Manage preferences',
footer: '<a href="https://beestech.fr/en/privacy-policy">Privacy Policy</a>\n<a href="V">Terms of service</a>',
},
preferencesModal: {
title: "Consent Preferences Center",
acceptAllBtn: "Accept all",
acceptNecessaryBtn: "Reject all",
savePreferencesBtn: "Save preferences",
closeIconLabel: "Close modal",
serviceCounterLabel: "Service|Services",
title: 'Consent Preferences Center',
acceptAllBtn: 'Accept all',
acceptNecessaryBtn: 'Reject all',
savePreferencesBtn: 'Save preferences',
closeIconLabel: 'Close modal',
serviceCounterLabel: 'Service|Services',
sections: [
{
title: "Cookie Usage",
description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat."
title: 'Cookie Usage',
description: 'Do you want us to respect your choices regarding cookies? Configure now what we can and cannot use.',
},
{
title: "Strictly Necessary Cookies <span class=\"pm__badge\">Always Enabled</span>",
description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.",
linkedCategory: "necessary"
title: 'Strictly Necessary Cookies <span class="pm__badge">Always Enabled</span>',
description: 'These cookies cannot be deactivated; they are used for the proper functioning of the site. In particular, they can be used to select a language preference or color palette (e.g. dark/light theme).',
linkedCategory: 'necessary',
},
{
title: "Functionality Cookies",
description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.",
linkedCategory: "functionality"
title: 'Functionality Cookies',
description: 'These cookies are used, for example, to display external elements on our site. In particular, requests for feedback on our services.',
linkedCategory: 'functionality',
},
{
title: "Analytics Cookies",
description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.",
linkedCategory: "analytics"
title: 'Analytics Cookies',
description: "These cookies are used for analytical purposes. Don't worry, everything is anonymized. They enable us to improve our site and detect certain problems.",
linkedCategory: 'analytics',
},
{
title: "Advertisement Cookies",
description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.",
linkedCategory: "marketing"
title: 'More information',
description: 'For more information, please contact us at this e-mail address <a class="cc__link" href="mailto:[email protected]">[email protected]</a>.',
},
{
title: "More information",
description: "For any query in relation to my policy on cookies and your choices, please <a class=\"cc__link\" href=\"#yourdomain.com\">contact me</a>."
}
]
}
],
},
},
fr: {
consentModal: {
title: "Bonjour voyageur, c'est l'heure des cookies!",
description: "Notre site utilise des cookies pour permettre son bon fonctionnement. C'est à dire notamment des cookies à des fins analytiques ou encore d'éventuelles publicités. Veuillez noter que nous utilisons des cookies, uniquement pour vous proposer une expérience personnalisée mais aussi pour nous améliorer.",
acceptAllBtn: "Tout accepter",
acceptNecessaryBtn: "Tout rejeter",
showPreferencesBtn: "Gérer les préférences",
footer: "<a href=\"https://beestech.fr/politique-de-confidentialite\">Politique de confidentialité</a>\n<a href=\"https://beestech.fr/conditions-generales-d'utilisation\">Conditions générales d'utilisation</a>"
acceptAllBtn: 'Tout accepter',
acceptNecessaryBtn: 'Tout rejeter',
showPreferencesBtn: 'Gérer les préférences',
footer: '<a href="https://beestech.fr/politique-de-confidentialite">Politique de confidentialité</a>\n<a href="https://beestech.fr/conditions-generales-d\'utilisation">Conditions générales d\'utilisation</a>',
},
preferencesModal: {
title: "Préférences de cookies",
acceptAllBtn: "Tout accepter",
acceptNecessaryBtn: "Tout rejeter",
savePreferencesBtn: "Sauvegarder les préférences",
closeIconLabel: "Fermer la modale",
serviceCounterLabel: "Services",
title: 'Préférences de cookies',
acceptAllBtn: 'Tout accepter',
acceptNecessaryBtn: 'Tout rejeter',
savePreferencesBtn: 'Sauvegarder les préférences',
closeIconLabel: 'Fermer la modale',
serviceCounterLabel: 'Services',
sections: [
{
title: "Utilisation des Cookies",
description: "Vous voulez que nous respectons vos choix, en matière de cookies ? Configurer dès maintenant, ce que nous pouvons utiliser ou non."
title: 'Utilisation des Cookies',
description: 'Vous voulez que nous respectons vos choix, en matière de cookies ? Configurer dès maintenant, ce que nous pouvons utiliser ou non.',
},
{
title: "Cookies Strictement Nécessaires <span class=\"pm__badge\">Toujours Activé</span>",
title: 'Cookies Strictement Nécessaires <span class="pm__badge">Toujours Activé</span>',
description: "Ces cookies ne peuvent pas être désactivé, ils servent au bon fonctionnement du site. Cela peut notamment être utilisé pour une préférence de langage ou d'une palette de couleurs (ex: thème sombre/clair)",
linkedCategory: "necessary"
linkedCategory: 'necessary',
},
{
title: "Cookies de Fonctionnalités",
title: 'Cookies de Fonctionnalités',
description: "Ces cookies nous servent par exemple à afficher des élèments externes sur notre site. Notamment les demandes d'avis par rapport à nos services",
linkedCategory: "functionality"
},
{
title: "Cookies Analytiques",
description: "Ces cookies sont utilisées à des fins analytiques. Ne vous inquiétez pas tout est anonymatisé. Ils nous permettent de nous améliorer, de déceler certains problèmes sur notre site.",
linkedCategory: "analytics"
linkedCategory: 'functionality',
},
{
title: "Cookies Publicitaires",
description: "Ces cookies sont utilisés pour vous proposer une expérience publicitaire personnalisée. Attention, cela ne signifie pas que les pubs seront désactivées.",
linkedCategory: "marketing"
title: 'Cookies Analytiques',
description: 'Ces cookies sont utilisées à des fins analytiques. Ne vous inquiétez pas tout est anonymatisé. Ils nous permettent de nous améliorer, de déceler certains problèmes sur notre site.',
linkedCategory: 'analytics',
},
{
title: "Plus d'informations",
description: "Pour plus d'informations, veuillez nous contacter à cette adresse e-mail <a class=\"cc__link\" href=\"mailto:[email protected]\">[email protected]</a>."
}
]
}
}
}
}
});
description: 'Pour plus d\'informations, veuillez nous contacter à cette adresse e-mail <a class="cc__link" href="mailto:[email protected]">[email protected]</a>.',
},
],
},
},
},
},
});
2 changes: 1 addition & 1 deletion conditions-generales-d-utilisation.html
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@
</script>

<!-- Cookie -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/orestbida/[email protected].0/dist/cookieconsent.css" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/orestbida/[email protected].1/dist/cookieconsent.css" />

<link rel="preload" href="https://furycraft.sirv.com/Images/hero-bg.webp" as="image" />

Expand Down
2 changes: 1 addition & 1 deletion en/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -1116,7 +1116,7 @@ function gtag(){dataLayer.push(arguments);}
</script>

<!-- Cookie -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/orestbida/[email protected].0/dist/cookieconsent.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/orestbida/[email protected].1/dist/cookieconsent.css">

<link rel="preload" href="https://furycraft.sirv.com/Images/hero-bg.webp" as="image" />

Expand Down
2 changes: 1 addition & 1 deletion en/legal-notice.html
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@
</script>

<!-- Cookie -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/orestbida/[email protected].0/dist/cookieconsent.css" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/orestbida/[email protected].1/dist/cookieconsent.css" />

<link rel="preload" href="https://furycraft.sirv.com/Images/hero-bg.webp" as="image" />

Expand Down
2 changes: 1 addition & 1 deletion en/privacy-policy.html
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@
</script>

<!-- Cookie -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/orestbida/[email protected].0/dist/cookieconsent.css" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/orestbida/[email protected].1/dist/cookieconsent.css" />

<link rel="preload" href="https://furycraft.sirv.com/Images/hero-bg.webp" as="image" />

Expand Down
2 changes: 1 addition & 1 deletion en/terms-of-service.html
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@
</script>

<!-- Cookie -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/orestbida/[email protected].0/dist/cookieconsent.css" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/orestbida/[email protected].1/dist/cookieconsent.css" />

<link rel="preload" href="https://furycraft.sirv.com/Images/hero-bg.webp" as="image" />

Expand Down
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ function gtag(){dataLayer.push(arguments);}
</script>

<!-- Cookie -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/orestbida/[email protected].0/dist/cookieconsent.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/orestbida/[email protected].1/dist/cookieconsent.css">

<link rel="preload" href="https://furycraft.sirv.com/Images/hero-bg.webp" as="image" />

Expand Down
2 changes: 1 addition & 1 deletion mentions-legales.html
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@
</script>

<!-- Cookie -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/orestbida/[email protected].0/dist/cookieconsent.css" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/orestbida/[email protected].1/dist/cookieconsent.css" />

<link rel="preload" href="https://furycraft.sirv.com/Images/hero-bg.webp" as="image" />

Expand Down
2 changes: 1 addition & 1 deletion politique-de-confidentialite.html
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@
</script>

<!-- Cookie -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/orestbida/[email protected].0/dist/cookieconsent.css" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/orestbida/[email protected].1/dist/cookieconsent.css" />

<link rel="preload" href="https://furycraft.sirv.com/Images/hero-bg.webp" as="image" />

Expand Down

0 comments on commit 8efb627

Please sign in to comment.