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 GitHub
parent 6f5e6f4391
commit 1ae32a42cb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -103,7 +103,11 @@ $(function() {
clearTimeout(timer); 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 // Mouse has left, start the timer
timer = setTimeout(function() { timer = setTimeout(function() {
$hlinks.addClass('hidden'); $hlinks.addClass('hidden');