fix aliran tunai fix penebusan
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
<div class="container">
|
||||
<h1>Team A Score</h1>
|
||||
<div id="team1_score"></div>
|
||||
</div>
|
||||
<script src="https://cdn.socket.io/socket.io-1.3.4.js"> </script>
|
||||
<script>
|
||||
var sock = io("{{ env('PUBLISHER_URL') }}:{{ env('BROADCAST_PORT') }}");
|
||||
sock.on('action-channel-one:App\\Events\\ActionEvent', function (data){
|
||||
//data.actionId and data.actionData hold the data that was broadcast
|
||||
//process the data, add needed functionality here
|
||||
var action = data.actionId;
|
||||
var actionData = data.actionData;
|
||||
if(action == "score_update" && actionData.team1_score) {
|
||||
|
||||
console.log(actionData.team1_score);
|
||||
$("#team1_score").html(actionData.team1_score);
|
||||
alert('jadi dok');
|
||||
}
|
||||
});
|
||||
</script>
|
||||
Reference in New Issue
Block a user