From 177a8a2e822ffb5b0742a1686306d03070a73995 Mon Sep 17 00:00:00 2001 From: Bhattu-Anitha-07 <22wh1a6659@bvrithyderabad.edu.in> Date: Sat, 27 Jul 2024 13:20:17 +0530 Subject: [PATCH 1/6] done --- index.html | 55 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) diff --git a/index.html b/index.html index 8e3e3e47..f47e80cf 100644 --- a/index.html +++ b/index.html @@ -53,6 +53,60 @@ + + + Copy code + @@ -905,4 +959,5 @@

RAPIDOC Newsletter


+ \ No newline at end of file From 0d05ff2e46b1b914c82f9cf61000cb21bd30bd4e Mon Sep 17 00:00:00 2001 From: Bhattu-Anitha-07 <22wh1a6659@bvrithyderabad.edu.in> Date: Sat, 27 Jul 2024 13:24:36 +0530 Subject: [PATCH 2/6] done --- index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index f47e80cf..a411e59b 100644 --- a/index.html +++ b/index.html @@ -59,7 +59,7 @@ Copy code + + + + + + + +
+
+
+ + + +
+

Find a Doctor

+
+ + + + + + 1000 + + +
+
+ +
+ +
+ + +
+
+ + + +
+
+ + + + + + + \ No newline at end of file diff --git a/googletranslate.js b/googletranslate.js index b75411d2..9d227de3 100644 --- a/googletranslate.js +++ b/googletranslate.js @@ -1,24 +1,16 @@ document.addEventListener('DOMContentLoaded', function() { - // Get the popup var popup = document.getElementById('translatePopup'); - - // Get the button that opens the popup var btn = document.getElementById('translateButton'); - - // Get the element that closes the popup var span = document.getElementsByClassName('close')[0]; - - // When the user clicks the button, open the popup + btn.onclick = function() { popup.style.display = 'block'; } - - // When the user clicks on (x), close the popup + span.onclick = function() { popup.style.display = 'none'; } - - // When the user clicks anywhere outside of the popup, close it + window.onclick = function(event) { if (event.target == popup) { popup.style.display = 'none'; diff --git a/index.css b/index.css index 5836ca6b..f6efc659 100644 --- a/index.css +++ b/index.css @@ -899,4 +899,9 @@ body { .b:hover::before { width: 100%; - } \ No newline at end of file + } + + .btn1{ + padding:10px; + } + \ No newline at end of file diff --git a/log/forgetpass.css b/log/forgetpass.css new file mode 100644 index 00000000..4b0f28a3 --- /dev/null +++ b/log/forgetpass.css @@ -0,0 +1,97 @@ +.popup { + display: none; + position: fixed; + z-index: 1000; + left: 0; + top: 0; + width: 100%; + height: 100%; + overflow: hidden; + background-color: rgb(52, 49, 49); + } + + .popup-content { + background-color: #fefefe; + margin: 9% auto; + padding: 20px; + border: 1px solid #888; + width: 80%; + max-width: 400px; + border-radius: 10px; + position: relative; + } + + .popup-content h2 { + margin-top: 0; + } + + .popup-content input { + width: 100%; + padding: 10px; + margin: 10px 0; + border: 1px solid #ddd; + border-radius: 4px; + box-sizing: border-box; + } + + .popup-content button { + width: 100%; + padding: 10px; + background-color: #022a2d; + color: white; + border: none; + border-radius: 4px; + cursor: pointer; + } + + .popup-content button:hover { + background-color: linear-gradient(270deg, #06bdc0, #05d3e2); + } + + #passwordRequirements { + font-size: 12px; + color: #666; + margin-bottom: 10px; + } + + .close { + color: #aaa; + float: right; + font-size: 28px; + font-weight: bold; + cursor: pointer; + position: absolute; + top: 10px; + right: 15px; + } + + .close:hover, + .close:focus { + color: #06bdc0; + text-decoration: none; + cursor: pointer; + } + /* Passwrod visibility css*/ +.password-input-container { +position: relative; +} + +.password-toggle { +position: absolute; +right: 10px; +top: 10%; +transform: translateY(-50%); +cursor: pointer; +} + +.password-toggle i { +font-size: 18px; +color: #888; +} + +.password-input-container input[type="password"], +.password-input-container input[type="text"] { +padding-right: 30px; +} + +@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css'); \ No newline at end of file diff --git a/log/forgetpass.js b/log/forgetpass.js new file mode 100644 index 00000000..21153218 --- /dev/null +++ b/log/forgetpass.js @@ -0,0 +1,122 @@ +document.addEventListener('DOMContentLoaded', function() { + const forgotPasswordLink = document.querySelector('.pass-link a'); + const popup = document.getElementById('forgotPasswordPopup'); + const closeBtn = popup.querySelector('.close'); + const resetForm = document.getElementById('resetPasswordForm'); + + forgotPasswordLink.addEventListener('click', function(e) { + e.preventDefault(); + popup.style.display = 'block'; + }); + + closeBtn.addEventListener('click', function() { + popup.style.display = 'none'; + }); + + window.addEventListener('click', function(e) { + if (e.target == popup) { + popup.style.display = 'none'; + } + }); + + resetForm.addEventListener('submit', function(e) { + e.preventDefault(); + const email = document.getElementById('resetEmail').value; + const newPassword = document.getElementById('newPassword').value; + const confirmPassword = document.getElementById('confirmPassword').value; + + if (validatePassword(newPassword, confirmPassword)) { + // Here you would typically send a request to your server to reset the password + alert('Password successfully changed!'); + popup.style.display = 'none'; + } + }); + + function validatePassword(password, confirmPassword) { + const passwordRegex = /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[!@#$%^&*])[A-Za-z\d!@#$%^&*]{8,}$/; + + if (!passwordRegex.test(password)) { + alert('Password must be at least 8 characters long and contain at least one uppercase letter, one lowercase letter, one number, and one special character.'); + return false; + } + + if (password !== confirmPassword) { + alert('Passwords do not match.'); + return false; + } + + return true; + } + }); + + + /*Password Visibility*/ + document.addEventListener('DOMContentLoaded', function() { + const forgotPasswordLink = document.querySelector('.pass-link a'); + const popup = document.getElementById('forgotPasswordPopup'); + const closeBtn = popup.querySelector('.close'); + const resetForm = document.getElementById('resetPasswordForm'); + const passwordToggles = document.querySelectorAll('.password-toggle'); + + forgotPasswordLink.addEventListener('click', function(e) { + e.preventDefault(); + popup.style.display = 'block'; + }); + + closeBtn.addEventListener('click', function() { + popup.style.display = 'none'; + }); + + window.addEventListener('click', function(e) { + if (e.target == popup) { + popup.style.display = 'none'; + } + }); + + resetForm.addEventListener('submit', function(e) { + e.preventDefault(); + const email = document.getElementById('resetEmail').value; + const newPassword = document.getElementById('newPassword').value; + const confirmPassword = document.getElementById('confirmPassword').value; + + if (validatePassword(newPassword, confirmPassword)) { + // Here you would typically send a request to your server to reset the password + alert('Password successfully changed!'); + popup.style.display = 'none'; + } + }); + + passwordToggles.forEach(toggle => { + toggle.addEventListener('click', function() { + const targetId = this.getAttribute('data-target'); + const targetInput = document.getElementById(targetId); + const icon = this.querySelector('i'); + + if (targetInput.type === 'password') { + targetInput.type = 'text'; + icon.classList.remove('fa-eye'); + icon.classList.add('fa-eye-slash'); + } else { + targetInput.type = 'password'; + icon.classList.remove('fa-eye-slash'); + icon.classList.add('fa-eye'); + } + }); + }); + + function validatePassword(password, confirmPassword) { + const passwordRegex = /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[!@#$%^&*])[A-Za-z\d!@#$%^&*]{8,}$/; + + if (!passwordRegex.test(password)) { + alert('Password must be at least 8 characters long and contain at least one uppercase letter, one lowercase letter, one number, and one special character.'); + return false; + } + + if (password !== confirmPassword) { + alert('Passwords do not match.'); + return false; + } + + return true; + } + }); \ No newline at end of file diff --git a/log/login.html b/log/login.html index 5787012a..880f6aa1 100644 --- a/log/login.html +++ b/log/login.html @@ -1,13 +1,16 @@ + RAPIDOC + + @@ -78,7 +81,29 @@

RAPIDOC

- +
@@ -101,6 +126,7 @@

Start your
journey now

+ - + \ No newline at end of file From 6281d3a263be3e3a3796bd4cfcf9f1082383e677 Mon Sep 17 00:00:00 2001 From: Bhattu-Anitha-07 <22wh1a6659@bvrithyderabad.edu.in> Date: Sat, 27 Jul 2024 17:11:07 +0530 Subject: [PATCH 6/6] done --- Css-Files/doctor.css | 3 +++ Html-Files/cardio.html | 10 +++++----- Html-Files/derma.html | 10 +++++----- Html-Files/ent.html | 10 +++++----- Html-Files/gynaco.html | 10 +++++----- Html-Files/pediatrition.html | 10 +++++----- 6 files changed, 28 insertions(+), 25 deletions(-) diff --git a/Css-Files/doctor.css b/Css-Files/doctor.css index a47739da..c8db308b 100644 --- a/Css-Files/doctor.css +++ b/Css-Files/doctor.css @@ -239,3 +239,6 @@ transition: all 0.3s ease; .swiper-pagination-bullet{ opacity: 0; } +.btns{ + width: 200px; +} diff --git a/Html-Files/cardio.html b/Html-Files/cardio.html index e9eb130a..2fa88830 100644 --- a/Html-Files/cardio.html +++ b/Html-Files/cardio.html @@ -74,11 +74,11 @@

Dr. Vikas Chopra

- - - - - + + + + +
diff --git a/Html-Files/derma.html b/Html-Files/derma.html index 15cf43d5..0303fb2b 100644 --- a/Html-Files/derma.html +++ b/Html-Files/derma.html @@ -77,11 +77,11 @@

Dr. Soni Gupta

- - - - - + + + + +
diff --git a/Html-Files/ent.html b/Html-Files/ent.html index cccb5baf..0153d348 100644 --- a/Html-Files/ent.html +++ b/Html-Files/ent.html @@ -74,11 +74,11 @@

Dr. Jayant Jaswal

- - - - - + + + + +
diff --git a/Html-Files/gynaco.html b/Html-Files/gynaco.html index 6af9226d..11e24658 100644 --- a/Html-Files/gynaco.html +++ b/Html-Files/gynaco.html @@ -74,11 +74,11 @@

Dr. Satbir Singh

- - - - - + + + + +
diff --git a/Html-Files/pediatrition.html b/Html-Files/pediatrition.html index 96f1c3ac..18f5e9e6 100644 --- a/Html-Files/pediatrition.html +++ b/Html-Files/pediatrition.html @@ -77,11 +77,11 @@

Dr. Ranjan Upadhyay