"Nous utilisons des cookies pour améliorer et personnaliser votre expérience."
desc
"Vous pouvez à tout moment revenir sur vos choix en utilisant le lien « paramétrer les cookies sur ce site » disponible dans notre politique de confidentialité"
accept
"Je valide"
reject_all
"Non merci"
accept_all
"J'accepte tout"
Methods
Method
Type
Description
init()
Initialize the CMP
debug()
Log settings and CMP cookie
showPopup()
Show CMP popup
hidePopup()
Hide CMP Popup
setSeed()
string
Change the seed if consents are added or modified to reset the cookie
setText()
object
Customise popup sentences
addConsent()
(string,object)
Add consent with a named key and object with its value
updateConsent()
(string,object)
Update consent with the named key of the consent to be updated and an object containing the new values
Consents
key
Type
Description
disabled
bool
Disabled the checkbox of the consent
value
bool
Default value of the consent
icon
url, base64 image, false
For better acceptance, accompany the consent with an icon. (16x16)
title
string
Title of the consent
text
string
Description of the consent
callback
function
Function used if consent is approved
Toggle popup
In order to open the popup again, add the class show-cmp on a link, button, or other. When clicked, the popup will appear.