0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-12-04 16:24:22 +01:00
Bootstrap/site/content/docs/5.0/examples/offcanvas/offcanvas.js

8 lines
213 B
JavaScript
Raw Normal View History

2018-11-28 20:46:06 +01:00
(function () {
'use strict'
document.querySelector('[data-bs-toggle="offcanvas"]').addEventListener('click', function () {
2018-11-28 20:46:06 +01:00
document.querySelector('.offcanvas-collapse').classList.toggle('open')
})
2019-02-26 12:20:34 +01:00
})()