Skip to content

Instantly share code, notes, and snippets.

@archondigital
Created October 19, 2015 17:13
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 archondigital/c9a9902a8d96ad68e013 to your computer and use it in GitHub Desktop.
Save archondigital/c9a9902a8d96ad68e013 to your computer and use it in GitHub Desktop.
Load Clearing Lightbox using URI hash on Foundation 5
<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