make new photo pop up in box before changing
This commit is contained in:
@@ -101,6 +101,10 @@
|
|||||||
<button id="final_change_password_button">Change Password</button>
|
<button id="final_change_password_button">Change Password</button>
|
||||||
</div>
|
</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" />
|
<img id="logo_image" alt="logo" src="/logo" />
|
||||||
<div id="main_content">
|
<div id="main_content">
|
||||||
<div class="cards">
|
<div class="cards">
|
||||||
@@ -190,6 +194,16 @@
|
|||||||
fileInput.value = "";
|
fileInput.value = "";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
document
|
||||||
|
.getElementById("resize_photo_dialouge")
|
||||||
|
.classList.remove("hidden");
|
||||||
|
|
||||||
|
document.getElementById("new_profile_image").src =
|
||||||
|
URL.createObjectURL(file);
|
||||||
|
|
||||||
|
return;
|
||||||
|
|
||||||
const formData = new FormData();
|
const formData = new FormData();
|
||||||
formData.append("photo", file);
|
formData.append("photo", file);
|
||||||
formData.append(
|
formData.append(
|
||||||
|
|||||||
@@ -116,6 +116,10 @@
|
|||||||
position: fixed;
|
position: fixed;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#resize_photo_dialouge {
|
||||||
|
z-index: 10000;
|
||||||
|
}
|
||||||
|
|
||||||
#change_password_dialogue input {
|
#change_password_dialogue input {
|
||||||
width: 350px;
|
width: 350px;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user