forked from Anishkagupta04/RAPIDOC-HEALTHCARE-WEBSITE-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into change-in-aboutsec
- Loading branch information
Showing
8 changed files
with
139 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
.overlay { | ||
display: none; | ||
position: fixed; | ||
top: 0; | ||
left: 0; | ||
width: 100%; | ||
height: 100%; | ||
background-color: rgb(0, 0, 0); | ||
backdrop-filter: blur(5px); | ||
z-index: 1000; | ||
} | ||
|
||
.feedback-wrapper { | ||
display: none; | ||
position: fixed; | ||
top: 50%; | ||
left: 50%; | ||
transform: translate(-50%, -50%); | ||
background-color: transparent; | ||
padding: 100px; | ||
border-radius: 10px; | ||
z-index: 1000; | ||
max-width: 500px; | ||
width: 90%; | ||
margin-top: 10px; | ||
margin-bottom: 10px; | ||
} | ||
|
||
.close-btn { | ||
position: absolute; | ||
top: 10px; | ||
right: 10px; | ||
font-size: 24px; | ||
cursor: pointer; | ||
} | ||
|
||
.feedback-form { | ||
display: flex; | ||
flex-direction: column; | ||
} | ||
|
||
.rating-container { | ||
display: flex; | ||
justify-content: space-between; | ||
margin-bottom: 20px; | ||
} | ||
|
||
.rating-container button { | ||
font-size: 24px; | ||
background: none; | ||
border: none; | ||
cursor: pointer; | ||
} | ||
|
||
#feedback-form label { | ||
margin-top: 10px; | ||
} | ||
|
||
#feedback-form input, | ||
#feedback-form textarea { | ||
margin-bottom: 10px; | ||
padding: 5px; | ||
} | ||
|
||
.btn { | ||
background-color: #007bff; | ||
color: white; | ||
border: none; | ||
cursor: pointer; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
function toggleMenu() { | ||
const navLinks = document.querySelector('.nav_link'); | ||
navLinks.classList.toggle('vis-h'); | ||
} | ||
|
||
function openFeedback() { | ||
document.getElementById('overlay').style.display = 'block'; | ||
document.getElementById('feedback-wrapper').style.display = 'block'; | ||
} | ||
|
||
function closeFeedback() { | ||
document.getElementById('overlay').style.display = 'none'; | ||
document.getElementById('feedback-wrapper').style.display = 'none'; | ||
} | ||
|
||
function handleRatingChange(rating) { | ||
console.log('Rating:', rating); | ||
} | ||
|
||
function handleSubmit(event) { | ||
event.preventDefault(); | ||
const name = document.getElementById('name').value; | ||
const email = document.getElementById('email').value; | ||
const feedback = document.getElementById('feedback').value; | ||
console.log('Feedback submitted:', { name, email, feedback }); | ||
closeFeedback(); | ||
} | ||
|
||
// popup will be displayed when placed cursor pointer on rateus in navbar | ||
document.addEventListener('DOMContentLoaded', function() { | ||
const rateUsLink = document.querySelector('a[href="#feedback"]'); | ||
rateUsLink.addEventListener('click', function(e) { | ||
e.preventDefault(); | ||
openFeedback(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters