Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'site/content/docs/5.1/examples/offcanvas-navbar/offcanvas.js')
-rw-r--r--site/content/docs/5.1/examples/offcanvas-navbar/offcanvas.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/site/content/docs/5.1/examples/offcanvas-navbar/offcanvas.js b/site/content/docs/5.1/examples/offcanvas-navbar/offcanvas.js
new file mode 100644
index 0000000000..91103b1c4e
--- /dev/null
+++ b/site/content/docs/5.1/examples/offcanvas-navbar/offcanvas.js
@@ -0,0 +1,7 @@
+(function () {
+ 'use strict'
+
+ document.querySelector('#navbarSideCollapse').addEventListener('click', function () {
+ document.querySelector('.offcanvas-collapse').classList.toggle('open')
+ })
+})()