This commit is contained in:
dev sp
2024-01-11 12:59:21 +00:00
parent 4dfc08406d
commit 87df948866
75 changed files with 739 additions and 164 deletions

View File

@@ -64,7 +64,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){
@@ -145,7 +145,7 @@ import Layout from "../../layouts/Layout.astro";
'starts': formatedDateTime,
'score': totalPoints, // Include the totalPoints in the userData
};
console.log(userData);
// console.log(userData);
fetch(`https://2016.dev2-cs.siliconpin.com/save/`, {
method: 'POST',
headers: {
@@ -157,7 +157,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 => {