summaryrefslogtreecommitdiff
path: root/resources/assets/js/offcanvas.js
blob: 792cca7cdfa4c7f274995a3b57ae3fa3e2877225 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
;(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));