HTML5 dice
CoffeeScript CSS
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
Gruntfile.coffee
README.md
bower.json
dice.coffee
index.html
package.json
roll.mp3
roll.ogg
roll.wav
style.styl

README.md

HTML5 dice

Demo

Live version at http://tremby.net/dice/

Build

Assuming npm is installed, install the Grunt tool and bower globally:

sudo npm install -g grunt-cli bower

Install dependencies:

npm install
bower install

Build:

grunt

Watch stylus and coffeescript sources and rebuild when they change:

grunt watch

The watch command does not roll the libraries together. To do just that:

grunt uglify:libs

Todo

  • Fix SVG dots which don't appear on old Android
  • Make sound optional
  • Option to shake device to roll
  • Fix roll history dialog which is dodgy on some browsers

Licence

MIT