Current path: home/webdevt/cryptoimpot.fr/public/dist/js/
?? Go up: /home/webdevt/cryptoimpot.fr/public/dist
$(function () {
'use strict';
var cookieAlert = $(".cookiealert");
var acceptCookies = $(".acceptcookies");
cookieAlert.hide();
if (!cookieAlert) {
return;
}
// console.log($.cookie("acceptCookies"));
if (!$.cookie("acceptCookies")) {
cookieAlert.slideDown();
}
acceptCookies.on("click", function () {
$.cookie("acceptCookies", 1, {
expires: 365, // Expires in 365 days
path: '/', // The value of the path attribute of the cookie
// (Default: path of page that created the cookie).
//domain: 'jquery.com', // The value of the domain attribute of the cookie
// (Default: domain of page that created the cookie).
secure: false // If set to true the secure attribute of the cookie
// will be set and the cookie transmission will
// require a secure protocol (defaults to false).
});
//setCookie("acceptCookies", true, 365);
console.log('set cookie');
//cookieAlert.classList.remove("show");
//cookieAlert.removeClass('show');
cookieAlert.slideUp();
});
});