You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
639 B

4 years ago
  1. import * as riot from 'riot';
  2. import TinyConsent from './src/TinyConsent.riot';
  3. riot.register('tiny-consent', TinyConsent);
  4. const consent = {
  5. cookies: [{
  6. id: 'wordpress',
  7. name: 'wordpress_*',
  8. content: 'Wordpress und WooCommerce nutzen Session, diese werden zum einen für den Login genutzt, aber auch für den Warenkorb.',
  9. essential: true
  10. },{
  11. name: 'matamo',
  12. content: 'test',
  13. handleAgree: function() {
  14. console.log('agree');
  15. },
  16. handleReject: function() {
  17. console.log('reject');
  18. }
  19. }]
  20. };
  21. riot.mount('tiny-consent', consent);