diff options
| author | XhmikosR <[email protected]> | 2019-08-01 18:07:17 +0300 |
|---|---|---|
| committer | XhmikosR <[email protected]> | 2021-01-18 22:52:38 +0200 |
| commit | 72d7e4612bc97230e2c1da0d5e2229ec21793e51 (patch) | |
| tree | 49e1aa85f43a1641973ac5dd614d066bb0c871af /site/content/docs/examples/offcanvas/offcanvas.js | |
| parent | 4167c107f81aeb2b05e3fe3e2e511b50ea9be640 (diff) | |
| download | bootstrap-main-xmr-hugo-reorg-files.tar.xz bootstrap-main-xmr-hugo-reorg-files.zip | |
Trying to get rid of the version number from folders.main-xmr-hugo-reorg-files
Diffstat (limited to 'site/content/docs/examples/offcanvas/offcanvas.js')
| -rw-r--r-- | site/content/docs/examples/offcanvas/offcanvas.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/site/content/docs/examples/offcanvas/offcanvas.js b/site/content/docs/examples/offcanvas/offcanvas.js new file mode 100644 index 000000000..793ea86cd --- /dev/null +++ b/site/content/docs/examples/offcanvas/offcanvas.js @@ -0,0 +1,7 @@ +(function () { + 'use strict' + + document.querySelector('[data-bs-toggle="offcanvas"]').addEventListener('click', function () { + document.querySelector('.offcanvas-collapse').classList.toggle('open') + }) +})() |
