Files
nairobi/app/assets/javascripts/cookies_consent.js
taitus 1958a77842 Allow accept essential cookies from consent banner
Set cookie duration to 365 days based on the AEPD's cookie usage guidelines.

Note from the document: "Cookies with a duration of up to 24 months are
considered acceptable as long as they are periodically updated."
Reference: https://www.aepd.es/guias/guia-cookies.pdf
2025-01-23 16:48:53 +01:00

15 lines
359 B
JavaScript

(function() {
"use strict";
App.CookiesConsent = {
hide: function() {
$("#cookies_consent_banner").hide();
},
initialize: function() {
$(".accept-essential-cookies").on("click", function() {
App.Cookies.saveCookie("cookies_consent", "essential", 365);
App.CookiesConsent.hide();
});
}
};
}).call(this);