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.
 
 
 

29 lines
831 B

import * as riot from 'riot';
import TinyConsent from './src/TinyConsent.riot';
import TinyConsentButton from './src/TinyConsentButton.riot';
riot.register('tiny-consent', TinyConsent);
riot.register('tiny-consent-button', TinyConsentButton);
const data = {
cookies: [{
title: 'Matomo',
name: 'matamo_',
id: 'matamo',
content: '',
handleAgree: function() {
console.log('agree');
},
handleReject: function() {
console.log('reject');
}
},{
id: 'wordpress',
name: 'wordpress_',
content: 'Wordpress und WooCommerce nutzen Session, diese werden zum einen für den Login genutzt, aber auch für den Warenkorb.',
essential: true
}]
};
riot.mount('tiny-consent', data);
riot.mount('tiny-consent-button');