{"id":21893725,"url":"https://github.com/micc83/cookie-notice-js","last_synced_at":"2025-04-15T15:22:40.247Z","repository":{"id":32302058,"uuid":"35877059","full_name":"micc83/cookie-notice-js","owner":"micc83","description":"Vanilla JS that seamlessly add a notice for the European Cookie Law to any website","archived":false,"fork":false,"pushed_at":"2023-03-04T02:38:50.000Z","size":173,"stargazers_count":45,"open_issues_count":4,"forks_count":35,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-06T19:07:22.393Z","etag":null,"topics":["cookie","eu-cookie","eu-law","vanilla-js"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/micc83.png","metadata":{"files":{"readme":"README.md","changelog":"changelog.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-05-19T11:05:43.000Z","updated_at":"2025-03-15T20:57:56.000Z","dependencies_parsed_at":"2022-09-04T05:41:17.513Z","dependency_job_id":null,"html_url":"https://github.com/micc83/cookie-notice-js","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micc83%2Fcookie-notice-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micc83%2Fcookie-notice-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micc83%2Fcookie-notice-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micc83%2Fcookie-notice-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/micc83","download_url":"https://codeload.github.com/micc83/cookie-notice-js/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249095345,"owners_count":21211906,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cookie","eu-cookie","eu-law","vanilla-js"],"created_at":"2024-11-28T13:16:23.837Z","updated_at":"2025-04-15T15:22:40.229Z","avatar_url":"https://github.com/micc83.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"**Notice:** CookieNoticeJS is not under active development for the time being (and not GDPR compliant for what I know). \nCheck  [AOEPeople fork](https://github.com/AOEpeople/cookie-notice) instead.\n\n# CookieNoticeJS\n\n**CookieNoticeJS** is a very simple and small *(→ 2 kB gzip)* vanilla JS script that provides an easy way to show that damn cookie notice on your website.\nSimply add the following tag to your website footer:\n\n```html\n\u003cscript src=\"js/cookie.notice.min.js\"\u003e\u003c/script\u003e\n```\n\nAnd you will get a dismissable banner on the bottom of your pages showing a default cookie audit like the following:\n\n\u003e We use cookies to make sure you can have the best experience on our website. If you continue to use this site we assume that you will be happy with it.\n\nDepending on the visitor browser language one of the preloaded translation will be shown. \nAt the moment **CookieNoticeJS** supports *EN, IT, DE, FR, OC and HU*. \nIf you want to contribute with an extra language do not hesitate to open an issue or a PR.\n\n**CookieNoticeJS** has been successfully tested on IE9+, Chrome, Firefox and Safari.\n\n## Customize CookieNoticeJS\n\nFor the most of you including the script should be enough but **CookieNoticeJS** comes with many customization options. Let's see an example:\n\n```html\n\u003cscript src=\"js/cookie.notice.min.js\"\u003e\u003c/script\u003e\n\u003cscript\u003e\n    new cookieNoticeJS({\n    \n       // Localizations of the notice message\n       'messageLocales': {\n         'it': 'Custom localized message'\n       },\n      \n       // Localizations of the dismiss button text\n       'buttonLocales': {\n         'it': 'Chiudi'\n       },\n       \n       // Position for the cookie-notifier (default=bottom)\n       'cookieNoticePosition':'top',\n       \n       // Shows the \"learn more button (default=false)\n       'learnMoreLinkEnabled':false,\n       \n       // The href of the learn more link must be applied if (learnMoreLinkEnabled=true) \n       'learnMoreLinkHref':'/learn/more/index.html',\n       \n       // Text for optional learn more button\n       'learnMoreLinkText':{\n           'en':'learn more'\n       },\n       \n       // The message will be shown again in X days\n       'expiresIn': 30, \n       \n       // Dismiss button background color\n       'buttonBgColor': '#d35400',  \n       \n       // Dismiss button text color\n       'buttonTextColor': '#fff', \n         \n       // Notice background color\n       'noticeBgColor': '#000', \n          \n       // Notice text color\n       'noticeTextColor': '#fff', \n       \n       // the lernMoreLink color (default='#009fdd') \n       'linkColor':'#f00'\n          \n    });\n\u003c/script\u003e\n```\n\n#### Contributors\n* [Bernhard Behrendt](mailto:bernhard.behrendt@aoe.com) \n* [@AOEpeople](https://github.com/AOEpeople) \n* [@sqpp](https://github.com/sqpp)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicc83%2Fcookie-notice-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmicc83%2Fcookie-notice-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicc83%2Fcookie-notice-js/lists"}