diff --git a/build/bundle.js b/build/bundle.js index cd60c1a9..803d7f5b 100644 --- a/build/bundle.js +++ b/build/bundle.js @@ -4807,6 +4807,14 @@ var Level = Sandbox.extend({ }, this)); }, + showGoal: function() { + this.goalCanvasHolder.slideIn(); + }, + + hideGoal: function() { + this.goalCanvasHolder.slideOut(); + }, + initParseWaterfall: function(options) { this.parseWaterfall = new ParseWaterfall(); @@ -4820,7 +4828,6 @@ var Level = Sandbox.extend({ }).getInstantCommands() ); } - }, initGitShim: function(options) { @@ -4887,6 +4894,7 @@ var Level = Sandbox.extend({ levelSolved: function(defer) { this.solved = true; + this.hideGoal(); this.mainVis.gitVisuals.finishAnimation() .then(function() { defer.resolve(); @@ -6567,27 +6575,6 @@ var Visualization = Backbone.View.extend({ $(this.paper.canvas).css('opacity', 0); }, - harshSlideChange: function(value) { - }, - - slideOut: function() { - this.toggleSlide(true); - }, - - slideIn: function() { - this.toggleSlide(false); - }, - - toggleSlide: function(value) { - if (!this.containerElement) { - console.warn('cant slide with absolute positioning'); - return; - } - - // no classes on svg :-/ - $(this.containerElement).toggleClass('slideOut', value); - }, - getAnimationTime: function() { return 300; }, fadeTreeIn: function() { @@ -9483,6 +9470,18 @@ var CanvasTerminalHolder = BaseView.extend({ this.render(); }, + slideOut: function() { + this.slideToggle(true); + }, + + slideIn: function() { + this.slideToggle(false); + }, + + slideToggle: function(value) { + this.$('div.terminal-window-holder').toggleClass('slideOut', value); + }, + getCanvasLocation: function() { return this.$('div.inside')[0]; } @@ -17478,6 +17477,14 @@ var Level = Sandbox.extend({ }, this)); }, + showGoal: function() { + this.goalCanvasHolder.slideIn(); + }, + + hideGoal: function() { + this.goalCanvasHolder.slideOut(); + }, + initParseWaterfall: function(options) { this.parseWaterfall = new ParseWaterfall(); @@ -17491,7 +17498,6 @@ var Level = Sandbox.extend({ }).getInstantCommands() ); } - }, initGitShim: function(options) { @@ -17558,6 +17564,7 @@ var Level = Sandbox.extend({ levelSolved: function(defer) { this.solved = true; + this.hideGoal(); this.mainVis.gitVisuals.finishAnimation() .then(function() { defer.resolve(); @@ -19259,6 +19266,18 @@ var CanvasTerminalHolder = BaseView.extend({ this.render(); }, + slideOut: function() { + this.slideToggle(true); + }, + + slideIn: function() { + this.slideToggle(false); + }, + + slideToggle: function(value) { + this.$('div.terminal-window-holder').toggleClass('slideOut', value); + }, + getCanvasLocation: function() { return this.$('div.inside')[0]; } @@ -21922,27 +21941,6 @@ var Visualization = Backbone.View.extend({ $(this.paper.canvas).css('opacity', 0); }, - harshSlideChange: function(value) { - }, - - slideOut: function() { - this.toggleSlide(true); - }, - - slideIn: function() { - this.toggleSlide(false); - }, - - toggleSlide: function(value) { - if (!this.containerElement) { - console.warn('cant slide with absolute positioning'); - return; - } - - // no classes on svg :-/ - $(this.containerElement).toggleClass('slideOut', value); - }, - getAnimationTime: function() { return 300; }, fadeTreeIn: function() { diff --git a/src/index.html b/src/index.html index 228fdbab..31ba0410 100644 --- a/src/index.html +++ b/src/index.html @@ -97,28 +97,32 @@