Created
October 19, 2015 17:13
-
-
Save archondigital/c9a9902a8d96ad68e013 to your computer and use it in GitHub Desktop.
Load Clearing Lightbox using URI hash on Foundation 5
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
<div id="loadGallery"></div> | |
<script> | |
// load clearing lightbox with URI hash , requires Foundation 5 | |
$(function(){ | |
if (window.location.hash){ | |
var hash = window.location.hash.substring(1); | |
if (hash == "loadGallery"){ | |
$('ul[data-clearing] li a').first().click(); | |
} | |
} | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment