Skip to content

Commit

Permalink
fixed colour coding
Browse files Browse the repository at this point in the history
  • Loading branch information
Pancham1603 committed Dec 2, 2023
1 parent f7efbd7 commit 6c9beee
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions apps/validation/static/info.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,10 @@ function updateUserPass(data,user_data, task, request_user_location) {
document.getElementById('pass-card').style.backgroundColor = '#F0E68C';
actionButton.style.visibility = 'visible';
actionButton.innerHTML = `Check In`;
actionButton.onclick = function(){checkIn(user_data.registration_number);}}}
actionButton.onclick = function(){checkIn(user_data.registration_number);}}
} else {
document.getElementById('pass-card').style.backgroundColor = '#FF7F7F';
}
}

function fetch_data(dump) {
Expand Down Expand Up @@ -153,7 +156,7 @@ function checkIn(registration_number) {
// updateProfile(response.user);
// updateUserPass(response.user_pass, response.user);
toastr.success(response.message);
setTimeout(function(){ resetProfile(); }, 3000);
setTimeout(function(){ resetProfile(); }, 7000);

}
else {
Expand Down Expand Up @@ -181,7 +184,7 @@ function checkOut(registration_number) {
// updateProfile(response.user);
// updateUserPass(response.user_pass, response.user);
toastr.success(response.message);
setTimeout(function(){ resetProfile(); }, 3000);
setTimeout(function(){ resetProfile(); }, 7000);
}
else {
toastr.error(response.message);
Expand Down

0 comments on commit 6c9beee

Please sign in to comment.