diff options
author | Matt Banks <mjbanks@gmail.com> | 2013-08-05 10:37:25 -0400 |
---|---|---|
committer | Matt Banks <mjbanks@gmail.com> | 2013-08-05 10:37:25 -0400 |
commit | 8d0e2a2a49540027389aad61e2bc9684918d4276 (patch) | |
tree | 3707f5fcf8dbe2bcd1e28d807346f142e3bbdc7c | |
parent | 46a17dcf1425e791f71725b975bb3ad965f64d52 (diff) | |
download | jQuery.equalHeights-8d0e2a2a49540027389aad61e2bc9684918d4276.zip jQuery.equalHeights-8d0e2a2a49540027389aad61e2bc9684918d4276.tar.gz jQuery.equalHeights-8d0e2a2a49540027389aad61e2bc9684918d4276.tar.bz2 |
update for v1.4v1.4
-rw-r--r-- | README.md | 20 |
1 files changed, 18 insertions, 2 deletions
@@ -1,6 +1,6 @@ # jQuery Simple Equal Heights -Version 1.3 +Version 1.4 ## Summary @@ -14,10 +14,18 @@ Matt Banks ( [@mattbanks](http://twitter.com/mattbanks) / [kernelcreativemedia.c Include `jquery.equalheights.min.js` after calling jQuery in the footer. Alternatively, include in your `plugins.js` file if using [HTML5 Boilerplate](http://html5boilerplate.com). +### Auto Initialize + +Add `data-heights="equal"` and `data-targets="MYELEMENTS"` to the parent container, where MYELEMENTS is div, section, whatever you'd like. [See the example](https://github.com/mattbanks/jQuery.equalHeights/blob/master/example/example.html) for more information. + +### Manually Initialize + $('.yourelements').equalHeights(); Select whatever elements need equal height. +### Caveats + If using @font-face or Google Web Fonts, you may need to wrap the function call in a `setTimeout` for 100ms-200ms (`jQuery.height()` needs to fire after the font is rendered to properly calculate the height). ## Requirements/Browsers @@ -30,8 +38,16 @@ Works in IE6+, Chrome 14+, Safari 4+, Firefox 3.0+, Opera 10+. See `example.html` in examples folder. +## Contributors + +* [betweenbrain](https://github.com/betweenbrain) + ### Changelog +#### Version 1.4 + +* allow auto initialization with `data-heights` and `data-targets` (props [betweenbrain](https://github.com/betweenbrain)) + #### Version 1.3 * properly return the jQuery object to allow chaining @@ -48,4 +64,4 @@ See `example.html` in examples folder. #### Version 1.0 -* initial version +* initial version
\ No newline at end of file |