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

@@ -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("gameDescription").innerHTML = gameData.description;
if(gameData.label1){
document.getElementById("label1").innerHTML = gameData.label1;
@@ -158,7 +158,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: {
@@ -170,7 +170,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 => {