if (getCookie("notification") !== "true") { $('#cookieinfo').html( /*html*/ ` `); $("#notif-close").on("click", function () { setCookie("notification", "true", 365); }); }