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.

51 lines
1.6 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
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. options: {
  8. force: true
  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: 'Matomo',
  26. name: 'matamo_',
  27. id: 'matamo2',
  28. content: 'Cookie from Matamo for Website-Analytics. Creates statiscial Data how the User uses this Website',
  29. provider: 'Tentakelfabrik.de',
  30. duration: '1 Year',
  31. privacy_policy: 'https://tentakelfabrik.de/datenschutzerklarung',
  32. handleAgree: function() {
  33. console.log('agree');
  34. },
  35. handleReject: function() {
  36. console.log('reject');
  37. }
  38. },{
  39. title: 'Tiny Consent',
  40. id: 'tiny_consent',
  41. name: 'tiny_consent',
  42. content: 'Saves the Settings of Cookies from Tiny Consent',
  43. provider: 'Owner of this Site',
  44. duration: '1 Year',
  45. default: true
  46. }]
  47. };
  48. riot.mount('tiny-consent', data);
  49. riot.mount('tiny-consent-button');