custom/plugins/ShopWithMeUI/src/Resources/views/storefront/component/notify.html.twig line 1

Open in your IDE?
  1. <div class="dzb-notify">
  2.     <div class="dzb-notify__content"></div>
  3. </div>
  4.  <script>
  5.     function showNotify(message, options = {}) {
  6.     const { type } = options || {};
  7.     const notify = document.querySelector('.dzb-notify');
  8.     if (notify) {
  9.         notify.classList.remove('success');
  10.         notify.classList.remove('error');
  11.         notify.classList.add('show');
  12.         notify.classList.add(type);
  13.         const content = notify.querySelector('.dzb-notify__content');
  14.         content.innerHTML = message;
  15.         setTimeout(() => {
  16.                 notify.classList.remove('show');
  17.         }, 4000);
  18.     }
  19.     }
  20. </script>