Sha256: 1265976668a6846fcb8917c2ee0dc18460d8ed8575fe187fcd3966b5aa34b840

Contents?: true

Size: 1.11 KB

Versions: 41

Compression:

Stored size: 1.11 KB

Contents

;(function ($, window, document, undefined) {
  'use strict';

  Foundation.libs.offcanvas = {
    name : 'offcanvas',

    version : '5.1.1',

    settings : {},

    init : function (scope, method, options) {
      this.events();
    },

    events : function () {
      var S = this.S;

      S(this.scope).off('.offcanvas')
        .on('click.fndtn.offcanvas', '.left-off-canvas-toggle', function (e) {
          e.preventDefault();
          S(this).closest('.off-canvas-wrap').toggleClass('move-right');
        })
        .on('click.fndtn.offcanvas', '.exit-off-canvas', function (e) {
          e.preventDefault();
          S(".off-canvas-wrap").removeClass("move-right");
        })
        .on('click.fndtn.offcanvas', '.right-off-canvas-toggle', function (e) {
          e.preventDefault();
          S(this).closest(".off-canvas-wrap").toggleClass("move-left");
        })
        .on('click.fndtn.offcanvas', '.exit-off-canvas', function (e) {
          e.preventDefault();
          S(".off-canvas-wrap").removeClass("move-left");
        });
    },

    reflow : function () {}
  };
}(jQuery, this, this.document));

Version data entries

41 entries across 41 versions & 2 rubygems

Version Path
opsask-2.3.10 public/js/foundation/foundation.offcanvas.js
opsask-2.3.9 public/js/foundation/foundation.offcanvas.js
opsask-2.3.8 public/js/foundation/foundation.offcanvas.js
opsask-2.3.7 public/js/foundation/foundation.offcanvas.js
opsask-2.3.6 public/js/foundation/foundation.offcanvas.js
opsask-2.3.5 public/js/foundation/foundation.offcanvas.js
opsask-2.3.4 public/js/foundation/foundation.offcanvas.js
opsask-2.3.3 public/js/foundation/foundation.offcanvas.js
opsask-2.3.2 public/js/foundation/foundation.offcanvas.js
opsask-2.3.1 public/js/foundation/foundation.offcanvas.js
opsask-2.3.0 public/js/foundation/foundation.offcanvas.js
opsask-2.2.3 public/js/foundation/foundation.offcanvas.js
opsask-2.2.2 public/js/foundation/foundation.offcanvas.js
opsask-2.2.1 public/js/foundation/foundation.offcanvas.js
opsask-2.2.0 public/js/foundation/foundation.offcanvas.js
opsask-2.1.9 public/js/foundation/foundation.offcanvas.js
opsask-2.1.8 public/js/foundation/foundation.offcanvas.js
opsask-2.1.7 public/js/foundation/foundation.offcanvas.js
opsask-2.1.6 public/js/foundation/foundation.offcanvas.js
opsask-2.1.5 public/js/foundation/foundation.offcanvas.js