-
-
Save stephanschuler/e5f96ccb6a670cbcc5672dcaca64673f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(function() { | |
var timeout; | |
$('#contact').hover(start, stop); | |
function start() { | |
stop(); | |
run(); | |
} | |
function stop() { | |
clearTimeout(timeout); | |
} | |
function run() { | |
if (!$('#contact span.content').is(":visible")) { | |
return; | |
} | |
timeout = setTimeout(run, 500); | |
// whatever | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment