Hide hidden links & remove the overlay when one is clicked (#5042)

This commit is contained in:
Jason Williscroft 2024-11-28 01:11:14 +08:00 committed by Steffen Illium
parent 194c561d9d
commit 86faca6004

View File

@ -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');