Sha256: 62f0cc89d924b8aef1acc0820d15bfb88a9852ba0b0c4178fd6f6b85430676ba
Contents?: true
Size: 1.82 KB
Versions: 2
Compression:
Stored size: 1.82 KB
Contents
{I" class:ETI"BundledAsset; FI"logical_path; TI"+tenon/features/hamburger_navigation.js; FI" pathname; TI"h/Users/seanroberts/Sites/tenon/app/assets/javascripts/tenon/features/hamburger_navigation.js.coffee; FI"content_type; TI"application/javascript; TI" mtime; Tl+ãætSI"length; TiTI"digest; TI"%81969e725c951604a3af1f434f3e31e6; FI"source; TI"T(function() { var __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; }; Tenon.features.HamburgerNavigation = (function() { function HamburgerNavigation() { this._openNav = __bind(this._openNav, this); this._closeNav = __bind(this._closeNav, this); this.toggleNav = __bind(this.toggleNav, this); this.$navigation = $('.nav-holder, .hamburger-toggle'); this.$head = $('util-nav'); this.$toggle = this.$head.find('.hamburger a'); this.openClass = 'mobile-open'; this.$toggle.on('click', this.toggleNav); $(document).on('click', '.nav-holder.mobile-open a', this._closeNav); } HamburgerNavigation.prototype.toggleNav = function(e) { e.preventDefault(); this.$toggle.find('i').toggleClass('fa-bars fa-times'); if (this.$toggle.hasClass(this.openClass)) { return this._closeNav(); } else { return this._openNav(); } }; HamburgerNavigation.prototype._closeNav = function() { this.$toggle.removeClass(this.openClass); return this.$navigation.removeClass(this.openClass); }; HamburgerNavigation.prototype._openNav = function() { this.$toggle.addClass(this.openClass); return this.$navigation.addClass(this.openClass); }; return HamburgerNavigation; })(); }).call(this); ; TI"required_assets_digest; TI"%8ad881947b3c39b50ad41025c33a0ed6; FI" _version; TI"%a56df69ef97ba4d9f1a23bf9b0add58a; F
Version data entries
2 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tenon-1.0 | spec/dummy/tmp/cache/assets/development/sprockets/6011411886ea10bd3e78f8dce58262d7 |
tenon-1.0 | spec/dummy/tmp/cache/assets/development/sprockets/7b62a0cb148f5a2cf38db55040216337 |