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

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