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.

28 lines
831 B

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