made game ready for presentation and cloned a version with changed phase durations for presentation

This commit is contained in:
Sam
2024-01-23 22:25:48 +01:00
parent b606b2a0d6
commit 09530eac15
14 changed files with 880 additions and 394 deletions

19
webdev/js/Database.js Normal file
View File

@@ -0,0 +1,19 @@
class database{
sendData(naam, score) {
fetch(`https://oege.ie.hva.nl/~hossan/postData.php?name=${naam}&score=${score}`)
}
getData(naam) {
// Fetch data from the database, put it in an array, and log it to the console
//met backticks als " " kan je variabelen in een string zetten
return fetch(`https://oege.ie.hva.nl/~hossan/getData.php?name=${naam}`) // Add return here
.then(response => response.json())
.then(data => {
requesteddata = data;
console.log(data);
});
}
}