function Errorip(index) {
div.innerHTML = "<p>Error ip</p>";
div.innerHTML += "<p><input id=\"ip_server\" type=\"text\" size=\"12\">Need new ip or checking server</p>";
if (index == "1") {
div.innerHTML += "<button onclick=\"ipAdress('1')\">start</button>";
} else if (index == "2") {
div.innerHTML += "<button onclick=\"ipAdress('2')\">start</button>";
}
}
function Errorip(index) {
div.innerHTML = "<p>Error ip</p>";
div.innerHTML += "<p><input id=\"ip_server\" type=\"text\" size=\"12\">Need new ip or checking server</p>";
if (index == "1") {
div.innerHTML += "<button onclick=\"ipAdress('1')\">start</button>";
} else if (index == "2") {
div.innerHTML += "<button onclick=\"ipAdress('2')\">start</button>";
}
}
async function ipAdress(index) {
console.log(index)
div.innerHTML = "<p>checking</p>"
let ip = document.querySelector('#ip_server').value;
console.log(ip);
await eel.new_ip(index, ip)
}