diff --git a/README.md b/README.md index c7ac832..6ab3c18 100644 --- a/README.md +++ b/README.md @@ -42,28 +42,6 @@ Once registered, you can add the cookie-consent element to your HTML: ``` -### Conditional scripts - -Conditionally show `script` tags. Add the `data-cookie-consent`-attribute with the id of the required cookie type, and disable the script by setting the `type` to `text/plain`: - -```html -// External script. - - -// Inline script. - -``` - -### Conditional iframe embeds - -Conditionally show or hide `iframe` embed. Add the `data-cookie-consent`-attribute with the id of the required cookie consent type, and disable the iframe renaming the `src`-attribute to `data-src`: - -```html - -``` - ### Conditional content Conditionally show or hide elements. Add the `data-cookie-consent-`-attribute with the id of the required cookie consent type. There are two types of state: `accepted` and `rejected`. @@ -82,9 +60,7 @@ Notes: To use the options, add them as data attributes to the custom element: -All options except `cookies` are optional. They will fall back to the defaults, which are listed here: - -```jsx +```js