Skip to content
This repository has been archived by the owner on Apr 4, 2019. It is now read-only.
/ direction Public archive

automatically adjust input direction based on user language.

Notifications You must be signed in to change notification settings

yields/direction

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

direction

automatically adjust input direction based on user language.

Installation

$ component install yields/direction

Example

<input type='text' name='foo'>
<textarea></textarea>

<script>
  var input = document.querySelector('input')
    , txt = document.querySelector('textarea')
    , direction = require('direction');

  direction(input);
  direction(txt);
</script>

License

MIT

About

automatically adjust input direction based on user language.

Resources

Stars

Watchers

Forks

Packages

No packages published