Commit Graph

12 Commits

Author SHA1 Message Date
b435916f32 Switch Playfield to use Fetch instead of XMLHTTPRequest 2019-01-14 23:50:25 -05:00
26fa5f3398 Move playfield and editor html to separate files 2019-01-14 23:50:25 -05:00
d43804896d Add jshint header for playfield.js 2019-01-14 23:50:25 -05:00
2b9139dd66 Load more stuff from deck JSON
actually uses deck number and FaceURL

preperation for arbitrary decks (from TTS mods)
also changes to send only the deck part of the JSON
2019-01-14 23:50:25 -05:00
77ca7ec536 Fix deckWidth->deckHeight typo 2019-01-14 23:50:25 -05:00
bb192cf535 Simplify access to deckJSON a bit
only needed a subsection
2019-01-14 23:50:25 -05:00
6e6f3189e1 Allow adding to bottom of pile by holding shift 2019-01-14 23:50:25 -05:00
d5b0b5ffee Make pile list behavior a bit less dumb
- drag and drop doesn't jump all over the place
 - can't drag cards from list into piles
2019-01-14 23:50:25 -05:00
1aa50927a8 Minor style fixes 2019-01-14 23:50:25 -05:00
4a90b4f9f1 Allow re-arranging cards in piles and properly draw things in that view 2019-01-14 23:50:25 -05:00
9d07b4f0c5 Add shake animation for shuffling piles 2019-01-14 23:50:25 -05:00
61f2851246 Move client js to 'js' subfolder, rename script.js to playfield.js 2019-01-14 23:50:25 -05:00