Sha256: 9058d5ac30cca26c481bd5f48125757eec2d1abb9bef3232b5b17ce93c9cde5b

Contents?: true

Size: 420 Bytes

Versions: 1

Compression:

Stored size: 420 Bytes

Contents

$(document).ready(function(){
  function showModal() {
    $('.modal-link').on("click", function(e) {
      e.preventDefault();
      $('.modal').addClass('is-visible');
    });
  }

  function hideModal() {
    $('.modal .close-btn, .modal .close-link, .modal .add-to-cart').on("click", function(e) {
      e.preventDefault();
      $('.modal').removeClass('is-visible');
    });
  }

  showModal();
  hideModal();
});

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
trusty-festivity-extension-2.5.0 app/assets/javascripts/modal.js