Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/s-a/watch-input
watch an input textbox for changes. usefull to provide auto-suggest things of the web
https://github.com/s-a/watch-input
Last synced: about 5 hours ago
JSON representation
watch an input textbox for changes. usefull to provide auto-suggest things of the web
- Host: GitHub
- URL: https://github.com/s-a/watch-input
- Owner: s-a
- License: other
- Created: 2016-10-04T17:10:25.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2016-10-04T19:26:15.000Z (about 8 years ago)
- Last Synced: 2024-11-10T09:36:22.000Z (7 days ago)
- Language: JavaScript
- Homepage:
- Size: 2.93 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
```js
$("#search").watchInput({
delay : 700,
input : function(/*newValue*/){
// user is entering some data...
},
inputDone : function(newValue/*, oldValue*/){
// user finished entering data
var ref = firebase.database().ref("actors-search-index");
$("#spinner").show();
search(ref, newValue, function(){
$("#spinner").fadeOut("fast");
});
}
});
```