Created
October 19, 2015 17:13
Load Clearing Lightbox using URI hash on Foundation 5
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
<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