@vivareal/cookie-notifier
v1.1.5
Published
Cookie notifier 🍪
Downloads
1,052
Maintainers
Keywords
Readme
Cookie notifier 🍪
options
option | Description ---------------------| ------------ link | link of policy of cookies cta | object with cta configurations cta.text | Text of button cta.backgorund | background of button cta.color | color of button text
VUE
Install the npm dependency
npm i @vivareal/cookie-notifier
import and execute then in your App.js
for example.
// App.js
import cookieNotifier from '@vivareal/cookie-notifier'
export default {
mounted() {
new cookieNotifier({
link: 'http://www.google.com',
cta: {
text: 'Entendi',
background: '#1190cd',
color: '#fff',
},
})
}
}
Landingpages
Insert this on a script place in unbouce, WIX or other plataform.
Or dectily in index.html
page inside the <body>
tag.
The source of script have to follow this pattern unpkg.com/:package@:version/:file
.
See the documentation in unpkg
<script src="https://unpkg.com/@vivareal/cookie-notifier@^1"></script>
<script>
new cookieNotifier({
link: 'http://www.google.com',
cta: {
text: 'Entendi',
background: '#1190cd',
color: '#fff',
},
})
</script>