o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1357780442.5319722: @value"{I" class:EFI"BundledAsset;FI"logical_path;FI"showboat/indicators.js;FI" pathname;FI"R/Users/mkitt/Sites/showboat/app/assets/javascripts/showboat/indicators.coffee;FI"content_type;FI"application/javascript;FI" mtime;FI"2013-01-09T18:14:00-07:00;FI" length;Fi>I" digest;F"%c82fabb28426f8b4cdacca71efc75598I" source;FI">(function() { window.Indication = (function() { function Indication(reveal) { this.reveal = reveal; this.initialize(); this.addListeners(); this.render({ indexh: this.reveal.getIndices().h }); } Indication.prototype.initialize = function() { this.total = document.querySelectorAll(".reveal .slides > section:not(.stack)").length + 1; return this.indicators = this.create(); }; Indication.prototype.addListeners = function() { var _this = this; return this.reveal.addEventListener('slidechanged', function() { return _this.render.apply(_this, arguments); }); }; Indication.prototype.create = function() { var index, indication, markup, _i, _ref; indication = document.createElement('ul'); markup = ''; for (index = _i = 0, _ref = this.total; 0 <= _ref ? _i <= _ref : _i >= _ref; index = 0 <= _ref ? ++_i : --_i) { markup += "
  • "; } indication.classList.add('indicators'); indication.innerHTML = markup; document.querySelector('.reveal').appendChild(indication); return indication.querySelectorAll('li'); }; Indication.prototype.render = function(e) { var indicator, _i, _len, _ref; _ref = this.indicators; for (_i = 0, _len = _ref.length; _i < _len; _i++) { indicator = _ref[_i]; indicator.classList.remove('active'); } return this.indicators[e.indexh].classList.add('active'); }; return Indication; })(); }).call(this); ;FI"required_assets_digest;F"%24895b8135992140da4aadb229a1e372I" _version;F"%6776f581a4329e299531e1d52aa59832