diff options
author | Olivier Gayot <duskcoder@gmail.com> | 2015-06-05 01:28:07 +0100 |
---|---|---|
committer | Olivier Gayot <duskcoder@gmail.com> | 2015-06-05 01:28:07 +0100 |
commit | a6a207603c0e1872f424e349cf38533f728b35c9 (patch) | |
tree | 1a7a9369e0ddf4da517b053e9217b6fd08aed457 /cao-desktop.js | |
parent | f8802ec05214ff546190173aca24fb170df67626 (diff) |
added the desktop content to the desktop file
the content was removed from the common file but not rewrote in place
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
Diffstat (limited to 'cao-desktop.js')
-rw-r--r-- | cao-desktop.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/cao-desktop.js b/cao-desktop.js index 4e0a9d9..283893b 100644 --- a/cao-desktop.js +++ b/cao-desktop.js @@ -1,4 +1,18 @@ $(document).ready(function() { + $('#btn_join').click(function() { + var game_name = prompt('Name of the game'); + + cao.join_game(game_name); + }); + + $('#btn_pick_black').click(function() { + cao.pick_black_card(); + }); + + $('#btn_collect').click(function() { + cao.collect_cards(); + }); + cao.on_socket_open = function() { $('#btn_join').show(); }; |