update index.html

This commit is contained in:
Szymon Parafiński 2023-01-30 18:47:53 +01:00
parent 827dec718b
commit b2131b547d

View File

@ -5,8 +5,8 @@
document.getElementById("result").innerHTML = "Dodawanie pliku..."
var data = new FormData()
data.append('file', document.getElementById("docpicker").files[0])
document.getElementById("result").innerHTML = "Proszę chwilę poczekać, zaraz wypluje info o fakturze :)"
resp = await fetch('http://IP_ADDRESS_HERE:80/invoice', {method: "POST", body: data})
document.getElementById("result").innerHTML = "Przetwarzanie faktury ... "
resp = await fetch('http://54.172.196.142:80/invoice', {method: "POST", body: data})
document.getElementById("result").innerHTML = "Info"
data = await resp.json()
var result = JSON.stringify(data)