diff --git a/src/pages/profile_page.html b/src/pages/profile_page.html index a8ae674..156f93f 100644 --- a/src/pages/profile_page.html +++ b/src/pages/profile_page.html @@ -101,6 +101,10 @@ + + logo
@@ -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( diff --git a/static/profile_page.css b/static/profile_page.css index 315b2b0..d182caa 100644 --- a/static/profile_page.css +++ b/static/profile_page.css @@ -116,6 +116,10 @@ position: fixed; } +#resize_photo_dialouge { + z-index: 10000; +} + #change_password_dialogue input { width: 350px; }