diff --git a/index.html b/index.html index d437617..07f82ba 100644 --- a/index.html +++ b/index.html @@ -17,6 +17,16 @@ text-align: center; } +#dialog { + transition: height 1.5s; + height: 0px; + background: #DDD; +} + +#dialog.expanded { + height: 400px; +} + button { width: 60px; height: 30px; @@ -24,6 +34,10 @@ button { cursor: pointer; } +button.active { + font-weight: bold; +} + #ascii-canvas { position: absolute; left: 0px; @@ -34,11 +48,15 @@ button { diff --git a/js-lib/common.js b/js-lib/common.js index 3dc527c..c0b93fa 100644 --- a/js-lib/common.js +++ b/js-lib/common.js @@ -1,7 +1,6 @@ /** * Common classes. */ -goog.provide('ascii.Vector'); /** * @constructor diff --git a/js-lib/controller.js b/js-lib/controller.js index 0d78c88..f00aeee 100644 --- a/js-lib/controller.js +++ b/js-lib/controller.js @@ -1,11 +1,6 @@ /** * Handles user input events and modifies state. */ -goog.provide('ascii.Controller'); - -goog.require('ascii.StateController'); -goog.require('ascii.Vector'); -goog.require('ascii.View'); /** @const */ var DRAG_LATENCY = 130; // Milliseconds. /** @const */ var DRAG_ACCURACY = 3; // Pixels. diff --git a/js-lib/launch.js b/js-lib/launch.js index 183b593..a77e433 100644 --- a/js-lib/launch.js +++ b/js-lib/launch.js @@ -1,11 +1,6 @@ /** * Application main entry point. */ -goog.provide('ascii.launch'); - -goog.require('ascii.Controller'); -goog.require('ascii.State'); -goog.require('ascii.View'); /** * Runs the application. diff --git a/js-lib/state-controller.js b/js-lib/state-controller.js index 823c55e..9a4a6b7 100644 --- a/js-lib/state-controller.js +++ b/js-lib/state-controller.js @@ -1,7 +1,3 @@ -goog.provide('ascii.StateController'); - -goog.require('ascii.Vector'); - /** * Draws a line. */ diff --git a/js-lib/state.js b/js-lib/state.js index f6bfdbd..78650d0 100644 --- a/js-lib/state.js +++ b/js-lib/state.js @@ -1,5 +1,3 @@ -goog.provide('ascii.State'); - /** @const */ var MAX_GRID_SIZE = 1000; /** @const */ var SPECIAL_VALUE = '+'; diff --git a/js-lib/view.js b/js-lib/view.js index 47b9582..6efaf7a 100644 --- a/js-lib/view.js +++ b/js-lib/view.js @@ -1,7 +1,3 @@ -goog.provide('ascii.View'); - -goog.require('ascii.Vector'); - /** @const */ var CHARACTER_PIXELS = 15; /** @const */ var RENDER_PADDING = 70;