playing cards from js-cardgame seems to be functional...
This commit is contained in:
parent
bd35267bd3
commit
7ebff627eb
@ -1 +1 @@
|
||||
Subproject commit bca5daf13a7f582cf53a9367219c0f4d3457aadd
|
||||
Subproject commit 8248f0fca782055732a3e5f9c6c1ad77589f06e0
|
@ -3,18 +3,6 @@
|
||||
{% block content %}
|
||||
|
||||
<script>
|
||||
function playCard(card) {
|
||||
let player = "{{player}}";
|
||||
let c = card.toString();
|
||||
var msg = {
|
||||
type: "message",
|
||||
fct: "playcard",
|
||||
player: player,
|
||||
card: c
|
||||
};
|
||||
let t = JSON.stringify(msg);
|
||||
window.game_socket.send(t);
|
||||
}
|
||||
|
||||
function setTrumpColor(color) {
|
||||
let player = "{{player}}"
|
||||
|
@ -88,6 +88,22 @@
|
||||
socket.onerror = function(error) {
|
||||
alert("[error]: "+error.message);
|
||||
};
|
||||
|
||||
|
||||
function playCard(card) {
|
||||
let player = "{{player}}";
|
||||
let c = card.toString();
|
||||
var msg = {
|
||||
type: "message",
|
||||
fct: "playcard",
|
||||
player: player,
|
||||
card: c
|
||||
};
|
||||
let t = JSON.stringify(msg);
|
||||
window.game_socket.send(t);
|
||||
}
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
<style>
|
||||
|
Loading…
Reference in New Issue
Block a user