Git Product home page Git Product logo

consentmanager's Introduction

flundr Consentmanager

Small Javascript Library for DSGVO - Consent Management

ConsentManagerPreview

Start and Options

window.consentManager = new ConsentManager({
	cookieName : 'consentCookie',
	cookieExpireDays : 365,
	closeOnModalClick : true,

	headline : '<h3>New Headline</h3>',
	text : '<p>Here you can Edit the Teasertext</p>',
	buttonText : 'Speichern und schließen',

	fields : [

		{
			name: 'marketing',
			label: 'Marketingdaten - <i>Helfen Sie uns relevantere Angebote zu erstellen</i>',
		},

		{
			name: 'tracking',
			label: 'Nutzerdaten Analyse - <i>Wir möchten lernen, was Sie bei uns interessiert</i>',
		},

		{
			name: 'mandatory',
			label: 'Berechtigtes Interesse - <i>z.B. zum speichern des User Logins</i>',
			mandatory : true
		},
	],

	details: '<small>Read more in our <a target"_blank" href="/datapolicy">Datapolicy</a></small>'
});

Consent Layer Options

<button onclick="consentManager.show()">Show Consent Layer</button>
<button onclick="consentManager.activate('marketing')">Activate and Reload Page</button>
<button onclick="consentManager.deactivate('marketing')">Deactivate and Reload Page</button>
<button onclick="consentManager.reset()">Delete Consent Cookies</button>

Get Users Consent Status

'marketing' is the Consentfields name

<script>
if (consentManager.status('marketing')) {
  // Your Marketing Code here	
}
</script>

consentmanager's People

Contributors

tubsn avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.