New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

cookie-consent-js

Package Overview
Dependencies
Maintainers
1
Versions
76
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cookie-consent-js - npm Package Compare versions

Comparing version 1.6.5 to 1.6.6

2

package.json
{
"name": "cookie-consent-js",
"version": "1.6.5",
"version": "1.6.6",
"description": "A simple dialog and framework to handle the German and EU law (may 2020) about cookies in a website",

@@ -5,0 +5,0 @@ "main": "src/cookie-consent.js",

@@ -6,10 +6,13 @@ # cookie-consent-js

**cookie-consent-js has no external dependencies**, and it works also with Bootstrap.
## Features
- [Demo pages in plain HTML or with Bootstrap](https://shaack.com/projekte/cookie-consent-js/index.html)
- [npm package](https://www.npmjs.com/package/cookie-consent-js)
- **cookie-consent-js has no external dependencies** – and it works also with Bootstrap.
- **cookie-consent-js is responsive**, it works on mobile and desktop devices.
- You can customize cookie-consent-js with its properties, add [translations](https://shaack.com/projekte/cookie-consent-js/examples/cookie-consent-add-translations.html) and change its behaviour.
- Customize **cookie-consent-js** via `css` or `scss` to fit your website.
> **Note** We made another version with more detailed cookie settings, which needs Bootstrap. You find it
> at https://github.com/shaack/bootstrap-cookie-consent-settings
## See it in action
- [Demo pages with usage examples](https://shaack.com/projekte/cookie-consent-js/index.html)
## Usage

@@ -127,3 +130,3 @@

```js
this.props = {
self.props = {
buttonPrimaryClass: "btn btn-primary", // the "accept all" buttons class, only used for styling

@@ -133,6 +136,7 @@ buttonSecondaryClass: "btn btn-secondary", // the "accept necessary" buttons class, only used for styling

autoShowModal: true, // disable autoShowModal on the privacy policy page, to make that page readable
lang: navigator.language, // the language, in which the modal is shown
blockAccess: false, // set "true" to block the access to the website before choosing a cookie configuration
position: "right", // position ("left" or "right"), if blockAccess is false
postSelectionCallback: undefined, // callback, after the user has made his selection
lang: navigator.language, // the language, in which the dialog is shown
defaultLang: "en", // default language, if the `lang` is not available as translation in `content`
content: { // the content in all needed languages

@@ -139,0 +143,0 @@ de: {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc