0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-12-13 01:08:58 +01:00
Bootstrap/site/docs/4.3/examples/offcanvas/offcanvas.js
2019-02-20 22:05:45 +02:00

8 lines
210 B
JavaScript

(function () {
'use strict'
document.querySelector('[data-toggle="offcanvas"]').addEventListener('click', function () {
document.querySelector('.offcanvas-collapse').classList.toggle('open')
})
}())