diff options
| author | horus | 2020-10-01 01:20:28 +0200 |
|---|---|---|
| committer | horus | 2020-10-01 01:20:28 +0200 |
| commit | 2338956aa5122acd941d946d93200e8ef162eec1 (patch) | |
| tree | 476664b2220b80c4500c4a0102f356e4505a65aa /resources/js/sidebar.js | |
| parent | 3c20d9e737c5c791aef8397cda5b3d1e5c1e96c4 (diff) | |
| download | senpai-2338956aa5122acd941d946d93200e8ef162eec1.tar.gz | |
add unused prototype for sticky sidebar
Diffstat (limited to 'resources/js/sidebar.js')
| -rw-r--r-- | resources/js/sidebar.js | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/resources/js/sidebar.js b/resources/js/sidebar.js new file mode 100644 index 0000000..2d54fc8 --- /dev/null +++ b/resources/js/sidebar.js @@ -0,0 +1,19 @@ +$(document).ready(function () { + + /* + $("#sidebar").mCustomScrollbar({ + theme: "minimal" + }); + */ + + $('#sidebarCollapse').on('click', function () { + // open or close navbar + $('#sidebar').toggleClass('active'); + // close dropdowns + $('.collapse.in').toggleClass('in'); + // and also adjust aria-expanded attributes we use for the open/closed arrows + // in our CSS + $('a[aria-expanded=true]').attr('aria-expanded', 'false'); + }); + +}); |
