Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tcorral/focus.js
Library to set the focus of any element in DOM
https://github.com/tcorral/focus.js
Last synced: 6 days ago
JSON representation
Library to set the focus of any element in DOM
- Host: GitHub
- URL: https://github.com/tcorral/focus.js
- Owner: tcorral
- License: mit
- Created: 2012-02-18T02:23:52.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2012-03-09T23:56:39.000Z (over 12 years ago)
- Last Synced: 2024-04-13T09:19:44.022Z (7 months ago)
- Language: JavaScript
- Homepage: http://tcorral.github.com/Focus.js
- Size: 129 KB
- Stars: 4
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Focus.js
Focus.js is a library to simulate focus on all the elements in DOM## Updated to version 1.0.0
#### ChangeLog 1.3.0 :
First commit## Description
Focus.js has been created to simulate focus on all the elements in DOM.
The need to create this library emerged in a project that needed to be focused on any DOM element, but without having to add multiple events, as this may cause memory problems.### Some benefits:
* Only 578bytes when [Gzipped](http://tcorral.github.com/Focus.js/versions/focus.min.gz).
[API documentation](/tcorral/Focus.js/tree/master/examples_and_documents/jsdoc/index.html)
[Examples](/tcorral/Focus.js/tree/master/examples_and_documents/index.html) to see for yourself!
## Usage
### Before using it:
Insert in your code:
### Instance it:
var oFocus = new Focus()
oFocus.setOnFocus(function(oElement)
{
console.log(oElement);
})
.setBehaviour();## Documentation
(Links will only work if you clone the repo.)
[API documentation](/tcorral/Focus.js/tree/master/examples_and_documents/jsdoc/index.html)
[Examples](/tcorral/Focus.js/tree/master/examples_and_documents/index.html) to see for yourself!
## License
Focus.js is licensed under the MIT license.