This commit is contained in:
Suvodip
2024-06-24 19:15:56 +05:30
parent 5c233bafa6
commit cf51757537
28 changed files with 257 additions and 132 deletions

View File

@@ -76,7 +76,7 @@ import Layout from "../../layouts/Layout.astro";
.then(res => res.json())
.then(data => {
gameData = data.data;
console.log(gameData)
// console.log(gameData)
document.getElementById("gameLabel").innerHTML = gameData.label;
document.getElementById("gameDescription").innerHTML = gameData.description;
if(gameData.label1, gameData.label2, gameData.label3){
@@ -144,7 +144,7 @@ import Layout from "../../layouts/Layout.astro";
'gameTime': timeDifferenceInSeconds,
'score': totalPoints,
};
console.log(userData);
// console.log(userData);
fetch(`https://phaser-game-api.s38.siliconpin.com/save-data`, {
method: 'POST',
headers: {
@@ -156,7 +156,7 @@ import Layout from "../../layouts/Layout.astro";
if (response.ok) {
document.getElementById('savedMessage').innerHTML = 'Saved Successfully';
} else {
console.log('Something Wrong', response);
// console.log('Something Wrong', response);
}
})
.catch(error => {