mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-08 22:56:46 +02:00
Add v5.1.0 docs (#34675)
This commit is contained in:
7
docs/5.1/examples/offcanvas-navbar/offcanvas.js
Normal file
7
docs/5.1/examples/offcanvas-navbar/offcanvas.js
Normal file
@@ -0,0 +1,7 @@
|
||||
(function () {
|
||||
'use strict'
|
||||
|
||||
document.querySelector('#navbarSideCollapse').addEventListener('click', function () {
|
||||
document.querySelector('.offcanvas-collapse').classList.toggle('open')
|
||||
})
|
||||
})()
|
Reference in New Issue
Block a user