bnew2 #7

Merged
suvo merged 6 commits from bnew2 into master 2024-05-25 14:01:40 +00:00
Showing only changes of commit 17538eb91c - Show all commits

View File

@@ -472,27 +472,28 @@ import Layout from '../../layouts/Layout.astro';
// 'game_start' : gameStartTime,
};
console.log(userData);
fetch(`https://save-game-data.teachertrainingchennai.in/saveGameData`, {
fetch(`https://save-game-data.teachertrainingchennai.in/saveGameData`, {
method: 'POST',
headers: {
'Content-Type' : 'application/json'
},
body: JSON.stringify(userData)
})
.then(response => {
if(response.ok){
console.log('Data Saved', response)
} else{
// console.log('Something Wrong', response)
}
})
.catch(error => {
console.error('An error occured', error)
});
// Clear the drawing
// graphics.clear();
});
})
.then(response => {
if(response.ok){
console.log('Data Saved', response)
} else{
// console.log('Something Wrong', response)
}
})
.catch(error => {
console.error('An error occured', error)
});
// Clear the drawing
// graphics.clear();
});
};
// function captureSnapshot(drawingZone) {
// submitButton.setVisible(false);