Changeset 659734
- Timestamp:
- 01/27/2013 03:26:27 PM (13 years ago)
- File:
-
- 1 edited
-
post-tiles/trunk/post-tiles-frontend.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
post-tiles/trunk/post-tiles-frontend.js
r623444 r659734 10 10 // This used the category key to accent selected category 11 11 $('#category-key a').not('#category-all').click(function() { 12 // Get category's id which is the cateogyr name 12 13 var categoryClass = '.'+$(this).attr('id'); 14 // Target all those posts except with matching category id and fade 13 15 $('ul#post-tiles li').not(categoryClass).fadeTo('slow', 0.3); 14 $('.post-tile-selected').removeClass('post-tile-selected') 16 // Remove the previous selected category id 17 $('.post-tile-selected').removeClass('post-tile-selected'); 18 // Fade in the current selected category 15 19 $(categoryClass).fadeTo('fast', 1.0); 20 // Add the active class to the category key 16 21 $(categoryClass).addClass('post-tile-selected'); 22 // Disbale the anchor 17 23 return false; 18 24 }); … … 82 88 }); 83 89 // Animate Down 84 $('li.f eatured-image.fade a').fadeToggle();90 $('li.fade a').fadeToggle(); 85 91 // Action when mouse enter of featured image 86 $('li.f eatured-image.fade').mouseenter(function() {92 $('li.fade').mouseenter(function() { 87 93 $(this).children('a').animate({ 88 94 left: '0%' … … 92 98 93 99 // Action when mouse leave of featured image 94 $('li.f eatured-image.fade').mouseleave(function() {100 $('li.fade').mouseleave(function() { 95 101 $(this).children('a').fadeToggle(); 96 102 $(this).children('a').animate({
Note: See TracChangeset
for help on using the changeset viewer.