You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
374 B
15 lines
374 B
let ResData = null
|
|
fetch('http://mo.samuelzielke.de/api/')
|
|
.then(response => response.json())
|
|
.then(data => {
|
|
ResData=data;
|
|
window.readyrequest = true;
|
|
window.ResData = ResData;
|
|
})
|
|
.catch(error => console.error('Error:', error));
|
|
let stopped = false
|
|
while(!stopped){
|
|
console.log("Warten");
|
|
if (ResData != null) stopped = true;
|
|
}
|
|
const DATA = ResData |