Hello,

It would be nice to hide orejime on the Privacy & cookies policy page.

I accomplished this by adding this in my html--node--ID.html.twig:
<span class="gdprprefs"><i class="fa fa-eye-slash" aria-hidden="true">

  • adding an "hidden" class on the "#orejime" DIV on page load
  • remove the "hidden" class on the "#orejime" DIV when an element is clicked
      <script>
      	(function ($, Drupal)
      	{
      		'use strict';
      		$(document).ready(function ()
      		{
      			$('#orejime').addClass('hidden');
      			$('.gdprprefs').click(function ()
      			{
      				$('#orejime').removeClass('hidden');
      			});
      		});
      	})(jQuery, Drupal);
      </script>
    

Perhaps is it not the right way to do, but it would be nice to have an option to let the visitor read the privacy & cookies policy page without cookies and banner.

Working example: https://www.lodewijkdevadder.net/privacy-and-cookie-policy

Comments

jbfelix created an issue. See original summary.

fabsgugu’s picture

Hello,

I think it is indeed a good idea to be able to ignore certain pages.

When I have time, I will add a configuration to choose the pages to ignore.

jbfelix’s picture

Issue summary: View changes
fabsgugu’s picture

Assigned: Unassigned » fabsgugu

  • 8e8bd33 committed on 8.x-1.x
    Issue #3119382: Hide Orejime on specific page
    
fabsgugu’s picture

Status: Active » Needs review
fabsgugu’s picture

Hello,

I added a configuration in the settings which allows to ignore certain pages, with a wild-card system. It's the same system than blocks.

For the moment it is only in dev, but it will come out on alpha 2.

  • Fabsgugu committed 633e3e2 on 8.x-1.x
    Revert "Issue #3119382: Hide Orejime on specific page"
    
    This reverts...

  • fcdc067 committed on 8.x-1.x
    Issue #3119382: Hide Orejime on specific page
    

  • Fabsgugu committed 20124f3 on 8.x-1.x
    Revert "Issue #3119382: Hide Orejime on specific page"
    
  • Fabsgugu committed ac1fe7d on 8.x-1.x
    Issue #3119382: Hide Orejime on specific page
    
fabsgugu’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.