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.

37 lines
1.1 KiB

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
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. text: {
  8. content: undefined
  9. },
  10. cookies: [{
  11. title: 'Matomo',
  12. name: 'matamo_',
  13. id: 'matamo',
  14. content: 'Cookie from Matamo for Website-Analytics. Creates statiscial Data how the User uses this Website',
  15. provider: 'Tentakelfabrik.de',
  16. duration: '1 Year',
  17. privacy_policy: 'https://tentakelfabrik.de/datenschutzerklarung',
  18. handleAgree: function() {
  19. console.log('agree');
  20. },
  21. handleReject: function() {
  22. console.log('reject');
  23. }
  24. },{
  25. title: 'Tiny Consent',
  26. id: 'tiny_consent',
  27. name: 'tiny_consent',
  28. content: 'Saves the Settings of Cookies from Tiny Consent',
  29. provider: 'Owner of this Site',
  30. duration: '1 Year',
  31. default: true
  32. }]
  33. };
  34. riot.mount('tiny-consent', data);
  35. riot.mount('tiny-consent-button');