Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v2.4 #22

Merged
merged 14 commits into from
May 25, 2021
Merged

v2.4 #22

merged 14 commits into from
May 25, 2021

Conversation

orestbida
Copy link
Owner

@orestbida orestbida commented May 25, 2021

resolve #19 + new features

full changelog:

  • added some basic options for layout and position via gui_options:
    /* Basic gui options */
    gui_options : {
    consent_modal : {
    layout : 'cloud', // box(default),cloud,bar
    position : 'bottom center', // bottom(default),top + left,right,center:=> examples: 'bottom' or 'top right'
    transition : 'slide' // zoom(default),slide
    },
    settings_modal : {
    layout : 'box', // box(default),bar
    // position: 'left', // right(default),left (available only if bar layout selected)
    transition : 'slide' // zoom(default),slide
    }
    },
  • better support for existing <script> tags which can now easily be managed through the cookieconsent (check readme.md)
  • removed autoload_css option (no longer needed, simply load css if theme_css has been set)
  • minor css refactoring && IE bugfixes
  • added new cookie settings: cookie_path, cookie_same_site
  • added new option to hide the html cookie tables (for those who don't want the html tables, but still want to the autoclear_cookies functionality to work): remove_cookie_tables
  • added support for regex inside the cookie tables (for those who don't want to list every single cookie manually):

    cookieconsent/demo/app2.js

    Lines 143 to 151 in 56c7a5a

    cookie_table : [
    {
    col1: '^_cl', // New option in v2.4: regex (microsoft clarity cookies)
    col2: 'yourdomain.com',
    col3: 'These cookies are set by microsoft clarity',
    // path: '/', // New option in v2.4
    is_regex: true // New option in v2.4
    }
    ]
  • added option to reload the page on opt-out of a specific category (useful in case of third party scripts like microsoft clarity, which will keep on sending "beacons" and re-setting the cleared cookies)

    cookieconsent/demo/app2.js

    Lines 137 to 142 in 56c7a5a

    toggle : {
    value : 'targeting',
    enabled : false,
    readonly: false,
    reload: 'on_disable' // New option in v2.4, check readme.md
    },

All of these changes have been showcased in the second demo, inside app2.js

@orestbida orestbida merged commit 0ab7c98 into master May 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

How to change plugin position
1 participant