Skip to content

Commit

Permalink
Update: Enhanced UI layout & design (#111)
Browse files Browse the repository at this point in the history
  • Loading branch information
hoangsonww committed Mar 24, 2024
1 parent 9502b76 commit 7e429bb
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
14 changes: 14 additions & 0 deletions MovieVerse-Frontend/html/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -552,6 +552,20 @@ <h3 id="subheading4">Useful Links:</h3>
sideNav.style.left = '-250px';
}
}

document.addEventListener('mousemove', function(event) {
const sideNav = document.getElementById('side-nav');
if (event.clientX < 10 && !sideNav.classList.contains('manual-toggle')) {
sideNav.style.left = '0';
}
});

document.getElementById('side-nav').addEventListener('mouseleave', function() {
const sideNav = document.getElementById('side-nav');
if (!sideNav.classList.contains('manual-toggle')) {
sideNav.style.left = '-250px';
}
});
</script>

</body>
Expand Down
1 change: 0 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

const most_popular_main = document.getElementById("most-popular");
const action_main = document.getElementById("action");
const horror_main = document.getElementById("horror");
Expand Down

0 comments on commit 7e429bb

Please sign in to comment.