Permalink
Browse files

Rounded corners in body > div. Handle narrow width. Disable buttons d…

…uring auto-step. Fix README link. Add compiled js to .gitignore.
  • Loading branch information...
1 parent c308004 commit 94b0687d66b209460b92e12eeaf4e7580d229fb0 @omphalos omphalos committed Feb 26, 2013
Showing with 21 additions and 5 deletions.
  1. +3 −1 .gitignore
  2. +2 −2 README.md
  3. +8 −1 browser/metajs.coffee
  4. +1 −1 browser/setup.coffee
  5. +7 −0 browser/style.css
View
@@ -3,4 +3,6 @@ node_modules
*.swo
*~
*.actual
-*.expected
+*.expected
+browser/*.js
+lib/*.js
View
@@ -9,7 +9,7 @@ Setup
-----
npm install
- npm install -g browserify iced-coffee-script
+ npm install -g browserify@1.17.3 iced-coffee-script
Usage
-----
@@ -38,7 +38,7 @@ Testing
Contributors
------------
-* [omphalos](github.com/omphalos)
+* [omphalos](https://github.com/omphalos)
[1]: http://esprima.org/
[2]: http://maxtaco.github.com/coffee-script/
View
@@ -189,9 +189,16 @@ $('#auto-step-btn').click ->
if $(@).attr('value') is 'Pause'
interpreter.continuer = Continuers.toNextStep
$(@).attr 'value', 'Auto Step'
+ $('#example-box').removeAttr 'disabled'
+ $('#step-btn').removeAttr 'disabled'
else
interpreter.continuer = Continuers.autoStep
$(@).attr 'value', 'Pause'
+ $('#example-box').attr 'disabled', 'disabled'
+ $('#step-btn').attr 'disabled', 'disabled'
Continuations.next()
-Message.listen 'interpreter:done', -> $('#auto-step-btn').attr 'value', 'Auto Step'
+Message.listen 'interpreter:done', ->
+ $('#auto-step-btn').removeAttr 'disabled'
+ $('#example-box').removeAttr 'disabled'
+
View
@@ -1,2 +1,2 @@
$(document).ready ->
- CodeMirror.fromTextArea(document.getElementById('code'), mode: 'javascript')
+ CodeMirror.fromTextArea(document.getElementById('code'), mode: 'javascript', readOnly: true)
View
@@ -12,12 +12,19 @@ a {
}
body {
+ min-width: 720px;
width: 75%;
margin: 0 auto;
font-family: Monaco, Menlo, Consolas, "Courier New", monospace;
font-size: 14px;
}
+body > div {
+ -webkit-border-radius: 4px;
+ -moz-border-radius: 4px;
+ border-radius: 4px;
+}
+
#example-form {
float: left;
}

0 comments on commit 94b0687

Please sign in to comment.