Skip to content

Instantly share code, notes, and snippets.

@sidis405
Last active January 14, 2017 09:36
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 sidis405/9f4f7cf768f91bc23370b1e885f6821d to your computer and use it in GitHub Desktop.
Save sidis405/9f4f7cf768f91bc23370b1e885f6821d to your computer and use it in GitHub Desktop.
/**
* Tab enabling/disabling. Place this at the end of scripts.js
* You'll be good to go.
* Sid
*/
$( function() {
if(window.location.hash) {
setTimeout(function(){
$('*[data-isotope-filter="'+ decodeURIComponent(window.location.hash.substring(1)) + '"]').trigger('click');
}, 1000);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment