{I" class:ETI"BundledAsset;FI"logical_path;TI"application.js;TI" pathname;TI"0$root/app/assets/javascripts/application.js;FI"content_type;TI"application/javascript;TI" mtime;Tl+öŒ3UI" length;Ti I" digest;TI"%07e3b2340ca6e280a6aa6cfb5f87f6f6;FI" source;TI" // Place all the behaviors and hooks related to the matching controller here. // All this logic will automatically be available in application.js. ; (function() { (function($, window, document) { var OffCanvas, defaults; defaults = { menu: 'offcanvas-menu', page: 'offcanvas-page' }; OffCanvas = (function() { function OffCanvas(element) { this.element = element; this.$body = $('body'); this.$element = $(this.element); this.$menu = $(this.$element.data(defaults.menu)); this.$page = $(this.$element.data(defaults.page)); this.init(); } OffCanvas.prototype.init = function() { this.resize(this.$page); this.$menu.addClass(defaults.menu).appendTo(this.$body); this.$page.addClass(defaults.page); this.$body.addClass('offcanvas'); this.$element.on({ click: (function(_this) { return function(event) { event.stopPropagation(); return _this.open(); }; })(this) }); return this.$page.on({ click: (function(_this) { return function() { return _this.close(); }; })(this) }); }; OffCanvas.prototype.open = function() { return this.$body.toggleClass('is-open'); }; OffCanvas.prototype.close = function() { return this.$body.removeClass('is-open'); }; OffCanvas.prototype.resize = function($item) { return $(window).on({ 'load resize': (function(_this) { return function() { return $item.css('min-height', window.innerHeight); }; })(this) }); }; return OffCanvas; })(); if ($("[data-" + defaults.menu + "]").length > 0) { return new OffCanvas("[data-" + defaults.menu + "]"); } })(jQuery, window, document); }).call(this); (function() { }).call(this); // This is a manifest file that'll be compiled into application.js, which will include all the files // listed below. // // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts, // or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path. // // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the // compiled file. // // Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details // about supported directives. // ; ;TI"required_assets_digest;TI"%608422478e23ccac4169a6a264223b0a;FI" _version;TI"%64e62ddc273c2f5847f30d698ca14b67;F