code conventions
This commit is contained in:
@@ -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 );
|
||||
@@ -685,3 +685,7 @@ function Senddata(naam, score) {
|
||||
get('https://oege.ie.hva.nl/~hossan/postData.php', { name: naam, score: score } );
|
||||
|
||||
}
|
||||
|
||||
function getData(){
|
||||
|
||||
}
|
Reference in New Issue
Block a user