@vivareal/cookie-notifier

    1.1.1 • Public • Published

    Cookie notifier 🍪

    Preview

    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>

    Keywords

    none

    Install

    npm i @vivareal/cookie-notifier

    DownloadsWeekly Downloads

    359

    Version

    1.1.1

    License

    ISC

    Unpacked Size

    406 kB

    Total Files

    4

    Last publish

    Collaborators

    • alexandre.fernandes
    • hanielwolz
    • lorenzocandiago
    • carlosfilipe
    • thiago.pacheco.olxbr
    • yagoazedias
    • thiago.nascimento
    • marcellagutie
    • samuel.braga
    • matheusrsilva
    • josofd
    • brunofsouza
    • roger-toledo
    • fernando.barbosa-ext
    • charlescarrari
    • fernandotoledo
    • ivansaav
    • gustavoresende
    • jeconias.olx
    • igorfonsecaolxbr
    • diozefe
    • joao.zacarkin
    • nathan.ribeiro
    • willramos1990
    • marchena
    • geoldery
    • daniel_quirino
    • wandersonguimaraes
    • arthus05
    • gabriel-barreto-ext
    • ahcheles
    • girardellibaptista
    • gabrielabergamo
    • lmaiaa
    • nadisonolx
    • luiz.moitinho
    • gustavoaz
    • leocpii
    • marcelo.tdsjr
    • acmon.soares
    • anaclara_
    • fabionofre
    • geanpeixoto
    • ltiago90
    • wesleymreng7olx
    • jorgevieira
    • sergiohampel
    • pppfs
    • aline.capucho
    • oliveiravinicius
    • jumeneguete
    • rodrigoyo
    • gustavo.armelin
    • notarme
    • mvnsantos
    • amanda-yosh
    • cmarcal.roberto
    • ana-laura
    • pedrolxbr
    • leandro.almeida
    • wendelleloi
    • ricardopdsf
    • almir.junior
    • alalbux
    • gabriela.ciriaco
    • marcio.barbosa
    • vmattos
    • jeffbraga
    • alinealvesvianna
    • mibsbalsante
    • luissobral
    • npm-vivareal
    • vivareal-ci
    • lfkondo
    • fernandonito
    • lastikas
    • jeffersondanielss
    • abaldove
    • jhonatagrupozap
    • marcelojunior7
    • bitlucas
    • mauroandremazzola
    • ewertonr
    • fernandoprocy
    • vcovre
    • fsmelo
    • pereirapleandro
    • cabral-ricardo
    • msouza
    • jeffotuka
    • jonsato
    • debora.pires
    • bparolini
    • robsonoduarte
    • diaslucas
    • rogerfernandes
    • giovannicaldeira
    • jmenezes.olxbr
    • daniellemos
    • gabischima
    • marcosgeo