engelsystem/resources/assets/js/offcanvas.js

14 lines
355 B
JavaScript
Raw Normal View History

2019-12-30 14:06:07 +01:00
;(function($, window, document, undefined) {
'use strict';
$(document).ready(function () {
$('[data-toggle="offcanvas"]').click(function () {
var button = $(this);
button.toggleClass('is-open')
$(button.attr('data-target')).toggleClass('in');
});
});
}(jQuery, window, window.document));