Skip to content

Instantly share code, notes, and snippets.

@rsobers
Created January 5, 2016 19:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rsobers/c5545ea980de7418cb46 to your computer and use it in GitHub Desktop.
Save rsobers/c5545ea980de7418cb46 to your computer and use it in GitHub Desktop.
// Close the Drip tab when someone clicks "X"
$(function checkFormDrip() {
if( $('.drip-tab').length > 0 ) {
// tab is loaded, hook up the event handler
$('.drip-close').click(function() { $('.drip-tab').hide(); });
} else {
setTimeout(function() { checkFormDrip(); }, 200 );
};
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment