Skip to content

Commit

Permalink
adds (hopefully) codeblocks and syntax hilighting
Browse files Browse the repository at this point in the history
  • Loading branch information
Joseph Giuffrida authored and Joseph Giuffrida committed Apr 7, 2012
1 parent b823780 commit 0457358
Showing 1 changed file with 23 additions and 27 deletions.
50 changes: 23 additions & 27 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,34 +18,30 @@ Usage
======
1. Include breadance.js on page
2. Create move or moves - breakdance excepts either option.
```
var moves = [
{
min:0,
max:479,
enter: function() {
console.log('Enter 0-479');
},
exit: function() {
console.log('Exit 0-479');
}
},
{
min:480,
max:9999,
enter: function() {
console.log('Enter 480 and beyond');
},
exit: function() {
console.log('Exit 480 and beyond');
}
},
];
```
var moves = [
{
min:0,
max:479,
enter: function() {
console.log('Enter 0-479');
},
exit: function() {
console.log('Exit 0-479');
}
},
{
min:480,
max:9999,
enter: function() {
console.log('Enter 480 and beyond');
},
exit: function() {
console.log('Exit 480 and beyond');
}
},
];
3. Pass moves to breakdance
```
breakdance(moves);
```
breakdance(moves);
4. $$$$
Expand Down

0 comments on commit 0457358

Please sign in to comment.