data in js

noah
nooahe 2022-10-26 14:20:01 +02:00
parent 87cee6c471
commit 5d94806c9f
3 changed files with 25 additions and 0 deletions

View File

@ -14,5 +14,8 @@ dbVerbindungErzeugen()
</head>
<body>
<h1>Spinn mit!!!!</h1>
<script src="js/functions.js"></script>
<script src="js/main.js"></script>
</body>
</html>

21
js/functions.js Normal file
View File

@ -0,0 +1,21 @@
function start(){
let url = "system/alleMarkerHolen.php";
fetch(url)
.then((response) => {
return response.json();
})
.then((markerData) => {
console.log(markerData)
})
.catch(function(error) {
console.log('Error: ' + error.message);
});
}

View File

@ -0,0 +1 @@
start();