Permalink
Browse files

reworked how the examples work"

  • Loading branch information...
vogievetsky committed Feb 18, 2012
1 parent 46a7b3f commit 2535117ba0202d96e1f34504d26bb731708c636f
Showing with 678 additions and 531 deletions.
  1. +1 −1 deck/deck.css
  2. +2 −0 deck/deck.less
  3. +5 −1 deck/slide_maker.js
  4. +3 −529 index.html
  5. +112 −0 slide_maker.js
  6. +498 −0 slides.coffee
  7. +57 −0 slides.js
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -151,6 +151,8 @@ section {
font-size: 16px;
padding: 4px 4px;
resize: none;
+ outline: none;
+ white-space: pre;
&.init {
display: none;
View
@@ -10,6 +10,8 @@
.replace(/\s*}\s*$/, '')
.split('\n');
+ lines = lines.map(function(line) { return line.replace(/ *$/, ''); });
+
// remove common pre-space
var minSpace = d3.min(lines.map(function(line) {
return line ? line.match(/^\s*/)[0].length : Infinity;
@@ -18,6 +20,7 @@
lines = lines.map(function(line) { return line.substr(minSpace); })
}
+ console.log(lines.join('\n'))
return lines.join('\n');
}
@@ -67,7 +70,8 @@
}
codeText = codes.append('textarea')
- .attr('class', 'code')
+ .attr('class', 'code')
+ .attr('placeholder', 'JavaScript goes in here...')
.property('value', fn_to_string(code))
.on('keydown', function() {
// Run if command + enter
Oops, something went wrong.

0 comments on commit 2535117

Please sign in to comment.