2
2
3
3
A JavaScript library to recognize gestures on web browsers.
4
4
5
- * It's small and standalone.
6
- * Dependency-free.
7
- * Just 3 kb (min & gzip).
8
- * Multi-device support.
9
- * Easy-implementation.
10
- * Made it with love.
5
+ * It's small and standalone.
6
+ * Dependency-free.
7
+ * Just 3 kb (min & gzip).
8
+ * Multi-device support.
9
+ * Easy-implementation.
10
+ * Made it with love.
11
11
12
12
* * *
13
13
14
14
## Compatibility
15
15
16
16
###
17
17
18
- * iOS
19
- * iPhone/iPod iOS 6
20
- * iPad/iPhone iOS 7
21
- * Android
22
- * Default browser
23
- * Chrome
24
- * Firefox
18
+ * iOS
19
+ * iPhone/iPod iOS 6
20
+ * iPad/iPhone iOS 7
21
+ * Android
22
+ * Default browser
23
+ * Chrome
24
+ * Firefox
25
25
26
26
* * *
27
27
@@ -43,10 +43,10 @@ script > tag somewhere on your HTML pages.
43
43
Once added the library you can create your listeners with the same name you
44
44
have defined the gesture (in uppercase).
45
45
46
- ``` javascript
46
+ ``` javascript
47
47
< script>
48
- gesturekit .on (' NAME' , function (event ) {
49
- // Some code here!
48
+ gesturekit .on (' NAME' , function (event ) {
49
+ // Some code here!
50
50
});
51
51
< / script>
52
52
```
@@ -58,11 +58,11 @@ have defined the gesture (in uppercase).
58
58
Initializes the gesturekit library using the .init() method passing your ` GID `
59
59
as parameter.
60
60
61
- ``` javascript
61
+ ``` javascript
62
62
< script>
63
- gesturekit .init ({
64
- ' gid' : ' xxxx-xxxx-xxxx'
65
- });
63
+ gesturekit .init ({
64
+ ' gid' : ' xxxx-xxxx-xxxx'
65
+ });
66
66
< / script>
67
67
```
68
68
@@ -97,7 +97,7 @@ Initializes the gesturekit library using the .init() method passing your `GID`
97
97
- [ gesturestart] ( #gesturestart )
98
98
- [ gesturemotion] ( #gesturemotion )
99
99
- [ gestureend] ( #gestureend )
100
-
100
+
101
101
***
102
102
103
103
### Methods
@@ -319,30 +319,30 @@ gesturekit.on('gestureend', function (event) {
319
319
320
320
321
321
1 . Install [ Git] ( http://git-scm.com/ ) and [ NodeJS] ( http://nodejs.org/ ) .
322
-
322
+
323
323
2 . Open your terminal and clone ` roamtouch/GestureKit ` by running:
324
324
```
325
325
$ git clone [email protected] :roamtouch/GestureKit.git
326
326
```
327
-
327
+
328
328
3. Now go to the project's folder:
329
329
```
330
330
$ cd GestureKit
331
331
```
332
-
332
+
333
333
4. Install its dependencies:
334
334
```
335
335
$ npm install
336
336
```
337
-
337
+
338
338
5. Install `grunt-cli`:
339
339
```
340
340
$ npm install grunt-cli -g
341
341
```
342
342
343
343
6. Develop!
344
-
345
- ***
344
+
345
+ ***
346
346
347
347
## Grunt tasks
348
348
- `grunt dev`: Builds a development version.
@@ -368,4 +368,3 @@ Licensed under Apache v2 License.
368
368
369
369
Copyright (c) 2014 [RoamTouch](http://github.com/RoamTouch).
370
370
371
-
0 commit comments