Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/roweldeguzman/swipe
https://github.com/roweldeguzman/swipe
Last synced: 10 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/roweldeguzman/swipe
- Owner: roweldeguzman
- Created: 2017-02-13T10:17:54.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-02-13T10:33:22.000Z (about 8 years ago)
- Last Synced: 2023-09-30T05:51:47.051Z (over 1 year ago)
- Language: JavaScript
- Size: 2.93 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# swipe
# Usage
```javascript
new swipe('#touch-div',function(data){
//this will return object data.
if(data.direction === 'left'){
alert("You swipe left");
}
if(data.direction === 'right'){
alert("You swipe right");
}
if(data.direction === 'up'){
alert("You swipe up");
}
if(data.direction === 'down'){
alert("You swipe down");
}
});
```