Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fixed all the broken links and formatted the file structure #295

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion public/affiliate_program.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ <h2>Ready to Join?</h2>
</section>

<footer class="footer">
<p>&copy; 2024 Research Nexas | <a href="privacy_policy.html" alt="Privacy policy"
<p>&copy; 2024 Research Nexas | <a href="/privacy_policy.html" alt="Privacy policy"
style="color:white; text-decoration: none;">Privacy
Policy</a> | Terms & Conditions</p>
</footer>
Expand Down
6 changes: 3 additions & 3 deletions public/contributor.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Research Nexas</title>
<link rel="stylesheet" href="/style.css">
<link rel="stylesheet" href="./css/contributor.css">
<link rel="stylesheet" href="/css/contributor.css">
<style>
.homeBtn {
position: fixed;
Expand All @@ -22,7 +22,7 @@
</head>
<body>

<a href="./index.html" class="homeBtn">Home</a>
<a href="/" class="homeBtn">Home</a>

<div class="contributor-container">
<!-- Hero Section -->
Expand Down Expand Up @@ -65,6 +65,6 @@ <h2>Ready to Make an Impact?</h2>
</section>
</div>

<script src="./script/contributor.js"></script>
<script src="/script/contributor.js"></script>
</body>
</html>
63 changes: 28 additions & 35 deletions public/dashboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,15 @@
<li>
<div class="gtranslate_wrapper"></div>
<script>
window.gtranslateSettings = {
default_language: "en",
detect_browser_language: true,
wrapper_selector: ".gtranslate_wrapper",
font_size: 100,
};
window.gtranslateSettings = {
default_language: "en",
detect_browser_language: true,
wrapper_selector: ".gtranslate_wrapper",
font_size: 100,
};
</script>
<script
src="https://cdn.gtranslate.net/widgets/latest/popup.js"
defer
></script>
</li>
<script src="https://cdn.gtranslate.net/widgets/latest/popup.js" defer></script>
</li>
</ul>
</div>
<div class="largesection">
Expand All @@ -56,13 +53,13 @@
</div>
<div>
<button onclick="openEditModal()" style="cursor: pointer;"><i class="fa-regular fa-pen-to-square"
style="padding: 0px 12px 0px 8px;"></i>Edit Profile</button>
style="padding: 0px 12px 0px 8px;"></i>Edit Profile</button>
</div>
</div>
<div id="editProfileModal" style="display:none;">
<h3 style="margin-left:3vw;font-size: 22px;">Edit Profile</h3>
<form id="editForm">
<div id="detail">
<div id="detail">
<ul>
<li>
<div>Name: </div><input type="text" id="editName" required>
Expand All @@ -83,9 +80,9 @@ <h3 style="margin-left:3vw;font-size: 22px;">Edit Profile</h3>
<div> Course: </div> <span><input type="text" id="editCourse" required></span>
</li>
</ul>
</div>
<div class="dualBtns">
<button type="submit" style=" background-color: #04AA6D; /* Green */
</div>
<div class="dualBtns">
<button type="submit" style=" background-color: #04AA6D; /* Green */
border: none;
color: white;
padding: 15px 32px;
Expand All @@ -96,7 +93,7 @@ <h3 style="margin-left:3vw;font-size: 22px;">Edit Profile</h3>
border-radius: 10px;
cursor: pointer;
margin-right: 20px;" id="editForm">Save</button>
<button type="button" style=" background-color: #F95454;
<button type="button" style=" background-color: #F95454;
border: none;
color: white;
padding: 15px 32px;
Expand All @@ -106,10 +103,10 @@ <h3 style="margin-left:3vw;font-size: 22px;">Edit Profile</h3>
font-size: 16px;
border-radius: 10px;
cursor: pointer;
margin-right: 20px;" onclick="closeEditModal()">Cancel</button>
</div>
margin-right: 20px;" onclick="closeEditModal()">Cancel</button>
</div>
</form>
</div>
</div>
<div id="profileContainer">
<div id="detail">
<ul>
Expand Down Expand Up @@ -163,7 +160,7 @@ <h3 style="margin-left:3vw;font-size: 22px;">Edit Profile</h3>

document.getElementById('editForm').addEventListener('submit', async function (e) {
e.preventDefault();

const updatedData = {
name: document.getElementById('editName').value,
email: document.getElementById('editEmail').value,
Expand All @@ -172,9 +169,9 @@ <h3 style="margin-left:3vw;font-size: 22px;">Edit Profile</h3>
year: document.getElementById('editYear').value,
course: document.getElementById('editCourse').value
};

const token = localStorage.getItem('accessToken');

try {
const response = await fetch('/updateProfile', {
method: 'PUT',
Expand All @@ -184,7 +181,7 @@ <h3 style="margin-left:3vw;font-size: 22px;">Edit Profile</h3>
},
body: JSON.stringify(updatedData)
});

if (response.ok) {
const data = await response.json();
// Update the DOM with new values
Expand All @@ -195,7 +192,7 @@ <h3 style="margin-left:3vw;font-size: 22px;">Edit Profile</h3>
document.getElementById('year').textContent = data.year;
document.getElementById('course').textContent = data.course;
alert("Profile Updated Successfully")

closeEditModal();
fetchdata();
} else {
Expand Down Expand Up @@ -317,17 +314,13 @@ <h3 style="margin-left:3vw;font-size: 22px;">Edit Profile</h3>
}
</script>

<script>
window.embeddedChatbotConfig = {
chatbotId: "iSwsMwg5TfWCzADbpz05-",
domain: "www.chatbase.co"
}
<script>
window.embeddedChatbotConfig = {
chatbotId: "iSwsMwg5TfWCzADbpz05-",
domain: "www.chatbase.co"
}
</script>
<script
src="https://www.chatbase.co/embed.min.js"
chatbotId="iSwsMwg5TfWCzADbpz05-"
domain="www.chatbase.co"
defer>
<script src="https://www.chatbase.co/embed.min.js" chatbotId="iSwsMwg5TfWCzADbpz05-" domain="www.chatbase.co" defer>
</script>
</body>

Expand Down
Loading