Skip to content

Instantly share code, notes, and snippets.

@tarto-dev
Created February 11, 2014 17:16
Show Gist options
  • Save tarto-dev/8939419 to your computer and use it in GitHub Desktop.
Save tarto-dev/8939419 to your computer and use it in GitHub Desktop.
jQuery(function($){
$('#Grid').mixitup({
onMixLoad: function(){
var hash = window.location.hash;
var noHash=hash.replace("#","");
// If hash in URL, use it as a filter in MixItUp
if(hash){
$('#Grid').mixitup('filter', noHash);
}
}
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment