Closed (fixed)
Project:
Orejime
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
11 Mar 2020 at 16:31 UTC
Updated:
14 Apr 2020 at 14:24 UTC
Jump to comment: Most recent
Hello,
I would like to have a link to re-open / reset the visitor preferences.
I tried this but it's not working:
$(document).ready(function(){ $( '.gdprprefs' ).on( 'click', function() { $( this ).orejime.show(); }); });
Any help ?
Comments
Comment #2
jbfelix commentedDone:
<span class="gdprprefs"><i class="fa fa-eye-slash" aria-hidden="true"></i></span>Then:
Working example:
https://www.lodewijkdevadder.net
Comment #3
jbfelix commentedComment #4
jbfelix commentedComment #5
fabsgugu commentedHello,
I see two solutions to make the banner reappear: The first delete the cookie (need refresh) and the second this code:
Orejime.init(window.orejimeConfig).show()Otherwise, if a new service is added, the banner will reappear to prevent a change from taking place.
Comment #6
jbfelix commentedFYI
For consent reset:
Tip:
location.reload(false);means page refresh from cacheComment #7
fabsgugu commentedComment #9
fabsgugu commentedI added in the JS the script allowing to reset and the one to bring up the modal.
Reset : button with class "reset-button"
Modal : button with class "consent-modal-button"
Comment #10
fabsgugu commentedComment #11
fabsgugu commented