Sha256: d7ec7fc7ee667b1452796f9eca73f406f0a79371df9b0ac757500a74dea58e98

Contents?: true

Size: 1.77 KB

Versions: 36

Compression:

Stored size: 1.77 KB

Contents

{I"
class:ETI"BundledAsset;FI"logical_path;TI"off_canvas.js;FI"
pathname;TI"P/Users/earlynovrock/Web/leather/app/assets/javascripts/off_canvas.js.coffee;FI"content_type;TI"application/javascript;TI"
mtime;Tl+]ÚìSI"length;TiTI"digest;TI"%c758577d1cbe9eac6500e260e71f4134;FI"source;TI"T(function() {
  $(function() {
    if ($(".off-canvas").length > 0) {
      console.log("setting up off-canvas");
      $('body').wrapInner("<div id='off-canvas-wrapper' />");
      $(".off-canvas, .fixed").each(function() {
        return $("#off-canvas-wrapper").before(this);
      });
      $(document).on('click', '[data-toggle="off-canvas"]', function(e) {
        var side;
        e.stopPropagation();
        e.preventDefault();
        if (e.handled !== true) {
          side = $(this).data('side');
          if (side === "left") {
            $('body').removeClass("off-canvas-show-right");
          }
          if (side === "right") {
            $('body').removeClass("off-canvas-show-left");
          }
          $('body').toggleClass("off-canvas-show-" + side);
          return e.handled = true;
        } else {
          return false;
        }
      });
      return $(document).on('click touchstart', '.off-canvas-show-left, .off-canvas-show-right', function(e) {
        if (e.handled !== true) {
          e.preventDefault();
          if (!($(e.target).hasClass("off-canvas") || $(e.target).data('toggle') === "off-canvas")) {
            $(this).removeClass("off-canvas-show-right");
            $(this).removeClass("off-canvas-show-left");
          }
          return e.handled = true;
        }
      });
    }
  });

}).call(this);
;TI"required_assets_digest;TI"%c9615075653b4f112fafff1bae8a73a9;FI"
_version;TI"%3e3098c8a5e9a7f3b984ba95ac600637;F

Version data entries

36 entries across 18 versions & 1 rubygems

Version Path
leather-3.5.0 test/dummy/tmp/cache/assets/development/sprockets/497b53ce078e6c220cb7d7fdc5ffd06d
leather-3.5.0 test/dummy/tmp/cache/assets/development/sprockets/2a614fefcf86c505c98bd491b8057fc0
leather-3.3.5 test/dummy/tmp/cache/assets/development/sprockets/497b53ce078e6c220cb7d7fdc5ffd06d
leather-3.3.5 test/dummy/tmp/cache/assets/development/sprockets/2a614fefcf86c505c98bd491b8057fc0
leather-3.3.4.1 test/dummy/tmp/cache/assets/development/sprockets/2a614fefcf86c505c98bd491b8057fc0
leather-3.3.4.1 test/dummy/tmp/cache/assets/development/sprockets/497b53ce078e6c220cb7d7fdc5ffd06d
leather-3.3.4 test/dummy/tmp/cache/assets/development/sprockets/497b53ce078e6c220cb7d7fdc5ffd06d
leather-3.3.4 test/dummy/tmp/cache/assets/development/sprockets/2a614fefcf86c505c98bd491b8057fc0
leather-3.3.3.4 test/dummy/tmp/cache/assets/development/sprockets/497b53ce078e6c220cb7d7fdc5ffd06d
leather-3.3.3.4 test/dummy/tmp/cache/assets/development/sprockets/2a614fefcf86c505c98bd491b8057fc0
leather-3.3.3.3 test/dummy/tmp/cache/assets/development/sprockets/497b53ce078e6c220cb7d7fdc5ffd06d
leather-3.3.3.3 test/dummy/tmp/cache/assets/development/sprockets/2a614fefcf86c505c98bd491b8057fc0
leather-3.3.3.2 test/dummy/tmp/cache/assets/development/sprockets/497b53ce078e6c220cb7d7fdc5ffd06d
leather-3.3.3.2 test/dummy/tmp/cache/assets/development/sprockets/2a614fefcf86c505c98bd491b8057fc0
leather-3.3.3.1 test/dummy/tmp/cache/assets/development/sprockets/497b53ce078e6c220cb7d7fdc5ffd06d
leather-3.3.3.1 test/dummy/tmp/cache/assets/development/sprockets/2a614fefcf86c505c98bd491b8057fc0
leather-3.3.2 test/dummy/tmp/cache/assets/development/sprockets/2a614fefcf86c505c98bd491b8057fc0
leather-3.3.2 test/dummy/tmp/cache/assets/development/sprockets/497b53ce078e6c220cb7d7fdc5ffd06d
leather-3.3.1 test/dummy/tmp/cache/assets/development/sprockets/497b53ce078e6c220cb7d7fdc5ffd06d
leather-3.3.1 test/dummy/tmp/cache/assets/development/sprockets/2a614fefcf86c505c98bd491b8057fc0