diff options
Diffstat (limited to 'site/docs')
-rw-r--r-- | site/docs/4.3/examples/offcanvas/offcanvas.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/site/docs/4.3/examples/offcanvas/offcanvas.js b/site/docs/4.3/examples/offcanvas/offcanvas.js index bc3e467118..ddd19be824 100644 --- a/site/docs/4.3/examples/offcanvas/offcanvas.js +++ b/site/docs/4.3/examples/offcanvas/offcanvas.js @@ -1,7 +1,7 @@ -$(function () { +(function () { 'use strict' - $('[data-toggle="offcanvas"]').on('click', function () { - $('.offcanvas-collapse').toggleClass('open') + document.querySelector('[data-toggle="offcanvas"]').addEventListener('click', function () { + document.querySelector('.offcanvas-collapse').classList.toggle('open') }) -}) +}()) |