Javascript

Use to add show/hide functionality with the possibility to read and store the cookie statement.

Description

The triggers are [data-js-cookie-statement] to instantiate the component [data-js-cookie-statement-cta] for the link [data-js-cookie-statement-path] for the configuration of the path

Usage

Usage example

Code example

<div class="cookie-statement" data-js-cookie-statement data-js-cookie-statement-path="/">
  <div class="cookie-statement__wrapper">
    <p class="cookie-statement__content u-mb-none"><a class="cta-link--inverse" href="/about-us/cookie-policy">Cookies</a> help us deliver our services. By using our services, you agree to our <a class="cta-link--inverse" href="/about-us/cookie-policy">policy</a>.</p>
    <button aria-label="close" class="control-icon control-button--enlarged"  data-js-cookie-statement-cta>
      <svg class="svg-icon svg-icon--inverse">
        <use xlink:href="/m2dm-public/assets/icons/svg-sprite.svg#cross-circle-outline"></use>
      </svg>
    </button>
  </div>
</div>