Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
Updated code to center content
  • Loading branch information
madhurimarawat authored Jul 22, 2024
1 parent 2bac057 commit 290f577
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions docs/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,16 @@
// Run when DOM content is fully loaded
document.addEventListener("DOMContentLoaded", function () {
// Center align contentRow element using Flexbox
var contentRow = document.getElementById("contentRow");
var contentRow = document.getElementById("contentRow_1");
if (contentRow) {
contentRow.classList.add("d-flex", "justify-content-center");
}
});

// Run when DOM content is fully loaded
document.addEventListener("DOMContentLoaded", function () {
// Center align contentRow element using Flexbox
var contentRow = document.getElementById("contentRow_2");
if (contentRow) {
contentRow.classList.add("d-flex", "justify-content-center");
}
Expand Down Expand Up @@ -92,4 +101,3 @@ $(document).ready(function () {
$(".navbar-collapse").collapse('hide');
});
});

0 comments on commit 290f577

Please sign in to comment.