clientside done, change js for release
This commit is contained in:
parent
ad8378df1f
commit
20ca03d4ca
@ -3,7 +3,7 @@ async function send(userID, asset){
|
||||
userID: userID,
|
||||
asset: asset
|
||||
}
|
||||
let response = await fetch('/submit', {
|
||||
let response = await fetch('https://tradegame.nannal.com/submit', {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/json;charset=utf-8'
|
||||
@ -17,3 +17,18 @@ async function send(userID, asset){
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
setInterval(async () => {
|
||||
let response = await fetch('https://tradegame.nannal.com/status')
|
||||
let result = await response.json();
|
||||
document.getElementById("AgneUSD").innerHTML= result.users.Agne.USD
|
||||
document.getElementById("AgneBTC").innerHTML= result.users.Agne.BTC
|
||||
document.getElementById("DanUSD").innerHTML= result.users.Dan.USD
|
||||
document.getElementById("DanBTC").innerHTML= result.users.Dan.BTC
|
||||
document.getElementById("ask").innerHTML= "Ask: "+result.ask
|
||||
document.getElementById("bid").innerHTML= "Bid: "+result.bid
|
||||
document.getElementById("price").innerHTML= "Price: "+result.price
|
||||
console.log("X")
|
||||
}, 1000);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user