wacon-internet-gmbh / wacon_cookie_management

WCM ist eine TYPO3 Extension, die es den Besuchern Ihrer Website erlaubt, die benutzten Cookie-Einstellungen selber zu kontrollieren.
https://www.wacon.de
GNU General Public License v2.0
10 stars 7 forks source link

Cookie Hint #23

Closed herzogkienast closed 2 years ago

herzogkienast commented 3 years ago

Hi guys, If I reload the page in my browser, the cookie hint will disappear and necessary cookies will be accepted. But that's not how it should work - in Germany.

If you reload the page with not accepting the cookie, the cookie, the box should appear again. (Window.location?) - I'm not so deep in JS... Would be great to have a solution for this.

Some other issues I fixed for me:

First - don't want to close the modal on click outside and inside the Box. Only if you click the buttons... See AHK Comments. Second: Same stuff, but inside the box.

$( ".info-hide" ).click(function() { $(this).parent().hide(); // AHK: You can't close the hint by clicking inside the box outside the buttons - Hide the X via CSS $(this).parent().prev().show(); }); $( ".cookieclose" ).click(function() { $(".waconcookiemanagement").show(); }); var $menu = $('#CookieBox'); $(".waconcookiemanagement").on('click', function (e) {

// AHK: If element is opened and click target is outside it, show it
if ($menu.is(':visible') && !$menu.is(e.target) && !$menu.has(e.target).length) {
  $(".waconcookiemanagement").show();
}

});