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 %}
|
{% block content %}
|
||||||
|
|
||||||
<script>
|
<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) {
|
function setTrumpColor(color) {
|
||||||
let player = "{{player}}"
|
let player = "{{player}}"
|
||||||
|
@ -88,6 +88,22 @@
|
|||||||
socket.onerror = function(error) {
|
socket.onerror = function(error) {
|
||||||
alert("[error]: "+error.message);
|
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>
|
</script>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
Loading…
Reference in New Issue
Block a user