Browse Source

adding

master
Björn 4 years ago
parent
commit
b0af813ffc
3 changed files with 6 additions and 2 deletions
  1. +1
    -1
      demo.js
  2. +2
    -0
      demo.scss
  3. +3
    -1
      src/TinyConsent.riot

+ 1
- 1
demo.js View File

@ -13,7 +13,7 @@ const data = {
content: 'Cookie from Matamo for Website-Analytics. Creates statiscial Data how the User uses this Website', content: 'Cookie from Matamo for Website-Analytics. Creates statiscial Data how the User uses this Website',
provider: 'Tentakelfabrik.de', provider: 'Tentakelfabrik.de',
duration: '1 Year', duration: '1 Year',
privacy_policy: 'http://this',
privacy_policy: 'https://tentakelfabrik.de/datenschutzerklarung',
handleAgree: function() { handleAgree: function() {
console.log('agree'); console.log('agree');
}, },


+ 2
- 0
demo.scss View File

@ -19,6 +19,8 @@
color: white; color: white;
&__inner { &__inner {
margin: 0 auto;
max-width: 1280px;
padding: 2em; padding: 2em;
} }


+ 3
- 1
src/TinyConsent.riot View File

@ -27,6 +27,7 @@
<li if={ cookie.provider }><span>{ state.options.text.footer__provider }</span> { cookie.provider }</li> <li if={ cookie.provider }><span>{ state.options.text.footer__provider }</span> { cookie.provider }</li>
<li if={ cookie.name }><span>{ state.options.text.footer__name }</span> { cookie.name }</li> <li if={ cookie.name }><span>{ state.options.text.footer__name }</span> { cookie.name }</li>
<li if={ cookie.duration }><span>{ state.options.text.footer__duration }</span> { cookie.duration }</li> <li if={ cookie.duration }><span>{ state.options.text.footer__duration }</span> { cookie.duration }</li>
<li if={ cookie.privacy_policy }><a href="{ cookie.privacy_policy }">{ state.options.text.footer__url }</a></li>
</ul> </ul>
</div> </div>
</div> </div>
@ -79,7 +80,8 @@
button__close : 'Close', button__close : 'Close',
footer__name: 'Cookie Name', footer__name: 'Cookie Name',
footer__provider: 'Provider', footer__provider: 'Provider',
footer__duration: 'Cookie Duration'
footer__duration: 'Cookie Duration',
footer__privacy_policy: 'Privacy Policy'
} }
}, },
isOpen: false, isOpen: false,


Loading…
Cancel
Save