diff --git a/docs/404.html b/docs/404.html index ec085a0..edbc00e 100644 --- a/docs/404.html +++ b/docs/404.html @@ -1 +1 @@ -
this is the @magic-modules Gdpr component. adds a gdpr compliant information popup with minimal intrusion and complexity to your page.
allowAllCookiesButtonText: allow all data
allowCookieButtonText: allow selected
allowed:
cookieText: cookie text, shown if cookies are defined
cookieButtonText: cookie Button text
denyCookieButtonText: deny all data
left: true
noCookieText: no Cookie text, shown if no cookies are defined
noCookieButtonText: no Cookie Button text
show: true
small: true
title: Main popup title
npm install @magic-modules/gdpr
gdpr gets loaded automatically after being installed.
to configure it, add the object below to /src/app.mjs
// /src/app.mjs
export const state = {
gdpr: {
show: false, // || true
small: false, // if true, component has 30% of screen.
left: false, // popup is positioned to the left if true
right: false, // popup is positioned to the right if true
title: 'Main popup title',
content: 'text of cookie popup',
noCookieText: 'String or Array of Magic modules',
noCookieButtonText: 'String or Array of Magic modules',
cookieButtonText: 'String or Array of Magic modules',
allowAllCookiesButtonText: 'String or Array of Magic modules',
allowCookieButtonText: 'String or Array of Magic modules',
denyCookieButtonText: 'String or Array of Magic modules',
cookieText: 'String or Array of Magic modules',
},
cookies: [
['name', { title: 'cookie1 title', content: 'cookie description' }],
['cookie 2', { title: 'cookie title', content: 'cookie content' }],
],
})
the source for this page is in the example directory and gets built and published to github using @magic/core
this is the @magic-modules Gdpr component. adds a gdpr compliant information popup with minimal intrusion and complexity to your page.
allowAllCookiesButtonText: allow all data
allowCookieButtonText: allow selected
allowed:
content: Cookie popup main content text.
cookieButtonText: cookie Button text
cookieText: cookie text, shown if cookies are defined
denyCookieButtonText: deny all data
left: true
noCookieButtonText: no Cookie Button text
noCookieText: no Cookie text, shown if no cookies are defined
show: true
small: true
title: Main popup title
npm install @magic-modules/gdpr
gdpr gets loaded automatically after being installed.
to configure it, add the object below to /src/app.mjs
// /src/app.mjs
export const state = {
gdpr: {
show: false, // || true
small: false, // if true, component has 30% of screen.
left: false, // popup is positioned to the left if true
right: false, // popup is positioned to the right if true
title: 'Main popup title',
content: 'text of cookie popup',
noCookieText: 'String or Array of Magic modules',
noCookieButtonText: 'String or Array of Magic modules',
cookieButtonText: 'String or Array of Magic modules',
allowAllCookiesButtonText: 'String or Array of Magic modules',
allowCookieButtonText: 'String or Array of Magic modules',
denyCookieButtonText: 'String or Array of Magic modules',
cookieText: 'String or Array of Magic modules',
},
cookies: [
['name', { title: 'cookie1 title', content: 'cookie description' }],
['cookie 2', { title: 'cookie title', content: 'cookie content' }],
],
})
the source for this page is in the example directory and gets built and published to github using @magic/core