Compare commits
No commits in common. "94a84ecfe4f46a32844af3eecaa89e8bcfaa1009" and "2b8dba9c0bda6237ac2c745e8de0c69b93518483" have entirely different histories.
94a84ecfe4
...
2b8dba9c0b
@ -81,6 +81,7 @@ class User(UserMixin):
|
|||||||
weekday = datetime.today().weekday()
|
weekday = datetime.today().weekday()
|
||||||
heatmap = [100]
|
heatmap = [100]
|
||||||
|
|
||||||
|
# 0, 1, 2, 3, 4, 5, 6
|
||||||
# append the heatmap values of the current week
|
# append the heatmap values of the current week
|
||||||
for day in range(0, 6-weekday):
|
for day in range(0, 6-weekday):
|
||||||
heatmap.append(0)
|
heatmap.append(0)
|
||||||
|
|||||||
@ -117,7 +117,7 @@ document.addEventListener("DOMContentLoaded", function() {
|
|||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
const passwordInput = document.getElementById(passwordId);
|
const passwordInput = document.getElementById(passwordId);
|
||||||
const passwordFeedback = document.getElementById(passwordFeedbackId);
|
const passwordFeedback = document.getElementById(passwordFeedbackId);
|
||||||
const password = passwordInput.value; // Get the password entered by the user
|
const password = passwordInput.value.trim(); // Get the password entered by the user
|
||||||
if (!passwordInput.value.trim()) {
|
if (!passwordInput.value.trim()) {
|
||||||
passwordFeedback.textContent = errorMessage;
|
passwordFeedback.textContent = errorMessage;
|
||||||
passwordInput.classList.add("is-invalid");
|
passwordInput.classList.add("is-invalid");
|
||||||
@ -184,6 +184,7 @@ document.addEventListener("DOMContentLoaded", function() {
|
|||||||
return isValid;
|
return isValid;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Add event listener to edit button to open modal
|
// Add event listener to edit button to open modal
|
||||||
DeleteAccountButton.addEventListener("click", function() {
|
DeleteAccountButton.addEventListener("click", function() {
|
||||||
confirmDeleteModal.show();
|
confirmDeleteModal.show();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user