smooth_rails 0.0.11

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,8 @@
1
+ $(document).ready(function() {
2
+ $("#makeMeScrollable").smoothDivScroll({
3
+ mousewheelScrolling: false //,
4
+ // manualContinuousScrolling: true//,
5
+ // visibleHotSpotBackgrounds: "always",
6
+ // autoScrollingMode: "onstart"
7
+ });
8
+ });
@@ -0,0 +1,4 @@
1
+ //= require smooth/jquery-ui-1.8.18.custom.min.js
2
+ //= require smooth/jquery.mousewheel.min.js
3
+ //= require smooth/jquery.smoothDivScroll-1.2.js
4
+ //= require smooth/smooth.init.js
@@ -0,0 +1,78 @@
1
+ /* You can alter this CSS in order to give Smooth Div Scroll your own look'n'feel */
2
+
3
+ /* Invisible left hotspot */
4
+ div.scrollingHotSpotLeft
5
+ {
6
+ /* The hotspots have a minimum width of 100 pixels and if there is room the will grow
7
+ and occupy 15% of the scrollable area (30% combined). Adjust it to your own taste. */
8
+ min-width: 75px;
9
+ width: 10%;
10
+ height: 100%;
11
+ /* There is a big background image and it's used to solve some problems I experienced
12
+ in Internet Explorer 6. */
13
+ background-image: url(/assets/smooth/big_transparent.gif);
14
+ background-repeat: repeat;
15
+ background-position: center center;
16
+ position: absolute;
17
+ z-index: 200;
18
+ left: 0;
19
+ /* The first url is for Firefox and other browsers, the second is for Internet Explorer */
20
+ cursor: url(/assets/smooth/cursors/cursor_arrow_left.png), url(/assets/smooth/cursors/cursor_arrow_left.cur),w-resize;
21
+ }
22
+
23
+ /* Visible left hotspot */
24
+ div.scrollingHotSpotLeftVisible
25
+ {
26
+ background-image: url(/assets/smooth/arrow_left.gif);
27
+ background-color: #fff;
28
+ background-repeat: no-repeat;
29
+ opacity: 0.35; /* Standard CSS3 opacity setting */
30
+ -moz-opacity: 0.35; /* Opacity for really old versions of Mozilla Firefox (0.9 or older) */
31
+ filter: alpha(opacity = 35); /* Opacity for Internet Explorer. */
32
+ zoom: 1; /* Trigger "hasLayout" in Internet Explorer 6 or older versions */
33
+ }
34
+
35
+ /* Invisible right hotspot */
36
+ div.scrollingHotSpotRight
37
+ {
38
+ min-width: 75px;
39
+ width: 10%;
40
+ height: 100%;
41
+ background-image: url(/assets/smooth/big_transparent.gif);
42
+ background-repeat: repeat;
43
+ background-position: center center;
44
+ position: absolute;
45
+ z-index: 200;
46
+ right: 0;
47
+ cursor: url(/assets/smooth/cursors/cursor_arrow_right.png), url(/assets/smooth/cursors/cursor_arrow_right.cur),e-resize;
48
+ }
49
+
50
+ /* Visible right hotspot */
51
+ div.scrollingHotSpotRightVisible
52
+ {
53
+ background-image: url(/assets/smooth/arrow_right.gif);
54
+ background-color: #fff;
55
+ background-repeat: no-repeat;
56
+ opacity: 0.35;
57
+ filter: alpha(opacity = 35);
58
+ -moz-opacity: 0.35;
59
+ zoom: 1;
60
+ }
61
+
62
+ /* The scroll wrapper is always the same width and height as the containing element (div).
63
+ Overflow is hidden because you don't want to show all of the scrollable area.
64
+ */
65
+ div.scrollWrapper
66
+ {
67
+ position: relative;
68
+ overflow: hidden;
69
+ width: 100%;
70
+ height: 100%;
71
+ }
72
+
73
+ div.scrollableArea
74
+ {
75
+ position: relative;
76
+ width: auto;
77
+ height: 100%;
78
+ }
@@ -0,0 +1,3 @@
1
+ /*
2
+ *= require smooth/smoothDivScroll.css
3
+ */
metadata ADDED
@@ -0,0 +1,72 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: smooth_rails
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.11
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Андрей [ws70]
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2013-04-18 00:00:00.000000000 Z
13
+ dependencies: []
14
+ description: Jquery slider for Rails app with assets
15
+ email:
16
+ - railscode@gmail.com
17
+ executables: []
18
+ extensions: []
19
+ extra_rdoc_files: []
20
+ files:
21
+ - .gitignore
22
+ - Gemfile
23
+ - LICENSE.txt
24
+ - README.md
25
+ - Rakefile
26
+ - lib/smooth_rails.rb
27
+ - lib/smooth_rails/engine.rb
28
+ - lib/smooth_rails/version.rb
29
+ - smooth_rails.gemspec
30
+ - vendor/assets/images/smooth/arrow_left.gif
31
+ - vendor/assets/images/smooth/arrow_left.png
32
+ - vendor/assets/images/smooth/arrow_right.gif
33
+ - vendor/assets/images/smooth/arrow_right.png
34
+ - vendor/assets/images/smooth/big_transparent.gif
35
+ - vendor/assets/images/smooth/cursors/cursor_arrow_left.cur
36
+ - vendor/assets/images/smooth/cursors/cursor_arrow_left.gif
37
+ - vendor/assets/images/smooth/cursors/cursor_arrow_left.png
38
+ - vendor/assets/images/smooth/cursors/cursor_arrow_right.cur
39
+ - vendor/assets/images/smooth/cursors/cursor_arrow_right.gif
40
+ - vendor/assets/images/smooth/cursors/cursor_arrow_right.png
41
+ - vendor/assets/javascripts/smooth.js
42
+ - vendor/assets/javascripts/smooth/jquery-ui-1.8.18.custom.min.js
43
+ - vendor/assets/javascripts/smooth/jquery.mousewheel.min.js
44
+ - vendor/assets/javascripts/smooth/jquery.smoothDivScroll-1.2.js
45
+ - vendor/assets/javascripts/smooth/smooth.init.js
46
+ - vendor/assets/stylesheets/smooth.css
47
+ - vendor/assets/stylesheets/smooth/smoothDivScroll.css
48
+ homepage: https://github.com/vav/smooth_rails
49
+ licenses: []
50
+ post_install_message:
51
+ rdoc_options: []
52
+ require_paths:
53
+ - lib
54
+ required_ruby_version: !ruby/object:Gem::Requirement
55
+ none: false
56
+ requirements:
57
+ - - ! '>='
58
+ - !ruby/object:Gem::Version
59
+ version: '0'
60
+ required_rubygems_version: !ruby/object:Gem::Requirement
61
+ none: false
62
+ requirements:
63
+ - - ! '>='
64
+ - !ruby/object:Gem::Version
65
+ version: '0'
66
+ requirements: []
67
+ rubyforge_project:
68
+ rubygems_version: 1.8.23
69
+ signing_key:
70
+ specification_version: 3
71
+ summary: Jquery slider for Rails app with assets
72
+ test_files: []