@palmabit/react-cookie-law-static-loader
Static loader for react cookie banner GDPR compliance
Last updated 5 months ago by a.sarzina .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @palmabit/react-cookie-law-static-loader 
SYNC missed versions from official npm registry.

React Cookie Law static loader

Example


<body>
  <div id="_rcl-banner"></div>

  <script crossorigin src="https://unpkg.com/@palmabit/react-cookie-law-static-loader@0.4.0/index.js"></script>

  <script>
    renderCookieBanner({
      elementId: '_rcl-banner', // default "_rcl-banner"
      props: {
        message: 'Lorem ipsum',
        // other @palmabit/react-cookie-law params
      }
    })
  </script>

  <script type="text/plain" class="_rcl">
      console.log('Custom script...');
  </script>

  <script type="text/plain" class="_rcl_preferences">
      console.log('Custom preferences script');
  </script>

  <script type="text/plain" class="_rcl_statistics">
      console.log('Custom statistics script');
  </script>

  <script type="text/plain" class="_rcl_marketing">
      console.log('Custom marketing script');
  </script>
</body>

Author

Palmabit

Licence

See the MIT License

Current Tags

  • 0.4.0                                ...           latest (5 months ago)

7 Versions

  • 0.4.0                                ...           5 months ago
  • 0.3.0                                ...           a year ago
  • 0.2.5                                ...           a year ago
  • 0.2.4                                ...           2 years ago
  • 0.2.3                                ...           2 years ago
  • 0.2.2                                ...           2 years ago
  • 0.2.1                                ...           2 years ago
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 3
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |