This commit is contained in:
Suvodip
2024-10-14 11:15:56 +05:30
parent d9243a1b7c
commit 9ebf6f5d60
18 changed files with 26 additions and 25 deletions

View File

@@ -190,7 +190,7 @@ function submitUserData(drawingZone) {
'userId' : userId,
'gameTime' : timeDifferenceInSeconds,
'score' : scoreTotal,
'star' : starValue
'gameStar' : starValue
};
console.log(userData);
fetch(`https://api.teachertrainingkolkata.in/api/saveGameScore`, {
@@ -208,6 +208,7 @@ function submitUserData(drawingZone) {
loadingDiv.style.display = 'none';
starContainer.style.display = 'flex';
starContainer.style.flexDirection = 'row';
document.getElementById('wsSavedImg').classList.remove('-z-10');
document.getElementById('starFeedbackMessage').innerHTML = feedbackMessage;
for (let i = 0; i < starValue; i++) {
const starDiv = document.createElement('div');