binfinity-rails 0.0.2 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/README.md +8 -6
- data/binfinity-rails.gemspec +1 -1
- data/vendor/assets/javascripts/binfinity.js +3 -25
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZDIyNzU2YWQzMzRhYmFiZGY0NGNiOGZiNTM0ZDEwZjUxNjc3N2QxYQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZWNkMGQzYjFiMTVhMTI0MjdiY2E3MjVkNDg4NmRjMWFkOTZhMzExYQ==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NzA3MzYxOTdjOTNkMGM2Y2Q5ODA1ZjM2YWVkMTE3ZjE4MWQ5NTRmOTBlMDU1
|
10
|
+
MDc4NzAyZjk5MDJmNTVjOWZjYmMzZDcyZWE2OTY2YmY5ZDI4NzBjY2I1MzA3
|
11
|
+
MTEzMjQ0OGU4NjY2NzBhYTYyZjhjZDFjMmZiNWM1ODNmZWZhMDk=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MzIwYjc1OGZjMmY0ZThiMzE4ZmUzMjg4Yzg4N2YwODllNWNjNzYxNjc3MDA5
|
14
|
+
ZTViNTU0OWVhZTVkZjk1ODJlZDI5ZjY5ODUyYjIzNDc1MTRiOWRhMGI0MDdh
|
15
|
+
MWZlN2FmY2ZlZDEzOTI5YTc1Mzg2ZDAyZjU0OTg3NzlmZDBjMDg=
|
data/README.md
CHANGED
@@ -3,7 +3,7 @@ Binfinity Scroll Gem
|
|
3
3
|
|
4
4
|
### Installation
|
5
5
|
|
6
|
-
In your Gemfile
|
6
|
+
In your Gemfile:
|
7
7
|
|
8
8
|
`gem "binfinity-rais"`
|
9
9
|
|
@@ -32,14 +32,16 @@ $(function(){
|
|
32
32
|
```
|
33
33
|
|
34
34
|
### Contributing
|
35
|
-
>
|
35
|
+
> This project originated as one of twelve 1-day projects of [12 appy days](12days.github.io).
|
36
|
+
>
|
37
|
+
> Please feel free to fork and contribute:
|
36
38
|
|
37
39
|
1. Fork the repo
|
38
|
-
2. Clone the fork
|
40
|
+
2. Clone the fork $`git clone`
|
39
41
|
3. Create a feature branch `git checkout -b YOUR_BRANCH_NAME`
|
40
|
-
4. Commit
|
42
|
+
4. Commit & push
|
41
43
|
5. Create a pull request
|
42
44
|
|
43
45
|
### Authors
|
44
|
-
* Joshua Wilborn
|
45
|
-
* David Kim
|
46
|
+
* Joshua Wilborn <JoshuaJWilborn@gmail.com>
|
47
|
+
* David Kim <daviddarden11@gmail.com>
|
data/binfinity-rails.gemspec
CHANGED
@@ -1,21 +1,8 @@
|
|
1
1
|
$(function(){
|
2
2
|
scroller = {
|
3
3
|
initialize : function(callback, options) {
|
4
|
-
|
5
|
-
|
6
|
-
scroller.upscroll = true;
|
7
|
-
scroller.upCallback = options.upwardScroll;
|
8
|
-
} else {
|
9
|
-
scroller.upscroll = false;
|
10
|
-
};
|
11
|
-
if (options.cushion) {
|
12
|
-
scroller.cushion = options.cushion;
|
13
|
-
} else {
|
14
|
-
scroller.cushion = 50;
|
15
|
-
}
|
16
|
-
} else {
|
17
|
-
scroller.cushion = 50;
|
18
|
-
};
|
4
|
+
scroller.upCallback = options.upwardScroll;
|
5
|
+
scroller.cushion = options.cushion || 50
|
19
6
|
scroller.downCallback = callback;
|
20
7
|
scroller.start();
|
21
8
|
},
|
@@ -25,7 +12,7 @@ $(function(){
|
|
25
12
|
window.onscroll = scroller.iscroll;
|
26
13
|
},
|
27
14
|
iscroll : function() {
|
28
|
-
if (scroller.
|
15
|
+
if (scroller.upCallback) {
|
29
16
|
if (window.pageYOffset < 0) {
|
30
17
|
scroller.upCallback();
|
31
18
|
}
|
@@ -36,13 +23,4 @@ $(function(){
|
|
36
23
|
}
|
37
24
|
}
|
38
25
|
}
|
39
|
-
var scroll_func = function() {
|
40
|
-
add_div();
|
41
|
-
}
|
42
|
-
|
43
|
-
// you can add your own callbacks
|
44
|
-
var add_div = function() { $('body').append('<div>this is more stuff</div>'); };
|
45
|
-
var prepend_func = function() { $($('body').children()[0]).prepend($('<div>PREPEND TEH DATA</div> '))};
|
46
|
-
|
47
|
-
scroller.initialize(scroll_func, {upwardScroll: prepend_func })
|
48
26
|
});
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: binfinity-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joshua Wilborn
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-10-
|
12
|
+
date: 2013-10-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: railties
|