Minor tweaks
This commit is contained in:
parent
412771dbec
commit
c381284689
5 changed files with 27 additions and 12 deletions
|
@ -78,18 +78,21 @@ $(window).load(function(){
|
|||
}
|
||||
|
||||
function applyFilter() {
|
||||
var filter = location.hash;
|
||||
var hash = location.hash;
|
||||
|
||||
if (filter == '') {
|
||||
var filter;
|
||||
if (hash == '') {
|
||||
filter = '.featured'
|
||||
} else if (filter == '#all') {
|
||||
hash = '#featured'
|
||||
} else if (hash == '#all') {
|
||||
filter = '*';
|
||||
} else {
|
||||
filter = '.' + filter.substr(1);
|
||||
filter = '.' + hash.substr(1);
|
||||
}
|
||||
|
||||
$('.filter-button-group a.current').removeClass('current');
|
||||
$('.filter-button-group a[href='+location.hash+']').addClass('current');
|
||||
$('.filter-button-group a[href='+hash+']').addClass('current');
|
||||
|
||||
$container.isotope({
|
||||
filter: filter,
|
||||
animationOptions: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue