Skip to content

Instantly share code, notes, and snippets.

@josueochoa
Last active January 4, 2016 13:19
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save josueochoa/ae8214df978403dfad04 to your computer and use it in GitHub Desktop.
Save josueochoa/ae8214df978403dfad04 to your computer and use it in GitHub Desktop.
/* This goes to js/avia.js (end) */
jQuery.fn.heightCalc = function(dir){
this.each(function(){
if (dir == "prev"){
jQuery(this).css("height", jQuery(this).prev().height());
}else{
jQuery(this).css("height", jQuery(this).next().height());
}
});
return this;
}
jQuery(window).bind('load resize',function() {
jQuery(".custom_list_r").parent().heightCalc("prev");
jQuery(".custom_list_l").parent().heightCalc("next");
});
/* This to Quick CSS
.flex_column.av_one_half {
display: table;
}
.custom_list_r, .custom_list_l {
display: table-cell;
vertical-align: middle;
}
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment