uikit/uikit-site

uk-alert coockie close button

thefubon opened this issue · 0 comments

Tell me how to add cookies after clicking on the close (hide) button. https://getuikit.com/docs/alert#style-modifiers

{% set redirectInfo = craft.geomate.redirectInformation() %}
  {% if redirectInfo %}
  <div class="uk-background-muted uk-padding-xsmall" data-uk-alert>
    <a class="uk-alert-close" data-uk-close></a>
    <div class="uk-container uk-container-medium">
      <div class="uk-grid-small uk-flex-middle" data-uk-grid>
        <div class="uk-width-expand uk-text-small">{{'Select a country or region so that the content matches your location.'|t}}</div>
        <div class="uk-width-auto"><a class="uk-button uk-button-primary uk-button-small uk-border-rounded uk-text-transform-none" href="{{ redirectInfo.url }}">{{ redirectInfo.site.name }}</a></div>
      </div>
    </div>
  </div>
  {% endif %}

I get a message that there is a language for your region and you can select it. But if I want to continue using the language that I entered, then I close the ALERT window, but after restarting it appears again. I want to make an analogy with a website apple.com