Thursday, June 04, 2026 3:58:14 AM
> cash_dom.js
import $ from "cash-dom";

$.fn.show = function () {
  return this.each(function () {
    const el = $(this);

    // Remove d-none class
    el.removeClass("d-none");

    // If element had inline display: none, remove it
    if (el.css("display") === "none") {
      el.css("display", "");
    }
  });
};

$.fn.hide = function () {
  return this.each(function () {
    const el = $(this);

    // Add d-none class
    el.addClass("d-none");

    // Clean up any inline display styles
    el.css("display", "");
  });
};

export default $;
All opinions represented herein are my own
- © 2024 - 2026 itsthedevman
- build 4294fb2