Skip to content

Commit

Permalink
Merge branch 'feature/#121-no-navigation'
Browse files Browse the repository at this point in the history
  • Loading branch information
KrisSimon committed Feb 20, 2024
2 parents 1762154 + 1167cac commit 3f06e06
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion static/js/nav.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,11 @@ window.addEventListener("load", function (event) {
}

const asides = document.getElementsByTagName('aside');
if (asides.length > 0) {
const mains = document.getElementsByTagName('main');
console.log("++", asides, mains)
if (asides.length > 0 && mains.length > 0) {
asides[0].style.display = 'none'
mains[0].style.maxWidth = 'none'
}
});

Expand Down

0 comments on commit 3f06e06

Please sign in to comment.