Skip to content

Commit

Permalink
Hide hidden links & remove the overlay when one is clicked (#5042)
Browse files Browse the repository at this point in the history
  • Loading branch information
karmaniverous authored Nov 27, 2024
1 parent 6f5e6f4 commit 1ae32a4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion assets/js/plugins/jquery.greedy-navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,11 @@ $(function() {
clearTimeout(timer);
});

$hlinks.on('mouseleave', function() {
$hlinks.on("click", function () {
// Hide the hidden links & remove the overlay when one is clicked.
$hlinks.addClass("hidden");
$btn.removeClass("close");
}).on('mouseleave', function() {
// Mouse has left, start the timer
timer = setTimeout(function() {
$hlinks.addClass('hidden');
Expand Down

0 comments on commit 1ae32a4

Please sign in to comment.