Orest Bida

Results 103 comments of Orest Bida

@MoritzLost, you need to make sure that the mapbox widget is fully loaded before toggling the `show-ph` class. Also the `triggerConsentManagerEvent` function needs to be `async` or return something promise-like....

> Is it possible to somehow skip displaying the black placeholder if consent has already been given? Technically speaking you can, by checking if the cookie of the mapbox service...

This lib. was designed to be a more "elegant" approach to the usual "load->flash iframe" implementation, which is in contrast with what you're asking. IMO the current approach is the...

Sorry, this won't be worked on as I don't like the idea; it forces the user to take an extra step.

Checkout the [docs.](https://github.com/orestbida/iframemanager#placeholder-for-non-js-browsers) for an example.

@carlosmonterocanabal thank you, you can also check out the live [playground page](https://playground.cookieconsent.orestbida.com/) to see how other layouts look like.

@dkorecko check out the demo example on [Stackblitz](https://stackblitz.com/edit/withastro-astro-mvdsyj?file=src%2Fcomponents%2FCookieConsent.astro,src%2Flayouts%2FLayout.astro).

Look like a nice addition to me, extra flexibility.

This is not a bug, you can have as many blocks as you want and by default they are treated as normal blocks of text, unless you specify the `linkedCategory`...

This needs to be documented! When `mode: 'opt-in'`, categories may not be enabled without the user's explicit consent. The `enabled` option only works if `mode: 'opt-out'`.