set Trump Color also uses websockets now
This commit is contained in:
		@@ -7,6 +7,11 @@
 | 
			
		||||
            let player = {{player}}
 | 
			
		||||
            window.game_socket.send("playcard "+player+":"+card)
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        function setTrumpColor(color) {
 | 
			
		||||
            let player = {{player}}
 | 
			
		||||
            window.game_socket.send("setTrumpColor "+player+":"+color)
 | 
			
		||||
        }
 | 
			
		||||
        </script>
 | 
			
		||||
 | 
			
		||||
        <div class="content">
 | 
			
		||||
@@ -59,10 +64,16 @@
 | 
			
		||||
                {% endfor %}
 | 
			
		||||
                {% if choose_trump_color and (player == choose_trump_player) %}
 | 
			
		||||
                <strong>Choose Trump Color:</strong>
 | 
			
		||||
                <!--
 | 
			
		||||
                <a href="/player/{{player}}/set_trump/r">Red></a>
 | 
			
		||||
                <a href="/player/{{player}}/set_trump/g">Green></a>
 | 
			
		||||
                <a href="/player/{{player}}/set_trump/b">Blue></a>
 | 
			
		||||
                <a href="/player/{{player}}/set_trump/y">Yellow ></a>
 | 
			
		||||
                -->
 | 
			
		||||
                <button onclick="setTrumpColor('r')">Red</button>
 | 
			
		||||
                <button onclick="setTrumpColor('g')">Green</button>
 | 
			
		||||
                <button onclick="setTrumpColor('b')">Blue</button>
 | 
			
		||||
                <button onclick="setTrumpColor('y')">Yellow</button>
 | 
			
		||||
                {% endif %}
 | 
			
		||||
            <!--
 | 
			
		||||
                <li>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user