2.8.3 • Published 5 years ago
cookie-setting v2.8.3
GDPR Cookie Setting
Inspired by passatgt
This is a javascript solution to show a gdpr compliant cookie notice on your website.
Demo
Check this site for a quick demo: Link
How it works?
Include the scripts.js and style.css files on your site from the dist folder. Init the script with the following config file:
<head>
...
<link
rel="stylesheet"
type="text/css"
href="https://unpkg.com/cookie-setting@latest/dist/style.css"
/>
</head>
<body>
...
<script
src="https://unpkg.com/cookie-setting@latest/dist/script.js"
type="text/javascript"
></script>
<script>
gdprCookieNotice({
locale: 'en', // language ("en", "de")
timeout: 500, // Time until the cookie bar appears
expiration: 30, // expiration date for accepting cookie, it'll show popup again when it's expire
domain: '.yoursite.com', // specify your web domain prefix with dot
colorPrimary: '#ff0000', // change primary color (used in button and radio)
colorSecondary: '#000000', // change secondary color (used in link)
policyLink: "https://www.20scoops.com" // cookie policy link,
analytics: "UA-MOCK"
});
</script>
</body>
2.8.3
5 years ago
2.8.2
5 years ago
2.8.1
5 years ago
2.8.0
5 years ago
2.7.0
5 years ago
2.6.0
5 years ago
2.5.0
5 years ago
2.4.0
5 years ago
2.3.7
5 years ago
2.3.6
5 years ago
2.3.5
5 years ago
2.3.4
5 years ago
2.3.3
5 years ago
2.3.2
5 years ago
2.3.0
5 years ago
2.2.0
5 years ago
2.1.0
5 years ago
2.0.0
5 years ago
1.1.4
5 years ago
1.1.3
5 years ago
1.1.2
5 years ago
1.1.1
5 years ago
1.1.0
5 years ago
1.0.0
5 years ago