This is a jquery plugin that will auto-grow your text areas vertically (like facebook) or horizontally. It is based off [a code snippet by dhruvbird](https://code.google.com/p/gaequery/source/browse/trunk/src/static/scripts/jquery.autogrow-textarea.js?r=2). The plugin uses a hidden mirror textarea to calculate the idea height (and width) of the target text area. Differences from the original code snippet are:
* The plugin reverts back to simple math with IE 8 since IE 8 does not work well using the mirror approach, as mentioned in [http://stackoverflow.com/questions/9784547/jquery-textarea-auto-grow-plugin-cross-browser-compatible](this stack overflow question).
* Support for horizontal auto-growth of text areas. That is, text areas that expand horizontally as you type.
* Once the plugin has been activated on a textarea, the textarea will listen for the custom "remove.autogrow" event. If that event is triggered, the plugin will clean up the resources that is uses to avoid memory leaks. (Specifcally, the mirror textarea used by the plugin will be removed from the DOM.)
Use:
$( "textarea" ).autogrow();
or for horizontal growth only:
$( "textarea" ).autogrow( { vertical : false, horizontal : true } );
or for both (untested? I can't remember!)
$( "textarea" ).autogrow( { vertical : true, horizontal : true } );
To cleanup before removing original textarea element from DOM, or after plugin is no longer needed:
$( "textarea" ).trigger( "remove.autogrow" );
没有合适的资源?快使用搜索试试~ 我知道了~
【WordPress主题】2022年最新版完整功能demo+插件v1.5.zip
共96个文件
png:49个
php:18个
js:7个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 14 浏览量
2022-04-04
12:50:56
上传
评论
收藏 1.99MB ZIP 举报
温馨提示
"【WordPress主题】2022年最新版完整功能demo+插件v1.5 Vibrant- A Super Sharp WordPress Mobile Theme 充满活力 - 超锋利的WordPress移动主题" ---------- 泰森云每天更新发布最新WordPress主题、HTML主题、WordPress插件、shopify主题、opencart主题、PHP项目源码、安卓项目源码、ios项目源码,更有超10000个资源可供选择,如有需要请站内联系。
资源推荐
资源详情
资源评论
收起资源包目录
【WordPress主题】2022年最新版完整功能demo+插件v1.5.zip (96个子文件)
Vibrant by Bonfire
vibrant
functions.php 7KB
footer.php 784B
comments.php 4KB
index.php 603B
editor-style.css 750B
images
reply-icon@2x.png 208B
icons@2x.png 1KB
reply-icon.png 169B
post-comment@2x.png 426B
menu-expandable@2x.png 219B
nav-next-icon@2x.png 336B
close-reply-icon@2x.png 234B
empty.png 126B
loader.gif 3KB
title-spacer.png 189B
prev-page-inactive@2x.png 244B
next-page.png 170B
icon-comment@2x.png 158B
showing-hide@2x.png 368B
nav-next-icon.png 191B
icon-menu@2x.png 189B
menu-expandable.png 185B
send-icon@2x.png 303B
post-comment.png 229B
icon-share.png 201B
prev-page.png 171B
next-page-inactive@2x.png 248B
prev-page@2x.png 237B
icon-menu.png 162B
icon-share@2x.png 280B
widget-menu-expand@2x.png 162B
icons.png 626B
next-page@2x.png 241B
nav-prev-icon@2x.png 346B
icon-comment.png 140B
close-icon.png 298B
close-icon@2x.png 379B
close-reply-icon.png 185B
widget-menu-expand.png 152B
nav-prev-icon.png 194B
prev-page-inactive.png 173B
showing-hide.png 269B
title-spacer@2x.png 319B
next-page-inactive.png 170B
send-icon.png 212B
archive.php 1KB
404.php 832B
fonts
font-awesome
css
font-awesome.min.css 30KB
font-awesome.css 37KB
fonts
fontawesome-webfont.eot 162KB
fontawesome-webfont.woff 96KB
FontAwesome.otf 132KB
fontawesome-webfont.svg 434KB
fontawesome-webfont.woff2 75KB
fontawesome-webfont.ttf 162KB
js
accordion.js 874B
autogrow
jquery.autogrow-textarea.js 4KB
LICENSE.html 1KB
README.md 1KB
empty-textarea.js 283B
jquery.scrollTo-min.js 2KB
expand-textarea.js 147B
main-menu.js 5KB
comment-form.js 1KB
header.php 2KB
author.php 703B
languages
vibrant.mo 445B
vibrant.po 3KB
screenshot.png 225KB
page.php 2KB
category.php 1KB
search.php 1KB
tag.php 625B
page-archive.php 1KB
single.php 636B
includes
pagination.php 328B
loop.php 2KB
loop-single.php 2KB
style.css 42KB
searchform.php 267B
readme.txt 120B
_documentation
images
second-column.png 31KB
icon-home.png 20KB
icon-gallery.png 20KB
icon-pink.png 20KB
final-example.png 24KB
first-column.png 30KB
third-column.png 31KB
threecolumns.png 23KB
twocolumns.png 23KB
documentation.html 26KB
vibrant.zip 893KB
Plugins
pageloader-by-bonfire.zip 21KB
shortcodes-by-bonfire.zip 11KB
Licensing
GPL.txt 14KB
README_License.txt 414B
共 96 条
- 1
资源评论
Lee达森
- 粉丝: 968
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功