playing cards from js-cardgame seems to be functional...

This commit is contained in:
Stefan Rupp 2020-12-28 18:58:34 +01:00
parent bd35267bd3
commit 7ebff627eb
3 changed files with 17 additions and 13 deletions

@ -1 +1 @@
Subproject commit bca5daf13a7f582cf53a9367219c0f4d3457aadd
Subproject commit 8248f0fca782055732a3e5f9c6c1ad77589f06e0

View File

@ -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}}"

View File

@ -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>