Last active
March 1, 2018 12:13
-
-
Save mindcube/5533820 to your computer and use it in GitHub Desktop.
JS: Function that automatically pops up a fancybox window by using hash link.
This file contains hidden or 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 to automatically pop up lightbox window. | |
if (window.location.hash) { | |
var hash = window.location.hash; | |
if (hash == '#registration_form') { | |
$('.fancybox').fancybox().trigger('click'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment