X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=client.coffee;fp=client.coffee;h=a773c5dc92fb4278f1e34a311ccc129932ae3b84;hb=b828a190d7672e89aa84801b66edb0d82076e45d;hp=e02df72d9fa069ccecfac24b69b71326eb7c3399;hpb=4774192fca507ee5d06124b2d5268c5b023f6ed9;p=peach-cgt.git diff --git a/client.coffee b/client.coffee index e02df72..a773c5d 100644 --- a/client.coffee +++ b/client.coffee @@ -40,7 +40,12 @@ bring_card_to_front = (card) -> instantiate_card = (card) -> text = card.text - view = $ $ "
#{text}
" + if card.owner is state.agent + card_class = 'my_card' + else + card_class = 'your_card' + + view = $ $ "
#{text}
" button_box = $ $ '
' flip_button = new_button "flip over" mark_button = new_button "mark"