var Wick = Wick || {};

Wick.Backdrop = (function () {
  const el = {
    modalBackdrop: 'modal-backdrop',
    modalBackdropShow: 'show'
  }

  function show() {
    if (!$(`.${el.modalBackdrop}`).length) {
      $('body').append(`<div class="${el.modalBackdrop} ${el.modalBackdropShow}"></div>`);
    }
  }

  function hide() {
    $('body').find(`.${el.modalBackdrop}.${el.modalBackdropShow}`).remove();
  }

  return {
    show,
    hide,
  };
})();
