From a6a207603c0e1872f424e349cf38533f728b35c9 Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Fri, 5 Jun 2015 01:28:07 +0100 Subject: 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 --- cao-desktop.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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(); }; -- cgit v1.2.3