Advertisement
Guest User

Untitled

a guest
Jul 20th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Sub-featured thumbnail hover effect
  2. jQuery(document).ready(function () {
  3.     jQuery('#breadcrumb.home img.thumb').mouseover(function() {
  4.         jQuery(this).stop().fadeTo(300, 0.5);
  5.     });
  6.     jQuery('#breadcrumb.home img.thumb').mouseout(function() {
  7.         jQuery(this).stop().fadeTo(400, 1.0);
  8.     });
  9. });
  10.  
  11. // Sub-featured thumbnail hover effect
  12. jQuery(document).ready(function () {
  13.     jQuery('#featured.home .play').mouseover(function() {
  14.         jQuery(this).stop().fadeTo(300, 1);
  15.     });
  16.     jQuery('#featured.home .play').mouseout(function() {
  17.         jQuery(this).stop().fadeTo(400, 0.7);
  18.     });
  19. });
  20.  
  21. jQuery(document).ready(function () {
  22.     jQuery('#portfolio .block img').mouseover(function() {
  23.         jQuery(this).stop().fadeTo(300, 0.5);
  24.     });
  25.     jQuery('#portfolio .block img').mouseout(function() {
  26.         jQuery(this).stop().fadeTo(400, 1.0);
  27.     });
  28. });
  29.  
  30. // Innerfade setup
  31. jQuery(document).ready( function(){
  32.     jQuery('.quotes').innerfade({
  33.         animationtype: 'fade',
  34.         speed: 'normal',
  35.         timeout: 6000,
  36.         type: 'random_start',
  37.         containerheight: '120px'
  38.     });
  39.     jQuery('#twitter_update_list').innerfade({
  40.         animationtype: 'fade',
  41.         speed: 'normal',
  42.         timeout: 6000,
  43.         type: 'sequence',
  44.         containerheight: 'auto'
  45.     });
  46.    
  47. });
  48.  
  49. // Portfolio tag sorting
  50. jQuery(document).ready(function(){
  51.                                
  52.     jQuery('.port-cat a').click(function(evt){
  53.         var clicked_cat = jQuery(this).attr('rel');
  54.         if(clicked_cat == 'all'){
  55.             jQuery('#portfolio .post').hide().fadeIn(200);
  56.         } else {
  57.             jQuery('#portfolio .post').hide()
  58.             jQuery('#portfolio .' + clicked_cat).fadeIn(400);
  59.          }
  60.         //eq_heights();
  61.         evt.preventDefault();
  62.     }) 
  63.  
  64.     // Thanks @johnturner, I owe you a beer!
  65.     var postMaxHeight = 0;
  66.     jQuery("#portfolio .post").each(function (i) {
  67.          var elHeight = jQuery(this).height();
  68.          if(parseInt(elHeight) > postMaxHeight){
  69.              postMaxHeight = parseInt(elHeight);
  70.          }
  71.     });
  72.     jQuery("#portfolio .post").each(function (i) {
  73.         jQuery(this).css('height',postMaxHeight+'px');
  74.     });
  75.                                                        
  76. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement