bcms_slideshow 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,107 @@
1
+ /*
2
+ * jQuery Easing v1.1.1 - http://gsgd.co.uk/sandbox/jquery.easing.php
3
+ *
4
+ * Uses the built in easing capabilities added in jQuery 1.1
5
+ * to offer multiple easing options
6
+ *
7
+ * Copyright (c) 2007 George Smith
8
+ * Licensed under the MIT License:
9
+ * http://www.opensource.org/licenses/mit-license.php
10
+ */
11
+
12
+ jQuery.extend({
13
+ easing: {
14
+ easein: function(x, t, b, c, d) {
15
+ return c*(t/=d)*t + b; // in
16
+ },
17
+ easeinout: function(x, t, b, c, d) {
18
+ if (t < d/2) return 2*c*t*t/(d*d) + b;
19
+ var ts = t - d/2;
20
+ return -2*c*ts*ts/(d*d) + 2*c*ts/d + c/2 + b;
21
+ },
22
+ easeout: function(x, t, b, c, d) {
23
+ return -c*t*t/(d*d) + 2*c*t/d + b;
24
+ },
25
+ expoin: function(x, t, b, c, d) {
26
+ var flip = 1;
27
+ if (c < 0) {
28
+ flip *= -1;
29
+ c *= -1;
30
+ }
31
+ return flip * (Math.exp(Math.log(c)/d * t)) + b;
32
+ },
33
+ expoout: function(x, t, b, c, d) {
34
+ var flip = 1;
35
+ if (c < 0) {
36
+ flip *= -1;
37
+ c *= -1;
38
+ }
39
+ return flip * (-Math.exp(-Math.log(c)/d * (t-d)) + c + 1) + b;
40
+ },
41
+ expoinout: function(x, t, b, c, d) {
42
+ var flip = 1;
43
+ if (c < 0) {
44
+ flip *= -1;
45
+ c *= -1;
46
+ }
47
+ if (t < d/2) return flip * (Math.exp(Math.log(c/2)/(d/2) * t)) + b;
48
+ return flip * (-Math.exp(-2*Math.log(c/2)/d * (t-d)) + c + 1) + b;
49
+ },
50
+ bouncein: function(x, t, b, c, d) {
51
+ return c - jQuery.easing['bounceout'](x, d-t, 0, c, d) + b;
52
+ },
53
+ bounceout: function(x, t, b, c, d) {
54
+ if ((t/=d) < (1/2.75)) {
55
+ return c*(7.5625*t*t) + b;
56
+ } else if (t < (2/2.75)) {
57
+ return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b;
58
+ } else if (t < (2.5/2.75)) {
59
+ return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b;
60
+ } else {
61
+ return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b;
62
+ }
63
+ },
64
+ bounceinout: function(x, t, b, c, d) {
65
+ if (t < d/2) return jQuery.easing['bouncein'] (x, t*2, 0, c, d) * .5 + b;
66
+ return jQuery.easing['bounceout'] (x, t*2-d,0, c, d) * .5 + c*.5 + b;
67
+ },
68
+ elasin: function(x, t, b, c, d) {
69
+ var s=1.70158;var p=0;var a=c;
70
+ if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3;
71
+ if (a < Math.abs(c)) { a=c; var s=p/4; }
72
+ else var s = p/(2*Math.PI) * Math.asin (c/a);
73
+ return -(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;
74
+ },
75
+ elasout: function(x, t, b, c, d) {
76
+ var s=1.70158;var p=0;var a=c;
77
+ if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3;
78
+ if (a < Math.abs(c)) { a=c; var s=p/4; }
79
+ else var s = p/(2*Math.PI) * Math.asin (c/a);
80
+ return a*Math.pow(2,-10*t) * Math.sin( (t*d-s)*(2*Math.PI)/p ) + c + b;
81
+ },
82
+ elasinout: function(x, t, b, c, d) {
83
+ var s=1.70158;var p=0;var a=c;
84
+ if (t==0) return b; if ((t/=d/2)==2) return b+c; if (!p) p=d*(.3*1.5);
85
+ if (a < Math.abs(c)) { a=c; var s=p/4; }
86
+ else var s = p/(2*Math.PI) * Math.asin (c/a);
87
+ if (t < 1) return -.5*(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;
88
+ return a*Math.pow(2,-10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )*.5 + c + b;
89
+ },
90
+ backin: function(x, t, b, c, d) {
91
+ var s=1.70158;
92
+ return c*(t/=d)*t*((s+1)*t - s) + b;
93
+ },
94
+ backout: function(x, t, b, c, d) {
95
+ var s=1.70158;
96
+ return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b;
97
+ },
98
+ backinout: function(x, t, b, c, d) {
99
+ var s=1.70158;
100
+ if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b;
101
+ return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b;
102
+ },
103
+ linear: function(x, t, b, c, d) {
104
+ return c*t/d + b; //linear
105
+ }
106
+ }
107
+ });
@@ -0,0 +1,3 @@
1
+ .tagged-slideshow .slideshow-image{
2
+ background: center center no-repeat;
3
+ }
@@ -0,0 +1,4 @@
1
+ gem_root = File.expand_path(File.join(File.dirname(__FILE__), ".."))
2
+ Cms.add_to_rails_paths gem_root
3
+ Cms.add_generator_paths gem_root, "db/migrate/[0-9]*_*.rb"
4
+ Cms.add_generator_paths gem_root, "public/bcms/slideshow/**/*"
metadata ADDED
@@ -0,0 +1,98 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: bcms_slideshow
3
+ version: !ruby/object:Gem::Version
4
+ hash: 23
5
+ prerelease: false
6
+ segments:
7
+ - 1
8
+ - 0
9
+ - 0
10
+ version: 1.0.0
11
+ platform: ruby
12
+ authors:
13
+ - Dan Collis-Puro
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2011-02-06 00:00:00 -05:00
19
+ default_executable:
20
+ dependencies:
21
+ - !ruby/object:Gem::Dependency
22
+ name: bcms_thumbnail
23
+ prerelease: false
24
+ requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ hash: 29
30
+ segments:
31
+ - 1
32
+ - 0
33
+ - 5
34
+ version: 1.0.5
35
+ type: :runtime
36
+ version_requirements: *id001
37
+ description:
38
+ email: dan@collispuro.com
39
+ executables: []
40
+
41
+ extensions: []
42
+
43
+ extra_rdoc_files:
44
+ - README.textile
45
+ files:
46
+ - app/views/cms/tagged_image_slideshows/_form.html.erb
47
+ - app/views/cms/tagged_image_slideshows/render.html.erb
48
+ - app/views/layouts/templates/default.html.erb
49
+ - app/models/tagged_image_slideshow.rb
50
+ - app/helpers/application_helper.rb
51
+ - app/controllers/cms/tagged_image_slideshows_controller.rb
52
+ - app/controllers/application_controller.rb
53
+ - db/migrate/20110206184241_create_tagged_image_slideshows.rb
54
+ - lib/bcms_slideshow.rb
55
+ - lib/bcms_slideshow/routes.rb
56
+ - rails/init.rb
57
+ - public/bcms/slideshow/README
58
+ - public/bcms/slideshow/jquery.cycle.all.latest.js
59
+ - public/bcms/slideshow/tagged_slideshow.css
60
+ - public/bcms/slideshow/jquery.easing.1.1.1.js
61
+ - public/bcms/slideshow/jquery-1.5.min.js
62
+ - README.textile
63
+ has_rdoc: true
64
+ homepage: http://www.collispuro.com
65
+ licenses: []
66
+
67
+ post_install_message:
68
+ rdoc_options: []
69
+
70
+ require_paths:
71
+ - lib
72
+ required_ruby_version: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ">="
76
+ - !ruby/object:Gem::Version
77
+ hash: 3
78
+ segments:
79
+ - 0
80
+ version: "0"
81
+ required_rubygems_version: !ruby/object:Gem::Requirement
82
+ none: false
83
+ requirements:
84
+ - - ">="
85
+ - !ruby/object:Gem::Version
86
+ hash: 3
87
+ segments:
88
+ - 0
89
+ version: "0"
90
+ requirements: []
91
+
92
+ rubyforge_project: bcms_slideshow
93
+ rubygems_version: 1.3.7
94
+ signing_key:
95
+ specification_version: 3
96
+ summary: A Slideshow Module for BrowserCMS
97
+ test_files: []
98
+