You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
1.1 KiB
37 lines
1.1 KiB
;(function ($, window, document, undefined) {
|
|
'use strict';
|
|
|
|
Foundation.libs.offcanvas = {
|
|
name : 'offcanvas',
|
|
|
|
version : '5.0.3',
|
|
|
|
settings : {},
|
|
|
|
init : function (scope, method, options) {
|
|
this.events();
|
|
},
|
|
|
|
events : function () {
|
|
$(this.scope).off('.offcanvas')
|
|
.on('click.fndtn.offcanvas', '.left-off-canvas-toggle', function (e) {
|
|
e.preventDefault();
|
|
$(this).closest('.off-canvas-wrap').toggleClass('move-right');
|
|
})
|
|
.on('click.fndtn.offcanvas', '.exit-off-canvas', function (e) {
|
|
e.preventDefault();
|
|
$(".off-canvas-wrap").removeClass("move-right");
|
|
})
|
|
.on('click.fndtn.offcanvas', '.right-off-canvas-toggle', function (e) {
|
|
e.preventDefault();
|
|
$(this).closest(".off-canvas-wrap").toggleClass("move-left");
|
|
})
|
|
.on('click.fndtn.offcanvas', '.exit-off-canvas', function (e) {
|
|
e.preventDefault();
|
|
$(".off-canvas-wrap").removeClass("move-left");
|
|
});
|
|
},
|
|
|
|
reflow : function () {}
|
|
};
|
|
}(jQuery, this, this.document));
|
|
|