0.0.8 • Published 4 years ago

@movetodigital/cookie-bar v0.0.8

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

⭐️ Cookie bar

  • Add insert script from cdn.jsdelivr.net:
<script src="https://cdn.jsdelivr.net/npm/@movetodigital/cookie-bar@latest/build/index.min.js"/>
<script>
    window.cookieBarConfig = {
        background: 'rgba(0, 0, 0, 0.74)',
        color: '#c8c8c8',
        bottom: 0,
        width: '100%',
        fontFamily: 'system-ui',
        fontSize: '14px',
        text: 'This website uses cookies, to provide the necessary website functionality and improve your experience. By using this website, you agree to our <a target="_blank" href="/cookie-police" style="border-bottom: 1px solid #c8c8c8; color: #c8c8c8; text-decoration: none; cursor: pointer;">cookie policy.</a>',
        agreeText: 'ACCEPT',
        buttonColor: 'white',
        buttonBackground: 'black',
        disableText: 'Disable cookies',
        onDisableButtonClick: () => {
        },
    }
</script>
  • Add initialization script:
<script>
   let CookieBar = window.CookieBar.default;
   let libraryInstance = new CookieBar();
</script>
0.0.8

4 years ago

0.0.7

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.6

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago