vue-cookie-notification
Version:
Vue eu cookie law notification
82 lines (55 loc) • 1.77 kB
Markdown
<p align="center">
<img width="250" height="250" src="cookie-notice.png">
</p>
- __Lead Maintainer:__ [David Roche][Lead]
Vue cookie notification is a simple way to add cookie notice to your website
to comply with EU law. The main functionality still has to be added :)
- Post a [github issue][Issue],
To install via npm,
```
install vue-cookie-notification
```
```html
<template>
<div id="app">
<cookie :cookietext="cookietext" :cookiebutton="cookiebutton" :cookietextcolor="cookietextcolor"
:cookietextsize="cookietextsize" :cookiebackgroundcolor="cookiebackgroundcolor" :cookiename="cookiename" :cookievalue="cookievalue" :cookieexdays="cookieexdays" ></cookie>
</div>
</template>
```
```js
import cookie from 'vue-cookie-notification';
export default {
name: 'app',
components: {
cookie
},
data () {
return {
cookietext:'In order to give you the best experience, our website eats cookies. By continuing to use this site, you agree to our diet of cookies.',
cookiebutton:'feed me',
cookietextcolor:'green',
cookietextsize:'20px',
cookiebackgroundcolor:'orange',
cookiename:'VUECOOKIE',
cookievalue:'12345',
cookieexdays:365,
}
}
}
```
```css
<style>
</style>
```
If you feel you can help in any way, be
it with bug reporting, documentation, examples, extra testing, or new features feel free
to [create an issue][Issue], or better yet, [submit a [Pull Request][Pull].
[]: https://github.com/davidwroche/vue-cookie-notification/issues
[]: https://github.com/davidwroche
[]: https://www.npmjs.com/package/vue-cookie-notification
[]: https://github.com/davidwroche/vue-cookie-notification/pulls