Skip to content

Commit

Permalink
Fix: Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
shantanu-02 committed Oct 11, 2024
1 parent 8ba5ac6 commit 6c13574
Show file tree
Hide file tree
Showing 14 changed files with 15 additions and 32 deletions.
3 changes: 1 addition & 2 deletions applications/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,7 @@ <h2>Status</h2>
<script src="../footer/footerComponent.js"></script>
<script>
document.addEventListener('DOMContentLoaded', () => {
const href = 'https://github.com/Real-Dev-Squad/website-dashboard';
loadFooter(href);
loadFooter();
});
</script>
</body>
Expand Down
8 changes: 2 additions & 6 deletions footer/footerComponent.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
// footerComponent.js

// Define the loadFooter function that takes an href argument
function loadFooter(href) {
function loadFooter() {
const footerHTML = `
<footer class="footer" data-test-id="footer">
<p class="info-repo" data-test-id="info-repo">
The contents of this website are deployed from this
<a
href="${href}"
href="https://github.com/Real-Dev-Squad/website-dashboard"
target="_blank"
rel="noopener noreferrer"
data-test-id="repo-link"
Expand All @@ -18,6 +15,5 @@ function loadFooter(href) {
</footer>
`;

// Insert the footer into the DOM
document.body.insertAdjacentHTML('beforeend', footerHTML);
}
3 changes: 1 addition & 2 deletions goal/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,7 @@ <h2>Page not found</h2>
</div>
<script>
document.addEventListener('DOMContentLoaded', () => {
const href = 'https://github.com/Real-Dev-Squad/website-dashboard';
loadFooter(href);
loadFooter();
});
</script>
<script src="../../footer/footerComponent.js"></script>
Expand Down
3 changes: 1 addition & 2 deletions groups/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@
<script src="../footer/footerComponent.js"></script>
<script>
document.addEventListener('DOMContentLoaded', () => {
const href = 'https://github.com/Real-Dev-Squad/website-dashboard';
loadFooter(href);
loadFooter();
});
</script>
</body>
Expand Down
3 changes: 1 addition & 2 deletions identity-service-logs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,7 @@ <h1>Identity Service Logs</h1>
<div id="page_bottom_element"></div>
<script>
document.addEventListener('DOMContentLoaded', () => {
const href = 'https://github.com/Real-Dev-Squad/website-dashboard';
loadFooter(href);
loadFooter();
});
</script>
<script src="../../footer/footerComponent.js"></script>
Expand Down
3 changes: 1 addition & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,7 @@
<script src="../footer/footerComponent.js"></script>
<script>
document.addEventListener('DOMContentLoaded', () => {
const href = 'https://github.com/Real-Dev-Squad/website-dashboard';
loadFooter(href);
loadFooter();
});
</script>
</body>
Expand Down
3 changes: 1 addition & 2 deletions online-members/online-members.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@
</div>
<script>
document.addEventListener('DOMContentLoaded', () => {
const href = 'https://github.com/Real-Dev-Squad/website-dashboard';
loadFooter(href);
loadFooter();
});
</script>
<script src="../../footer/footerComponent.js"></script>
Expand Down
3 changes: 1 addition & 2 deletions profile/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ <h1>PROFILE DIFFERENCES</h1>
<p id="loader">Loading...</p>
<script>
document.addEventListener('DOMContentLoaded', () => {
const href = 'https://github.com/Real-Dev-Squad/website-dashboard';
loadFooter(href);
loadFooter();
});
</script>
<script src="../../footer/footerComponent.js"></script>
Expand Down
3 changes: 1 addition & 2 deletions standup/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ <h1 class="user-standup-nav">User Standup</h1>
</main>
<script>
document.addEventListener('DOMContentLoaded', () => {
const href = 'https://github.com/Real-Dev-Squad/website-dashboard';
loadFooter(href);
loadFooter();
});
</script>
<script src="../../footer/footerComponent.js"></script>
Expand Down
3 changes: 1 addition & 2 deletions task/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -289,8 +289,7 @@ <h4 class="suggested-users-title">Suggested users</h4>
</form>
<script>
document.addEventListener('DOMContentLoaded', () => {
const href = 'https://github.com/Real-Dev-Squad/website-dashboard';
loadFooter(href);
loadFooter();
});
</script>
<div class="hidden" id="submit-loader">
Expand Down
3 changes: 1 addition & 2 deletions users/details/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,7 @@ <h2 class="accordian-heading">PR's</h2>
</section>
<script>
document.addEventListener('DOMContentLoaded', () => {
const href = 'https://github.com/Real-Dev-Squad/website-dashboard';
loadFooter(href);
loadFooter();
});
</script>
<script src="../../footer/footerComponent.js"></script>
Expand Down
3 changes: 1 addition & 2 deletions users/discord/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ <h1 id="pageTitle">Discord Users</h1>
<script src="../../footer/footerComponent.js"></script>
<script>
document.addEventListener('DOMContentLoaded', () => {
const href = 'https://github.com/Real-Dev-Squad/website-dashboard';
loadFooter(href);
loadFooter();
});
</script>
</body>
Expand Down
3 changes: 1 addition & 2 deletions users/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,7 @@ <h2>Skills</h2>
</section>
<script>
document.addEventListener('DOMContentLoaded', () => {
const href = 'https://github.com/Real-Dev-Squad/website-dashboard';
loadFooter(href);
loadFooter();
});
</script>
<script src="../../footer/footerComponent.js"></script>
Expand Down
3 changes: 1 addition & 2 deletions wallet/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@
</div>
<script>
document.addEventListener('DOMContentLoaded', () => {
const href = 'https://github.com/Real-Dev-Squad/website-dashboard';
loadFooter(href);
loadFooter();
});
</script>
<script src="../../footer/footerComponent.js"></script>
Expand Down

0 comments on commit 6c13574

Please sign in to comment.