kolo 0.1.4 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/assets/javascripts/jquery.swipes.js +83 -0
- data/lib/kolo/version.rb +1 -1
- metadata +5 -4
@@ -0,0 +1,83 @@
|
|
1
|
+
(function($) {
|
2
|
+
var methods = {
|
3
|
+
disappearToTheLeft: function() {
|
4
|
+
this.transition({
|
5
|
+
x: '-5000px'
|
6
|
+
}, 500);
|
7
|
+
this.hide();
|
8
|
+
return this;
|
9
|
+
},
|
10
|
+
disappearToTheRight: function() {
|
11
|
+
this.transition({
|
12
|
+
x: '5000px'
|
13
|
+
}, 500);
|
14
|
+
this.hide();
|
15
|
+
return this;
|
16
|
+
},
|
17
|
+
disappearUpwards: function() {
|
18
|
+
this.transition({
|
19
|
+
y: '-5000px'
|
20
|
+
}, 500);
|
21
|
+
this.hide();
|
22
|
+
return this;
|
23
|
+
},
|
24
|
+
disappearDownwards: function() {
|
25
|
+
this.transition({
|
26
|
+
y: '10000px'
|
27
|
+
}, 500);
|
28
|
+
this.hide();
|
29
|
+
return this;
|
30
|
+
},
|
31
|
+
reappearFromTheRight: function() {
|
32
|
+
this.transition({
|
33
|
+
x: '5000px'
|
34
|
+
}, 0);
|
35
|
+
this.show();
|
36
|
+
this.transition({
|
37
|
+
x: '0px'
|
38
|
+
}, 100);
|
39
|
+
return this;
|
40
|
+
},
|
41
|
+
reappearFromTheLeft: function() {
|
42
|
+
this.transition({
|
43
|
+
x: '-5000px'
|
44
|
+
}, 0);
|
45
|
+
this.show();
|
46
|
+
this.transition({
|
47
|
+
x: '0px'
|
48
|
+
}, 100);
|
49
|
+
return this;
|
50
|
+
},
|
51
|
+
reappearFromTheBottom: function() {
|
52
|
+
this.transition({
|
53
|
+
y: '10000px'
|
54
|
+
}, 0);
|
55
|
+
this.show();
|
56
|
+
this.transition({
|
57
|
+
y: '0px'
|
58
|
+
}, 100);
|
59
|
+
return this;
|
60
|
+
},
|
61
|
+
reappearFromTheTop: function() {
|
62
|
+
this.transition({
|
63
|
+
y: '-10000px'
|
64
|
+
}, 0);
|
65
|
+
this.show();
|
66
|
+
this.transition({
|
67
|
+
y: '0px'
|
68
|
+
}, 100);
|
69
|
+
return this;
|
70
|
+
}
|
71
|
+
};
|
72
|
+
|
73
|
+
$.fn.swipes = function(method) {
|
74
|
+
if (methods[method]) {
|
75
|
+
return methods[method].apply(this, Array.prototype.slice.call( arguments, 1 ));
|
76
|
+
} else if (typeof method === 'object' || !method) {
|
77
|
+
return methods.init.apply(this, arguments);
|
78
|
+
} else {
|
79
|
+
$.error( 'Method ' + method + ' does not exist on jQuery.swipes' );
|
80
|
+
}
|
81
|
+
};
|
82
|
+
|
83
|
+
})(jQuery);
|
data/lib/kolo/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kolo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-03-
|
12
|
+
date: 2013-03-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -66,6 +66,7 @@ files:
|
|
66
66
|
- lib/assets/javascripts/bootstrap.min.js
|
67
67
|
- lib/assets/javascripts/data-access.js.coffee
|
68
68
|
- lib/assets/javascripts/jquery.hammer.js
|
69
|
+
- lib/assets/javascripts/jquery.swipes.js
|
69
70
|
- lib/assets/javascripts/jquery.transit.min.js
|
70
71
|
- lib/assets/javascripts/knockout.js
|
71
72
|
- lib/assets/javascripts/knockout.mapping.js
|
@@ -90,7 +91,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
90
91
|
version: '0'
|
91
92
|
segments:
|
92
93
|
- 0
|
93
|
-
hash: -
|
94
|
+
hash: -141240671
|
94
95
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
95
96
|
none: false
|
96
97
|
requirements:
|
@@ -99,7 +100,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
99
100
|
version: '0'
|
100
101
|
segments:
|
101
102
|
- 0
|
102
|
-
hash: -
|
103
|
+
hash: -141240671
|
103
104
|
requirements: []
|
104
105
|
rubyforge_project:
|
105
106
|
rubygems_version: 1.8.24
|