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.

45 lines
1.5 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
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. essential: true
  32. }, {
  33. title: 'Wordpress mit WooCommerce',
  34. id: 'wordpress_woocommerce',
  35. name: 'woocommerce_cart_hash, woocommerce_items_in_cart, wp_woocommerce_session_, tk_ai',
  36. content: 'Handle Login of User and Cart of WooCommerce Shop',
  37. provider: 'Owner of this Site',
  38. duration: 'Session',
  39. essential: true
  40. }]
  41. };
  42. riot.mount('tiny-consent', data);
  43. riot.mount('tiny-consent-button');