11 lines
467 B
JavaScript
11 lines
467 B
JavaScript
/*!
|
|
* Simple jQuery Equal Heights
|
|
*
|
|
* Copyright (c) 2013 Matt Banks
|
|
* Dual licensed under the MIT and GPL licenses.
|
|
* Uses the same license as jQuery, see:
|
|
* http://docs.jquery.com/License
|
|
*
|
|
* @version 1.5.1
|
|
*/
|
|
!function(a){a.fn.equalHeights=function(){var b=0,c=a(this);return c.each(function(){var c=a(this).innerHeight();c>b&&(b=c)}),c.css("height",b)},a("[data-equal]").each(function(){var b=a(this),c=b.data("equal");b.find(c).equalHeights()})}(jQuery); |