summaryrefslogtreecommitdiff
path: root/cao-desktop.js
diff options
context:
space:
mode:
Diffstat (limited to 'cao-desktop.js')
-rw-r--r--cao-desktop.js14
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();
};