diff --git a/web/game.js b/web/game.js index b9f3aaa..4dd03b5 100644 --- a/web/game.js +++ b/web/game.js @@ -218,7 +218,7 @@ async function keyPressed() { function submit() { if (entered == true) { - Senddata(nameHS, int(time)); + sendData(nameHS, int(time)); console.log(nameHS + ": " + int(time)); nameHS = ''; submitted = true; @@ -675,7 +675,7 @@ function game() { } -function Senddata(naam, score) { +function sendData(naam, score) { const request = ( url, params = {}) => { url += '?' + ( new URLSearchParams( params ) ).toString(); fetch( url ); @@ -684,4 +684,8 @@ function Senddata(naam, score) { get('https://oege.ie.hva.nl/~hossan/postData.php', { name: naam, score: score } ); +} + +function getData(){ + } \ No newline at end of file