container.append ul
- submit = $ $ "<div style=\"border: 1px solid black\">Done</div>"
+ submit = $ $ "<div style=\"border: 1px solid black; margin: 0 auto 10px 10px; width: 40px; text-align: center\">Done</div>"
submit.bind 'click', ->
$('#deck_designer').remove()
show_message cards_in_deck
pile: "#{state.agent}_draw"
x: 0
y: 0
- z: next_card_z()
flipped: true
}
cards.push card
- cards.push card
- cards.push card
- cards.push card
+ cards.push $.extend {}, card # clone
+ cards.push $.extend {}, card # clone
+ cards.push $.extend {}, card # clone
+ # asign z-index in random order
cards.shuffle()
+ for card in cards
+ card.z = next_card_z()
show_message cards
# let server assign card numbers
</div>
<div id="my_side">Cards in this green area (except the two piles on the right) always appear face-down to the other player.</div>
</div>
- <div id="deck_designer"><h1>Deck Designer</h1><p>Click each card you'd like in your deck and then click "done" at the bottom.</p></div>
+ <div id="deck_designer"><h1>Deck Designer</h1><p>Click each card you'd like in your deck (you'll get four of each) and then click "done" at the bottom.</p></div>
</body>
</html>
queue = game.p2_queue
game.p2_waiter = false
game.p2_queue = []
- timeout 2000, -> # FIXME remove this delay for player 2 (just here to test lag handling)
- waiter.writeHead 200, 'Content-Type': 'text/javascript'
- waiter.end JSON.stringify queue
+ waiter.writeHead 200, 'Content-Type': 'text/javascript'
+ waiter.end JSON.stringify queue
# this marks a game as "dirty" and makes sure there's exactly one timeout
# that'll respond to any clients that are waiting, and now have messages.
.card {
background: #fff;
border: 2px solid #fff;
+ overflow: hidden;
.shadow(1px, 1px, 8px, 0.4);
&:hover {
+ height: auto;
+ min-height: @card-height;
z-index: 9999 !important;
}
.button {