jrobber / deck-of-cards

HTML5 Deck of Cards

Home Page:http://pakastin.github.io/deck-of-cards

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HTML5 Deck of Cards

Gitter

Pure vanilla JS (+ CSS3) – no dependencies.

http://pakastin.github.io/deck-of-cards

Latest changes

  • 0.0.3 big refactoring – code now easier to follow and in smaller pieces
  • 0.0.2 made intro shorter & added "poker"
  • 0.0.1 initial version

Download

Where's what?

css/ - CSS source (stylus + nib) of the example

dist/ - deck.js & deck.min.js

example/ - http://pakastin.github.io/deck-of-cards

lib/ - JS (ES6) source of dist/deck.js - deck.js is also the main file

views/ - HTML source of the example

Build instructions

npm install
npm start

(starts watching for changes..)

Note to self: todo

  • Make z-index temporary by reordering DOM elements between actions
  • Enhance API, make more generic
  • Make cards flippable

About

HTML5 Deck of Cards

http://pakastin.github.io/deck-of-cards

License:MIT License


Languages

Language:JavaScript 90.1%Language:HTML 5.3%Language:CSS 4.6%