Browse Source

adding

master
Björn 4 years ago
parent
commit
1ba3ad3ff8
4 changed files with 4 additions and 12 deletions
  1. +0
    -8
      demo.js
  2. +1
    -1
      dist/js/demo.js
  3. +1
    -1
      package.json
  4. +2
    -2
      src/TinyConsent.riot

+ 0
- 8
demo.js View File

@ -31,14 +31,6 @@ const data = {
provider: 'Owner of this Site',
duration: '1 Year',
default: true
}, {
title: 'Wordpress mit WooCommerce',
id: 'wordpress_woocommerce',
name: 'woocommerce_cart_hash, woocommerce_items_in_cart, wp_woocommerce_session_, tk_ai',
content: 'Handle Login of User and Cart of WooCommerce Shop',
provider: 'Owner of this Site',
duration: 'Session',
default: true
}]
};


+ 1
- 1
dist/js/demo.js
File diff suppressed because it is too large
View File


+ 1
- 1
package.json View File

@ -1,6 +1,6 @@
{
"name": "tiny-consent",
"version": "1.1.5",
"version": "1.1.6",
"description": "Consent Banner for GDPR with RiotJS, part of Tiny-Components",
"scripts": {
"dev": "npm run development",


+ 2
- 2
src/TinyConsent.riot View File

@ -15,10 +15,10 @@
<div class="tiny-consent__main">
<ul class="tiny-consent__cookies">
<li class="tiny-consent__cookie-group" each={ group in Object.entries(state.cookies) }>
<header class="tiny-consent__cookie-accordion-header" if={ group[0] === 'default' && group[1].length > 1 } onclick={ () => { handleToogle() }}>
<header class="tiny-consent__cookie-accordion-header" if={ group[0] === 'default' } onclick={ () => { handleToogle() }}>
{ state.options.text.title__default } ({ group[1].length }) <span class="tiny-consent__cookie-accordion-header-icon">&#9650;</span>
</header>
<div class="tiny-consent__cookie-accordion{ group[0] === 'default' && group[1].length > 1 ? ' tiny-consent__cookie-accordion--active' : '' }">
<div class="tiny-consent__cookie-accordion{ group[0] === 'default' ? ' tiny-consent__cookie-accordion--active' : '' }">
<div class="tiny-consent__cookie-accordion-inner">
<div class="tiny-consent__cookie-wrapper" each={ (cookie, index) in group[1] }>
<div class="tiny-consent__cookie-content">


Loading…
Cancel
Save