make new photo pop up in box before changing

This commit is contained in:
2026-06-08 21:09:12 -04:00
parent 4cce7b7454
commit 600c3abf20
2 changed files with 18 additions and 0 deletions
+14
View File
@@ -101,6 +101,10 @@
<button id="final_change_password_button">Change Password</button>
</div>
<div id="resize_photo_dialouge" class="card static_center hidden">
<img id="new_profile_image" alt="new-profile-image" />
</div>
<img id="logo_image" alt="logo" src="/logo" />
<div id="main_content">
<div class="cards">
@@ -190,6 +194,16 @@
fileInput.value = "";
return;
}
document
.getElementById("resize_photo_dialouge")
.classList.remove("hidden");
document.getElementById("new_profile_image").src =
URL.createObjectURL(file);
return;
const formData = new FormData();
formData.append("photo", file);
formData.append(
+4
View File
@@ -116,6 +116,10 @@
position: fixed;
}
#resize_photo_dialouge {
z-index: 10000;
}
#change_password_dialogue input {
width: 350px;
}