Raul_julian

home.js

Apr 4th, 2016
322
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $(document).ready(function() {
  2.     $('#home-view .tools-section a.know-more').click(function(){
  3.         $('html, body').animate({
  4.             scrollTop: $( $.attr(this, 'href') ).offset().top - 60
  5.         }, 500);
  6.         return false;
  7.     });
  8.  
  9.     /* Height blocks equal
  10.       @autor: rauljulian1996(at)gmail(dot)com
  11.     */
  12.  
  13.     var _tools = $(".tools-section .col-md-4");
  14.       var _height = 0, hAtual = 0 ;
  15.  
  16.       _tools.each(function(tool) {
  17.           hAtual = parseFloat($(this).height());
  18.           console.log("hAtual: " + hAtual);
  19.  
  20.           if(_height < hAtual) {
  21.             _height = hAtual ;
  22.           }
  23.       });
  24.  
  25.       _tools.height( _height);
  26. });
Add Comment
Please, Sign In to add comment