1.1.5 • Published 11 months ago

@vivareal/cookie-notifier v1.1.5

Weekly downloads
372
License
ISC
Repository
github
Last release
11 months ago

Cookie notifier 🍪

Preview

options

optionDescription
linklink of policy of cookies
ctaobject with cta configurations
cta.textText of button
cta.backgorundbackground of button
cta.colorcolor 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>
1.1.5

11 months ago

1.1.4

1 year ago

1.1.3

1 year ago

1.1.2

1 year ago

1.1.1

2 years ago

1.1.0

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago