Created
January 25, 2018 23:11
-
-
Save IlonaF/01c4fd7bf52ef7dfddb2d4bec3c48bb5 to your computer and use it in GitHub Desktop.
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
//Get category from the url (#id) and filter the items leaving only the ones for that category | |
if( $('body').hasClass('page-we-are-redirecting-to') ){ | |
var cat = window.location.hash.substr(1); | |
$('.filters a[data-category="' + cat + '"]').click(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment