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

View File

@@ -3,10 +3,10 @@ class database{
fetch(`https://oege.ie.hva.nl/~hossan/postData.php?name=${naam}&score=${score}`)
}
getData(name) {
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=${name}`) // Add return here
return fetch(`https://oege.ie.hva.nl/~hossan/getData.php?name=${naam}`) // Add return here
.then(response => response.json())
.then(data => {
requesteddata = data;