CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
sagemathinc

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

GitHub Repository: sagemathinc/cocalc
Path: blob/master/src/packages/assets/jquery/plugins/bootstrap_hide_show.js
Views: 687
1
/*
2
* This file is part of CoCalc: Copyright © 2020 Sagemath, Inc.
3
* License: MS-RSL – see LICENSE.md for details
4
*/
5
6
import * as $ from "jquery";
7
8
const show = $.fn.show;
9
$.fn.show = function () {
10
this.removeClass("hidden hide");
11
return show.apply(this, arguments);
12
};
13
const hide = $.fn.hide;
14
$.fn.hide = function () {
15
this.addClass("hidden hide");
16
return hide.apply(this, arguments);
17
};
18
19