Giter Site home page Giter Site logo

maximryabov22011988 / autosize Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jackmoore/autosize

0.0 1.0 0.0 281 KB

Autosize is a small, stand-alone script to automatically adjust textarea height to fit text.

Home Page: http://www.jacklmoore.com/autosize/

License: MIT License

JavaScript 83.71% HTML 16.29%

autosize's Introduction

Summary

Autosize is a small, stand-alone script to automatically adjust textarea height to fit text.

Demo

Full documentation and a demo can be found at jacklmoore.com/autosize

Install via NPM

npm install autosize

Browser compatibility

Chrome Firefox IE Safari iOS Safari Android Opera Mini Windows Phone IE
yes yes 9 yes yes 4 ? 8.1

Usage

The autosize function accepts a single textarea element, or an array or array-like object (such as a NodeList or jQuery collection) of textarea elements.

// from a NodeList
autosize(document.querySelectorAll('textarea'));

// from a single Node
autosize(document.querySelector('textarea'));

// from a jQuery collection
autosize($('textarea'));

Released under the MIT License

autosize's People

Contributors

jackmoore avatar njam avatar jclement avatar firedev avatar antriver avatar stof avatar genadis avatar ledermann avatar hnguyen08 avatar jam13 avatar joaocunha avatar kanecohen avatar korny avatar vezul avatar builtbylane avatar leonidaz avatar markusgut avatar revisor avatar nazar-pc avatar neilb avatar nickbaum avatar ninir avatar sabl0r avatar hefloricardo avatar rmcauley avatar grrowl avatar onionhammer avatar seguemark avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.