spree_slider 1.1.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (80) hide show
  1. data/.gitignore +2 -1
  2. data/Gemfile +13 -6
  3. data/Versionfile +1 -9
  4. data/app/models/spree/slide.rb +1 -1
  5. data/app/overrides/spree/admin/configurations/index/add_slides_to_admin_configurations_menu.html.erb.deface +5 -0
  6. data/app/overrides/spree/admin/shared/_configuration_menu/add_slides_to_admin_configurations_sidebar_menu.html.erb.deface +2 -0
  7. data/app/overrides/spree/home/index/add_slider.html.erb.deface +4 -0
  8. data/app/overrides/spree/layouts/spree_application/add_slider.html.erb.deface +2 -0
  9. data/app/views/spree/admin/slides/_form.html.erb +4 -1
  10. data/app/views/spree/admin/slides/index.html.erb +2 -0
  11. data/app/views/spree/admin/slides/show.html.erb +6 -0
  12. data/config/locales/de.yml +3 -0
  13. data/config/locales/en.yml +2 -4
  14. data/config/locales/es.yml +3 -0
  15. data/config/locales/nl-NL.yml +3 -0
  16. data/config/locales/nl.yml +3 -0
  17. data/db/migrate/20120816192758_add_position_to_slides.rb +5 -0
  18. data/lib/generators/spree_slider/install_simple_carousel_generator.rb +30 -0
  19. data/lib/generators/spree_slider/templates/anything_slider.html.erb +1 -1
  20. data/lib/generators/spree_slider/templates/nivo_slider.html.erb +2 -2
  21. data/lib/generators/spree_slider/templates/simple_carousel_slider.html.erb +15 -0
  22. data/lib/spree_slider/engine.rb +2 -3
  23. data/spec/spec_helper.rb +12 -23
  24. data/spree_slider.gemspec +2 -8
  25. data/vendor/assets/simple-carousel/readme.txt +6 -0
  26. data/vendor/assets/simple-carousel/simple.carousel.js +144 -0
  27. data/vendor/assets/simple-carousel/simple.carousel.slider.js +14 -0
  28. metadata +18 -88
  29. data/Gemfile.lock +0 -175
  30. data/app/overrides/add_slider_to_layout.rb +0 -8
  31. data/app/overrides/add_slides_to_admin_configurations_menu.rb +0 -9
  32. data/app/overrides/add_slides_to_admin_configurations_sidebar_menu.rb +0 -7
  33. data/app/views/spree/home/index.html.erb +0 -14
  34. data/vendor/assets/anything-slider/demos.html +0 -740
  35. data/vendor/assets/anything-slider/demos/colorbox/border.png +0 -0
  36. data/vendor/assets/anything-slider/demos/colorbox/colorbox.css +0 -62
  37. data/vendor/assets/anything-slider/demos/colorbox/controls.png +0 -0
  38. data/vendor/assets/anything-slider/demos/colorbox/internet_explorer/borderBottomCenter.png +0 -0
  39. data/vendor/assets/anything-slider/demos/colorbox/internet_explorer/borderBottomLeft.png +0 -0
  40. data/vendor/assets/anything-slider/demos/colorbox/internet_explorer/borderBottomRight.png +0 -0
  41. data/vendor/assets/anything-slider/demos/colorbox/internet_explorer/borderMiddleLeft.png +0 -0
  42. data/vendor/assets/anything-slider/demos/colorbox/internet_explorer/borderMiddleRight.png +0 -0
  43. data/vendor/assets/anything-slider/demos/colorbox/internet_explorer/borderTopCenter.png +0 -0
  44. data/vendor/assets/anything-slider/demos/colorbox/internet_explorer/borderTopLeft.png +0 -0
  45. data/vendor/assets/anything-slider/demos/colorbox/internet_explorer/borderTopRight.png +0 -0
  46. data/vendor/assets/anything-slider/demos/colorbox/jquery.colorbox-min.js +0 -4
  47. data/vendor/assets/anything-slider/demos/colorbox/jquery.colorbox.js +0 -769
  48. data/vendor/assets/anything-slider/demos/colorbox/loading.gif +0 -0
  49. data/vendor/assets/anything-slider/demos/colorbox/loading_background.png +0 -0
  50. data/vendor/assets/anything-slider/demos/colorbox/overlay.png +0 -0
  51. data/vendor/assets/anything-slider/demos/css/page.css +0 -148
  52. data/vendor/assets/anything-slider/demos/images/251356.jpg +0 -0
  53. data/vendor/assets/anything-slider/demos/images/apple-touch-icon.png +0 -0
  54. data/vendor/assets/anything-slider/demos/images/favicon.ico +0 -0
  55. data/vendor/assets/anything-slider/demos/images/slide-civil-1.jpg +0 -0
  56. data/vendor/assets/anything-slider/demos/images/slide-civil-2.jpg +0 -0
  57. data/vendor/assets/anything-slider/demos/images/slide-env-1.jpg +0 -0
  58. data/vendor/assets/anything-slider/demos/images/slide-env-2.jpg +0 -0
  59. data/vendor/assets/anything-slider/demos/images/slide-tele-1.jpg +0 -0
  60. data/vendor/assets/anything-slider/demos/images/slide-tele-2.jpg +0 -0
  61. data/vendor/assets/anything-slider/demos/images/th-slide-civil-1.jpg +0 -0
  62. data/vendor/assets/anything-slider/demos/images/th-slide-civil-2.jpg +0 -0
  63. data/vendor/assets/anything-slider/demos/images/th-slide-env-1.jpg +0 -0
  64. data/vendor/assets/anything-slider/demos/images/th-slide-env-2.jpg +0 -0
  65. data/vendor/assets/anything-slider/demos/js/demo.js +0 -132
  66. data/vendor/assets/anything-slider/demos/video/movie.mp4 +0 -0
  67. data/vendor/assets/anything-slider/demos/video/movie.ogg +0 -0
  68. data/vendor/assets/anything-slider/demos/video/movie.webm +0 -0
  69. data/vendor/assets/anything-slider/expand.html +0 -97
  70. data/vendor/assets/anything-slider/index.html +0 -470
  71. data/vendor/assets/anything-slider/simple.html +0 -79
  72. data/vendor/assets/anything-slider/video.html +0 -341
  73. data/vendor/assets/nivo-slider/demo/demo.html +0 -39
  74. data/vendor/assets/nivo-slider/demo/images/dev7logo.png +0 -0
  75. data/vendor/assets/nivo-slider/demo/images/nemo.jpg +0 -0
  76. data/vendor/assets/nivo-slider/demo/images/toystory.jpg +0 -0
  77. data/vendor/assets/nivo-slider/demo/images/up.jpg +0 -0
  78. data/vendor/assets/nivo-slider/demo/images/walle.jpg +0 -0
  79. data/vendor/assets/nivo-slider/demo/scripts/jquery-1.6.1.min.js +0 -18
  80. data/vendor/assets/nivo-slider/demo/style.css +0 -100
@@ -1,148 +0,0 @@
1
- /********************
2
- Overall Demo pages
3
- ********************/
4
- body { font: 12px Georgia, Serif; background: #fff; color: #000; }
5
- a, a img { border: 0; text-decoration: none; }
6
-
7
- #page-wrap, #demo2 { width: 90%; padding: 0 15px; margin: 0 auto 50px; position: relative; }
8
-
9
- h1 { font: bold 60px Helvetica, Sans-Serif; letter-spacing: -2px; margin: 20px 0; text-align: center; }
10
- h2 { font: bold 30px Helvetica, Sans-Serif; letter-spacing: -1px; margin: 0 0 10px 0; color: #002266; }
11
- h2.title { text-align: center; }
12
- h3 { font: bold 20px Georgia, Serif; margin: 0 0 10px 0; color: #003388; }
13
- h5, .header { font: bold 15px Georgia, Serif; text-align: center; }
14
- pre, code { font: 13px/1.8 Monaco, MonoSpace; margin: 0 0 15px 0; padding: 5px; background: #f5f5f5; block: inline; width: 100%; overflow-x: auto; }
15
- blockquote { margin-left: 30px; }
16
-
17
- ul { margin: 0; padding-left: 35px; }
18
- ul li { font: 15px Georgia, Serif; margin: 0 0 8px 0; }
19
-
20
- #nav { display: block; width: auto; margin: 10px auto; text-align: center; white-space: nowrap; line-height: 3em; }
21
- #nav a { text-align: center; background: black; color: white; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; padding: 10px; }
22
- #nav a.git { background: #006; }
23
- #nav a.play { background: #060; }
24
- #nav a.issue { background: #600; }
25
- #nav a:hover, #nav a.current { background: #666; }
26
-
27
- .themeselector { margin: 0 auto; text-align: center; }
28
-
29
- #status { color: #00a; font-weight: bold; }
30
- .alert { color: #f00; font-weight: bold; }
31
- .alert a, .attention { color: #a00; }
32
- .data { width: 100%; border: #555 1px solid; border-collapse: collapse; }
33
- .data td, .data th { border: #555 1px solid; padding: 0 5px; }
34
- .data th { background: #eee; }
35
- .data .col { width: 200px; }
36
-
37
- /*****************
38
- Main demo page
39
- *****************/
40
- #main #slider1 { width: 800px; height: 390px; list-style: none; }
41
- #main #slider2 { width: 800px; height: 390px; list-style: none; }
42
-
43
- /* Set slider1 panel 5 stuff - adding padding directly to the panel will
44
- shift panels after it, so we need a wrapper */
45
- #main #slider1 .panel5 ul { width: 200px; margin: 0 5px; }
46
-
47
- /* Set slider2 panel sizes, Main & FX demo pages */
48
- #slider2 .panel1 { width: 500px; height: 350px; }
49
- #slider2 .panel2 { width: 450px; height: 420px; }
50
- #slider2 .panel3 { width: 680px; height: 317px; }
51
- #slider2 .panel4 { width: 100%; } /* With no specific size, it defaults to wrapper size; except in IE7, it needs a width defined, so set to 100% */
52
- #slider2 .panel5 { width: 680px; height: 317px; }
53
- #slider2 .panel6 { width: 450px; height: 300px; }
54
-
55
- /* For Specific Slides, these also apply to FX demo pages */
56
- .textSlide { padding: 10px 30px; }
57
- .textSlide h3 { font: 20px Georgia, Serif; }
58
- .textSlide h4 { text-transform: uppercase; font: 15px Georgia, Serif; margin: 10px 0; }
59
- .textSlide ul { list-style: disc; margin: 0; padding-left: 20px; }
60
- .textSlide ul li { display: list-item; }
61
- .rightside { float: right; margin: 0 0 2px 10px; }
62
-
63
- .quoteSlide { padding: 20px; }
64
- .quoteSlide blockquote { font: italic 24px/1.5 Georgia, Serif; text-align: center; color: #444; margin: 0 0 10px 0; }
65
- .quoteSlide p { text-align: center; }
66
-
67
- /***************************
68
- FX Demo Page
69
- ***************************/
70
- /* Demo page accordions */
71
- .accordion { width: 70%; margin: 0 auto; }
72
- .accordion .ui-widget-content a { color: #004499; }
73
-
74
- /** Demo 1 **/
75
- /* colorbox images to full size */
76
- #demo2 #slider1 { width: 400px; height: 300px; list-style: none; }
77
- #cboxPhoto { width: 100%; height: 100%; margin: 0 !important; }
78
- #cboxTitle { color: #000 !important; }
79
-
80
- /* Change metallic slider defaults to show thumbnails -
81
- using #demo2 (page wrapper) to increase this CSS priority */
82
- #demo2 div.anythingSlider-metallic .thumbNav a { background-image: url(); height: 30px; width: 30px; border: #000 1px solid; border-radius: 2px; -moz-border-radius: 2px; -webkit-border-radius: 2px; }
83
- #demo2 div.anythingSlider-metallic .thumbNav a span { text-indent: 0; }
84
-
85
- /* border around image to show current page */
86
- #demo2 div.anythingSlider-metallic .thumbNav a:hover,
87
- #demo2 div.anythingSlider-metallic .thumbNav a.cur { border-color: #fff; }
88
- /* reposition the start/stop button */
89
- #demo2 div.anythingSlider-metallic .start-stop { margin-top: 15px; }
90
-
91
- /** Demo 2 **/
92
- #demo2 #slider2 { width: 600px; height: 350px; list-style: none; }
93
-
94
- /** Demo 3 **/
95
- #demo2 #slider3 { width: 500px; height: 400px; list-style: none; }
96
-
97
- /* expand image */
98
- #slider3 img { width: 100%; height: 100%; position: relative; }
99
- #slider3 .panel { position: relative; }
100
-
101
- /* position caption close button */
102
- .caption-top .close,
103
- .caption-right .close,
104
- .caption-bottom .close,
105
- .caption-left .close { font-size: 80%; cursor: pointer; float: right; display: inline-block; }
106
-
107
- /* captions */
108
- /* set to position: relative here in case javascript is disabled, script sets captions to position: absolute */
109
- #slider3 .caption-top,
110
- #slider3 .caption-right,
111
- #slider3 .caption-bottom,
112
- #slider3 .caption-left { background: #000; color: #fff; padding: 10px; margin: 0; position: relative; z-index: 10; opacity: .8; filter: alpha(opacity=80); }
113
-
114
- /* Top caption - padding is included in the width (480px here, 500px in the script), same for height */
115
- #slider3 .caption-top { left: 0; top: 0; width: 480px; height: 30px; }
116
-
117
- /* Right caption - padding is included in the width (130px here, 150px in the script), same for height */
118
- #slider3 .caption-right { right: 0; bottom: 0; width: 130px; height: 180px; }
119
-
120
- /* Bottom caption - padding is included in the width (480px here, 500px in the script), same for height */
121
- #slider3 .caption-bottom { left: 0; bottom: 0; width: 480px; height: 30px; }
122
-
123
- /* Left caption - padding is included in the width (130px here, 150px in the script), same for height */
124
- #slider3 .caption-left { left: 0; bottom: 0; width: 130px; height: 180px; }
125
-
126
- /******************
127
- Expand demo page
128
- ******************/
129
- #wrapper1 { width: 100%; height: 300px; margin: 0 auto; }
130
- #wrapper2 { width: 50%; height: 300px; margin: 0 auto; }
131
- #expand #slider1,
132
- #expand #slider2 { width: 100%; height: 300px; list-style: none; }
133
- body#expand h2,
134
- body#expand h3 { text-align: center; }
135
-
136
- /***************************
137
- Video Compatibility table
138
- ***************************/
139
- .video-info { width: 700px; margin: 0 auto; margin-top: 50px; font-size: 18px; }
140
- .video-info h2 { text-align: center; }
141
- .video-info ul,
142
- .video-info li { margin: 0; }
143
- .video-info sup { font-size: 12px; }
144
- .video-info th.header { width: 25px; }
145
- .good { background: #080; }
146
- .bad { background: #800; }
147
- .prob { background: #880; }
148
- .group { border: #000 1px solid; }
@@ -1,132 +0,0 @@
1
- $(function(){
2
-
3
- $('.accordion').accordion({
4
- autoHeight : false,
5
- collapsible : true,
6
- active : false // start compressed
7
- });
8
-
9
- $('#slider1')
10
- .anythingSlider({
11
- toggleControls : true,
12
- theme : 'metallic',
13
- navigationFormatter : function(i, panel){
14
- return '<img src="demos/images/th-slide-' + ['civil-1', 'env-1', 'civil-2', 'env-2'][i-1] + '.jpg">';
15
- }
16
- })
17
- .find('.panel:not(.cloned) img') // ignore the cloned panels
18
- .attr('rel','group') // add all slider images to a colorbox group
19
- .colorbox({
20
- width : '90%',
21
- height : '90%',
22
- href : function(){ return $(this).attr('src'); },
23
- title : function(){ return $(this).attr('title') },
24
- rel : 'group'
25
- });
26
-
27
- $('#slider2')
28
- .anythingSlider({
29
- resizeContents : false,
30
- navigationFormatter : function(i, panel){
31
- return ['Recipe', 'Quote', 'Image', 'Quote #2', 'Image #2', 'Test'][i - 1];
32
- }
33
- })
34
- .anythingSliderFx({
35
- // base FX definitions
36
- // '.selector' : [ 'effect(s)', 'distance/size', 'time', 'easing' ] - 'time' and 'easing' are optional parameters
37
- '.quoteSlide:first *' : [ 'grow', '24px', '400', 'easeInOutCirc' ],
38
- '.quoteSlide:last' : [ 'top', '500px', '400', 'easeOutElastic' ],
39
- '.expand' : [ 'expand', '10%', '400', 'easeOutBounce' ],
40
- '.textSlide h3' : [ 'top left', '200px', '500', 'easeOutCirc' ],
41
- '.textSlide img,.fade': [ 'fade' ],
42
- '.textSlide li' : [ 'listLR' ]
43
- /*
44
- // for more precise control, use the "in" and "out" definitions
45
- // in = the animation that occurs when you slide "in" to a panel
46
- ,inFx : {
47
- '.textSlide h3' : { opacity: 1, top : 0, duration: 400, easing : 'easeOutBounce' },
48
- '.textSlide li' : { opacity: 1, left : 0, duration: 400 },
49
- '.textSlide img' : { opacity: 1, duration: 400 },
50
- '.quoteSlide' : { top : 0, duration: 400, easing : 'easeOutElastic' },
51
- '.expand' : { width: '100%', top: '0%', left: '0%', duration: 400, easing : 'easeOutBounce' }
52
- },
53
- // out = the animation that occurs when you slide "out" of a panel
54
- // (it also occurs before the "in" animation) - outFx animation time is 1/2 of inFx time
55
- outFx : {
56
- '.textSlide h3' : { opacity: 0, top : '-100px', duration: 200 },
57
- '.textSlide li:odd' : { opacity: 0, left : '-200px', duration: 200 },
58
- '.textSlide li:even' : { opacity: 0, left : '200px', duration: 200 },
59
- '.textSlide img' : { opacity: 0, duration: 200 },
60
- '.quoteSlide:first' : { top : '-500px', duration: 200 },
61
- '.quoteSlide:last' : { top : '500px', duration: 200 },
62
- '.expand' : { width: '10%', top: '50%', left: '50%', duration: 200 },
63
- }
64
- */
65
- });
66
-
67
- $('#slider3')
68
- .anythingSlider({
69
- navigationFormatter : function(i, panel){
70
- return ['Top', 'Right', 'Bottom', 'Left'][i - 1];
71
- }
72
- })
73
- .anythingSliderFx({
74
- '.caption-top' : [ 'caption-Top', '50px' ],
75
- '.caption-right' : [ 'caption-Right', '130px', '1000', 'easeOutBounce' ],
76
- '.caption-bottom' : [ 'caption-Bottom', '50px' ],
77
- '.caption-left' : [ 'caption-Left', '130px', '1000', 'easeOutBounce' ]
78
- })
79
- /* use this code to have the caption slide in and out from the bottom with each panel
80
- .anythingSliderFx({
81
- inFx: {
82
- '.caption-top' : { top: 0, opacity: 0.8, duration: 400 },
83
- '.caption-right' : { right: 0, opacity: 0.8, duration: 1000, easing: 'easeOutBounce' },
84
- '.caption-bottom' : { bottom: 0, opacity: 0.8, duration: 400 },
85
- '.caption-left' : { left: 0, opacity: 0.8, duration: 1000, easing: 'easeOutBounce' }
86
- },
87
- outFx: {
88
- '.caption-top' : { top: -50, opacity: 0, duration: 200 },
89
- '.caption-right' : { right: -150, opacity: 0, duration: 500, easing: 'easeOutBounce' },
90
- '.caption-bottom' : { bottom: -50, opacity: 0, duration: 200 },
91
- '.caption-left' : { left: -150, opacity: 0, duration: 500, easing: 'easeOutBounce' }
92
- }
93
- })
94
- */
95
- // add a close button (x) to the caption
96
- .find('div[class*=caption]')
97
- .css({ position: 'absolute' })
98
- .prepend('<span class="close">x</span>')
99
- .find('.close').click(function(){
100
- var cap = $(this).parent(),
101
- ani = { bottom : -50 }; // bottom
102
- if (cap.is('.caption-top')) { ani = { top: -50 }; }
103
- if (cap.is('.caption-left')) { ani = { left: -150 }; }
104
- if (cap.is('.caption-right')) { ani = { right: -150 }; }
105
- cap.animate(ani, 400);
106
- });
107
-
108
- /* use this code if you only want the caption to appear when you hover over the panel
109
- .find('.panel')
110
- .find('div[class*=caption]').css({ position: 'absolute' }).end()
111
- .hover(function(){ showCaptions( $(this) ) }, function(){ hideCaptions( $(this) ); });
112
-
113
- showCaptions = function(el){
114
- var $this = el;
115
- if ($this.find('.caption-top').length) { $this.find('.caption-top').show().animate({ top: 0, opacity: 1 }, 400); }
116
- if ($this.find('.caption-right').length) { $this.find('.caption-right').show().animate({ right: 0, opacity: 1 }, 400); }
117
- if ($this.find('.caption-bottom').length) { $this.find('.caption-bottom').show().animate({ bottom: 0, opacity: 1 }, 400); }
118
- if ($this.find('.caption-left').length) { $this.find('.caption-left').show().animate({ left: 0, opacity: 1 }, 400); }
119
- };
120
- hideCaptions = function(el){
121
- var $this = el;
122
- if ($this.find('.caption-top').length) { $this.find('.caption-top').stop().animate({ top: -50, opacity: 0 }, 400); }
123
- if ($this.find('.caption-right').length) { $this.find('.caption-right').stop().animate({ right: -150, opacity: 0 }, 400); }
124
- if ($this.find('.caption-bottom').length) { $this.find('.caption-bottom').stop().animate({ bottom: -50, opacity: 0 }, 400); }
125
- if ($this.find('.caption-left').length) { $this.find('.caption-left').stop().animate({ left: -150, opacity: 0 }, 400); }
126
- };
127
-
128
- // hide all captions initially
129
- hideCaptions( $('#slider3 .panel') );
130
- */
131
-
132
- });
@@ -1,97 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
-
4
- <head>
5
- <meta charset="utf-8">
6
-
7
- <title>AnythingSlider Expanding Demo</title>
8
- <link rel="shortcut icon" href="demos/images/favicon.ico">
9
- <link rel="apple-touch-icon" href="demos/images/apple-touch-icon.png">
10
-
11
- <!-- jQuery (required) -->
12
- <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6/jquery.min.js"></script>
13
- <script>window.jQuery || document.write('<script src="js/jquery.min.js"><\/script>')</script>
14
-
15
- <!-- Demo stuff -->
16
- <link rel="stylesheet" href="demos/css/page.css">
17
-
18
- <!-- Anything Slider -->
19
- <link rel="stylesheet" href="css/anythingslider.css">
20
- <script src="js/jquery.anythingslider.js"></script>
21
- <script>
22
- $(function () {
23
- $('#slider1').anythingSlider({
24
- // theme : 'metallic',
25
- expand : true,
26
- autoPlay : true
27
- });
28
-
29
- $('#slider2').anythingSlider({
30
- expand : true,
31
- showMultiple : 2,
32
- changeBy : 2
33
- });
34
-
35
- });
36
- </script>
37
- <!-- Older IE stylesheet, to reposition navigation arrows, added AFTER the theme stylesheet -->
38
- <!--[if lte IE 7]>
39
- <link rel="stylesheet" href="css/anythingslider-ie.css" type="text/css" media="screen" />
40
- <![endif]-->
41
- </head>
42
-
43
- <body id="expand">
44
-
45
- <!-- Links to other demo pages & docs -->
46
- <div id="nav">
47
- <a href="index.html">Main Demo</a>
48
- <a href="simple.html">Simple Demo</a>
49
- <a class="current" href="expand.html">Expand Demo</a>
50
- <a href="video.html">Video Demo</a>
51
- <a href="demos.html">FX Demos</a>
52
- <a class="play" href="http://jsfiddle.net/Mottie/VM8XG/">Playground</a>
53
- <a class="git" href="https://github.com/ProLoser/AnythingSlider/wiki">Documentation</a>
54
- <a class="git" href="http://github.com/ProLoser/AnythingSlider/downloads">Download</a>
55
- <a class="issue" href="https://github.com/ProLoser/AnythingSlider/issues">Issues</a>
56
- </div>
57
- <!-- End Links -->
58
-
59
- <h1>Expanding Slider Demo*</h1>
60
- <h3>* Resize the browser window</h3>
61
- <br>
62
- <h2>Full page width</h2>
63
-
64
- <!-- Expanding AnythingSlider 100% width -->
65
-
66
- <div id="wrapper1">
67
- <ul id="slider1">
68
- <li><img src="demos/images/slide-civil-1.jpg" alt=""></li>
69
- <li><img src="demos/images/slide-env-1.jpg" alt=""></li>
70
- <li><img src="demos/images/slide-civil-2.jpg" alt=""></li>
71
- <li><img src="demos/images/slide-env-2.jpg" alt=""></li>
72
- </ul>
73
- </div>
74
-
75
- <!-- END AnythingSlider -->
76
-
77
- <br><br><br><br>
78
-
79
- <h2>Half page width with two images showing</h2>
80
- <!-- Expanding AnythingSlider 50% width -->
81
-
82
- <div id="wrapper2">
83
- <ul id="slider2">
84
- <li><img src="demos/images/slide-tele-1.jpg" alt=""></li>
85
- <li><img src="demos/images/slide-tele-2.jpg" alt=""></li>
86
- <li><img src="demos/images/slide-env-1.jpg" alt=""></li>
87
- <li><img src="demos/images/slide-env-2.jpg" alt=""></li>
88
- <li><img src="demos/images/slide-civil-1.jpg" alt=""></li>
89
- <li><img src="demos/images/slide-civil-2.jpg" alt=""></li>
90
- </ul>
91
- </div>
92
-
93
- <!-- END AnythingSlider -->
94
-
95
- </body>
96
-
97
- </html>
@@ -1,470 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
-
4
- <head>
5
- <meta charset="utf-8">
6
-
7
- <title>AnythingSlider</title>
8
- <link rel="shortcut icon" href="demos/images/favicon.ico">
9
- <link rel="apple-touch-icon" href="demos/images/apple-touch-icon.png">
10
-
11
- <!-- jQuery (required) -->
12
- <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6/jquery.min.js"></script>
13
- <script>window.jQuery || document.write('<script src="js/jquery.min.js"><\/script>')</script>
14
-
15
- <!-- Anything Slider optional plugins -->
16
- <script src="js/jquery.easing.1.2.js"></script>
17
- <!-- http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js -->
18
- <script src="js/swfobject.js"></script>
19
-
20
- <!-- Demo stuff -->
21
- <link rel="stylesheet" href="demos/css/page.css" media="screen">
22
-
23
- <!-- AnythingSlider -->
24
- <link rel="stylesheet" href="css/anythingslider.css">
25
- <script src="js/jquery.anythingslider.js"></script>
26
-
27
- <!-- AnythingSlider video extension; optional, but needed to control video pause/play -->
28
- <script src="js/jquery.anythingslider.video.js"></script>
29
-
30
- <!-- Ideally, add the stylesheet(s) you are going to use here,
31
- otherwise they are loaded and appended to the <head> automatically and will over-ride the IE stylesheet below -->
32
- <link rel="stylesheet" href="css/theme-metallic.css">
33
- <link rel="stylesheet" href="css/theme-minimalist-round.css">
34
- <link rel="stylesheet" href="css/theme-minimalist-square.css">
35
- <link rel="stylesheet" href="css/theme-construction.css">
36
- <link rel="stylesheet" href="css/theme-cs-portfolio.css">
37
-
38
- <!-- Older IE stylesheet, to reposition navigation arrows, added AFTER the theme stylesheet above -->
39
- <!--[if lte IE 7]>
40
- <link rel="stylesheet" href="css/anythingslider-ie.css" type="text/css" media="screen" />
41
- <![endif]-->
42
-
43
- <script>
44
- // Demo functions
45
- // **************
46
- $(function(){
47
-
48
- // External Link with callback function
49
- $("#slide-jump").click(function(){
50
- $('#slider2').anythingSlider(4, function(slider){ /* alert('Now on page ' + slider.currentPage); */ });
51
- return false;
52
- });
53
-
54
- // External Link
55
- $("a.muppet").click(function(){
56
- $('#slider1').anythingSlider(5);
57
- $(document).scrollTop(0); // make the page scroll to the top so you can watch the video
58
- return false;
59
- });
60
-
61
- // Report Events to console & features list
62
- $('#slider1, #slider2').bind('before_initialize initialized swf_completed slideshow_start slideshow_stop slideshow_paused slideshow_unpaused slide_init slide_begin slide_complete', function(e, slider){
63
- // show object ID + event (e.g. "slider1: slide_begin")
64
- var txt = slider.$el[0].id + ': ' + e.type + ', now on panel #' + slider.currentPage;
65
- $('#status').text(txt);
66
- if (window.console && window.console.firebug){ console.debug(txt); } // added window.console.firebug to make this work in Opera
67
- });
68
-
69
- // Theme Selector (This is really for demo purposes only)
70
- var themes = ['minimalist-round','minimalist-square','metallic','construction','cs-portfolio'];
71
- $('#currentTheme').change(function(){
72
- var theme = $(this).val();
73
- $('#slider1').closest('div.anythingSlider')
74
- .removeClass( $.map(themes, function(t){ return 'anythingSlider-' + t; }).join(' ') )
75
- .addClass('anythingSlider-' + theme);
76
- $('#slider1').anythingSlider(); // update slider - needed to fix navigation tabs
77
- });
78
-
79
- // Add a slide
80
- var imageNumber = 1;
81
- $('button.add').click(function(){
82
- $('#slider1')
83
- .append('<li><img src="demos/images/slide-tele-' + (++imageNumber%2 + 1) + '.jpg" alt="" /></li>')
84
- .anythingSlider(); // update the slider
85
- });
86
- $('button.remove').click(function(){
87
- $('#slider1 > li:not(.cloned):last').remove();
88
- $('#slider1').anythingSlider(); // update the slider
89
- });
90
-
91
- });
92
- </script>
93
-
94
- <script>
95
- // Set up Sliders
96
- // **************
97
- $(function(){
98
-
99
- $('#slider1').anythingSlider({
100
- theme : 'metallic',
101
- easing : 'easeInOutBack',
102
- onSlideComplete : function(slider){
103
- // alert('Welcome to Slide #' + slider.currentPage);
104
- }
105
- });
106
-
107
- $('#slider2').anythingSlider({
108
- resizeContents : false, // If true, solitary images/objects in the panel will expand to fit the viewport
109
- navigationSize : 3, // Set this to the maximum number of visible navigation tabs; false to disable
110
- navigationFormatter : function(index, panel){ // Format navigation labels with text
111
- return ['Recipe', 'Quote', 'Image', 'Quote #2', 'Image #2'][index - 1];
112
- },
113
- onSlideComplete: function(slider) {
114
- // keep the current navigation tab in view
115
- slider.navWindow( slider.currentPage );
116
- },
117
- });
118
-
119
- });
120
- </script>
121
- </head>
122
-
123
- <body id="main">
124
-
125
- <div id="page-wrap">
126
-
127
- <div id="nav">
128
- <a class="current" href="index.html">Main Demo</a>
129
- <a href="simple.html">Simple Demo</a>
130
- <a href="expand.html">Expand Demo</a>
131
- <a href="video.html">Video Demo</a>
132
- <a href="demos.html">FX Demos</a>
133
- <a class="play" href="http://jsfiddle.net/Mottie/VM8XG/">Playground</a>
134
- <a class="git" href="https://github.com/ProLoser/AnythingSlider/wiki">Documentation</a>
135
- <a class="git" href="http://github.com/ProLoser/AnythingSlider/downloads">Download</a>
136
- <a class="issue" href="https://github.com/ProLoser/AnythingSlider/issues">Issues</a>
137
- </div>
138
-
139
- <h5><a href="http://css-tricks.com/examples/AnythingSlider/">Original</a> By <a href="http://css-tricks.com">Chris Coyier</a>,
140
- expanded upon by <a href="https://github.com/ProLoser/AnythingSlider/wiki/Credits">many others</a></h5>
141
-
142
- <h1>AnythingSlider</h1>
143
-
144
- <div class="themeselector">
145
- Theme:
146
- <select id="currentTheme">
147
- <option value="default">Default</option>
148
- <option value="minimalist-round">Minimalist-Round</option>
149
- <option value="minimalist-square">Minimalist-Square</option>
150
- <option value="metallic" selected="selected">Metallic</option>
151
- <option value="construction">Construction</option>
152
- <option value="cs-portfolio">CS-Portfolio</option>
153
- </select>
154
- <button class="add">Add Slide</button>
155
- <button class="remove">Remove Slide</button>
156
- </div>
157
-
158
- <br><br>
159
-
160
- <!-- AnythingSlider #1 -->
161
- <ul id="slider1">
162
-
163
- <li><img src="demos/images/slide-civil-1.jpg" alt=""></li>
164
-
165
- <li><img src="demos/images/slide-env-1.jpg" alt=""></li>
166
-
167
- <li><img src="demos/images/slide-civil-2.jpg" alt=""></li>
168
-
169
- <li><object width="480" height="385"><param name="movie" value="http://www.youtube.com/v/zSgiXGELjbc&amp;hl=en_US&amp;fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/zSgiXGELjbc&amp;hl=en_US&amp;fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></embed></object></li>
170
-
171
- <li class="panel5">
172
- <div>
173
- <div class="textSlide">
174
- <span class="rightside"><object width="500" height="325"><param name="movie" value="http://www.youtube.com/v/2Qj8PhxSnhg&amp;hl=en_US&amp;fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/2Qj8PhxSnhg&amp;hl=en_US&amp;fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="500" height="325"></embed></object></span>
175
- <h3>Other Information</h3>
176
- <br>
177
- <ul>
178
- <li>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla aliquet accumsan eros, et iaculis massa fringilla auctor.</li>
179
- <li>Proin a mi ante, ut lobortis risus. Sed fringilla augue sed enim faucibus eget aliquam tellus ultricies.</li>
180
- <li>Morbi a magna eu ligula scelerisque lobortis vel non nisi.</li>
181
- <li>Aliquam condimentum libero eget elit ultrices sit amet ullamcorper felis gravida.</li>
182
- </ul>
183
- </div>
184
- </div>
185
- </li>
186
-
187
- <li><img src="demos/images/slide-env-2.jpg" alt=""></li>
188
-
189
- </ul> <!-- END AnythingSlider #1 -->
190
-
191
- <br><br>
192
-
193
- <!-- AnythingSlider #2 -->
194
- <ul id="slider2">
195
-
196
- <li class="panel1">
197
- <div>
198
- <div class="textSlide">
199
- <img src="demos/images/251356.jpg" alt="tomato sandwich" style="float: right; margin: 0 0 2px 10px; width: 250px; height: 250px;" />
200
- <h3>Queenie's Killer Tomato Bagel Sandwich</h3>
201
- <h4>Ingredients</h4>
202
- <ul>
203
- <li>1 bagel, split and toasted</li>
204
- <li>2 tablespoons cream cheese</li>
205
- <li>1 roma (plum) tomatoes, thinly sliced</li>
206
- <li>salt and pepper to taste</li>
207
- <li>4 leaves fresh basil</li>
208
- </ul>
209
- </div>
210
- </div>
211
- </li>
212
-
213
- <li class="panel2">
214
- <div class="quoteSlide">
215
- <blockquote>In awe I watched the waxing moon ride across the zenith of the heavens like an ambered chariot towards the ebon void of infinite space wherein the tethered belts of Jupiter and Mars hang forever festooned in their orbital majesty. And as I looked at all this I thought... I must put a roof on this lavatory.<br>-- Les Dawson</blockquote>
216
- </div>
217
- </li>
218
-
219
- <li class="panel3">
220
- <img src="demos/images/slide-tele-1.jpg" alt="">
221
- </li>
222
-
223
- <li class="panel4">
224
- <div class="quoteSlide">
225
- <blockquote>Life is conversational. Web design should be the same way. On the web, you&#8217;re talking to someone you&#8217;ve probably never met – so it&#8217;s important to be clear and precise. Thus, well structured navigation and content organization goes hand in hand with having a good conversation.</blockquote>
226
- <p> - <a id='perma' href='http://quotesondesign.com/chikezie-ejiasi/'>Chikezie Ejiasi</a></p>
227
- </div>
228
- </li>
229
-
230
- <li class="panel5">
231
- <img src="demos/images/slide-tele-2.jpg" alt="">
232
- </li>
233
-
234
- </ul>
235
- <!-- END AnythingSlider #2 -->
236
-
237
- <br>
238
-
239
- <h2>Features</h2>
240
- <ul>
241
- <li>Panels are HTML Content (can be anything).</li>
242
- <li>Multiple AnythingSliders allowable per-page.</li>
243
- <li>Add or remove content, then easily update the slider.</li>
244
- <li>Themes can be applied to individual sliders.</li>
245
- <li>Infinite/Continuous sliding (always slides in the direction you are going, even at "last" slide). This can be disabled.</li>
246
- <li>Show multiple slides within AnythingSlider at once. <span class="attention">*New in version 1.5.14*</span></li>
247
- <li>Expand the slider to fit inside of its container (so it now works with full width or any percentage width fluid layouts). <span class="attention">*New in version 1.5.16*</span></li>
248
- <li>Optionally resize each panel (specified per panel in css).</li>
249
- <li>Optional Next / Previous Panel Arrows.</li>
250
- <li>Use keyboard navigation or tabs that are built and added dynamically (any number of panels).</li>
251
- <li>Link to specific slides or go forward or back one slide from static text links - go to <a href="#" id="slide-jump">Slide 4</a> (Quote #2) in second example.</li>
252
- <li>Each panel has a hashtag (can link directly to specific panels) or use the ID of an element inside the panel.</li>
253
- <li>Optional custom function for <a href="https://github.com/ProLoser/AnythingSlider/wiki/Navigation-Options">formatting navigation text</a>.</li>
254
- <li>Auto-playing slideshow (optional feature, can start playing or stopped).</li>
255
- <li>Pauses slideshow on hover (optional).</li>
256
- <li>Optionally play the slideshow once through, stopping on the last page.</li>
257
- <li>Extend the script by binding to custom events, last triggered event: <span id="status">none</span></li>
258
- <li>Optional FX extension to add animation to panels elements as they scroll into and out of view. See the <a href="demos.html">demo page</a>.</li>
259
- <li>Optional Video extension allows video to pauses playing when not in view and resumes when in view (if files are hosted on the web). This currently works for YouTube, Vimeo and HTML5 video. <span class="attention">*New in version 1.6*</span></li>
260
- <li>Works with jQuery 1.4.2+.</li>
261
- </ul>
262
-
263
- <h2>Default Options</h2>
264
- See the documentation for complete description of these options (<a href="https://github.com/ProLoser/AnythingSlider/wiki/Appearance-Options">appearance</a>, <a href="https://github.com/ProLoser/AnythingSlider/wiki/Navigation-Options">navigation</a>, <a href="https://github.com/ProLoser/AnythingSlider/wiki/Slideshow-Options">slideshow</a>, <a href="https://github.com/ProLoser/AnythingSlider/wiki/Callbacks-and-Events">callbacks &amp; events</a>, <a href="https://github.com/ProLoser/AnythingSlider/wiki/Video">video</a>, <a href="https://github.com/ProLoser/AnythingSlider/wiki/Interactivity-and-Miscellaneous-Options">interativity &amp; misc</a>).<br>
265
- <br>
266
- <blockquote>
267
- <pre>$('#slider').anythingSlider({
268
- // Appearance
269
- theme : "default", // Theme name
270
- expand : false, // If true, the entire slider will expand to fit the parent element
271
- resizeContents : true, // If true, solitary images/objects in the panel will expand to fit the viewport
272
- vertical : false, // If true, all panels will slide vertically; they slide horizontally otherwise
273
- showMultiple : false, // Set this value to a number and it will show that many slides at once
274
- easing : "swing", // Anything other than "linear" or "swing" requires the easing plugin or jQuery UI
275
-
276
- buildArrows : true, // If true, builds the forwards and backwards buttons
277
- buildNavigation : true, // If true, builds a list of anchor links to link to each panel
278
- buildStartStop : true, // If true, builds the start/stop button
279
-
280
- appendForwardTo : null, // Append forward arrow to a HTML element (jQuery Object, selector or HTMLNode), if not null
281
- appendBackTo : null, // Append back arrow to a HTML element (jQuery Object, selector or HTMLNode), if not null
282
- appendControlsTo : null, // Append controls (navigation + start-stop) to a HTML element (jQuery Object, selector or HTMLNode), if not null
283
- appendNavigationTo : null, // Append navigation buttons to a HTML element (jQuery Object, selector or HTMLNode), if not null
284
- appendStartStopTo : null, // Append start-stop button to a HTML element (jQuery Object, selector or HTMLNode), if not null
285
-
286
- toggleArrows : false, // If true, side navigation arrows will slide out on hovering & hide @ other times
287
- toggleControls : false, // if true, slide in controls (navigation + play/stop button) on hover and slide change, hide @ other times
288
-
289
- startText : "Start", // Start button text
290
- stopText : "Stop", // Stop button text
291
- forwardText : "&amp;raquo;", // Link text used to move the slider forward (hidden by CSS, replaced with arrow image)
292
- backText : "&amp;laquo;", // Link text used to move the slider back (hidden by CSS, replace with arrow image)
293
- tooltipClass : "tooltip", // Class added to navigation & start/stop button (text copied to title if it is hidden by a negative text indent)
294
-
295
- // Function
296
- enableArrows : true, // if false, arrows will be visible, but not clickable.
297
- enableNavigation : true, // if false, navigation links will still be visible, but not clickable.
298
- enableStartStop : true, // if false, the play/stop button will still be visible, but not clickable. Previously "enablePlay"
299
- enableKeyboard : true, // if false, keyboard arrow keys will not work for this slider.
300
-
301
- // Navigation
302
- startPanel : 1, // This sets the initial panel
303
- changeBy : 1, // Amount to go forward or back when changing panels.
304
- hashTags : true, // Should links change the hashtag in the URL?
305
- infiniteSlides : true, // if false, the slider will not wrap & not clone any panels
306
- navigationFormatter : null, // Details at the top of the file on this use (advanced use)
307
- navigationSize : false, // Set this to the maximum number of visible navigation tabs; false to disable
308
-
309
- // Slideshow options
310
- autoPlay : false, // If true, the slideshow will start running; replaces "startStopped" option
311
- autoPlayLocked : false, // If true, user changing slides will not stop the slideshow
312
- autoPlayDelayed : false, // If true, starting a slideshow will delay advancing slides; if false, the slider will immediately advance to the next slide when slideshow starts
313
- pauseOnHover : true, // If true & the slideshow is active, the slideshow will pause on hover
314
- stopAtEnd : false, // If true & the slideshow is active, the slideshow will stop on the last page. This also stops the rewind effect when infiniteSlides is false.
315
- playRtl : false, // If true, the slideshow will move right-to-left
316
-
317
- // Times
318
- delay : 3000, // How long between slideshow transitions in AutoPlay mode (in milliseconds)
319
- resumeDelay : 15000, // Resume slideshow after user interaction, only if autoplayLocked is true (in milliseconds).
320
- animationTime : 600, // How long the slideshow transition takes (in milliseconds)
321
- delayBeforeAnimate : 0, // How long to pause slide animation before going to the desired slide (used if you want your "out" FX to show).
322
-
323
- // Callbacks
324
- onBeforeInitialize : function(e, slider) {}, // Callback before the plugin initializes
325
- onInitialized : function(e, slider) {}, // Callback when the plugin finished initializing
326
- onShowStart : function(e, slider) {}, // Callback on slideshow start
327
- onShowStop : function(e, slider) {}, // Callback after slideshow stops
328
- onShowPause : function(e, slider) {}, // Callback when slideshow pauses
329
- onShowUnpause : function(e, slider) {}, // Callback when slideshow unpauses - may not trigger properly if user clicks on any controls
330
- onSlideInit : function(e, slider) {}, // Callback when slide initiates, before control animation
331
- onSlideBegin : function(e, slider) {}, // Callback before slide animates
332
- onSlideComplete : function(slider) {}, // Callback when slide completes; this is the only callback without an event "e" variable
333
-
334
- // Interactivity
335
- clickForwardArrow : "click", // Event used to activate forward arrow functionality (e.g. add jQuery mobile's "swiperight")
336
- clickBackArrow : "click", // Event used to activate back arrow functionality (e.g. add jQuery mobile's "swipeleft")
337
- clickControls : "click focusin", // Events used to activate navigation control functionality
338
- clickSlideshow : "click", // Event used to activate slideshow play/stop button
339
-
340
- // Video
341
- resumeOnVideoEnd : true, // If true & the slideshow is active & a supported video is playing, it will pause the autoplay until the video is complete
342
- addWmodeToObject : "opaque", // If your slider has an embedded object, the script will automatically add a wmode parameter with this setting
343
- isVideoPlaying : function(base){ return false; } // return true if video is playing or false if not - used by video extension
344
- });</pre>
345
- </blockquote>
346
-
347
- <h2>Known Issues</h2>
348
- <ul>
349
- <li>Please refer to the <a href="https://github.com/ProLoser/AnythingSlider/wiki">documentation</a>.</li>
350
- </ul>
351
-
352
- <h2>Changelog</h2>
353
-
354
- Only the latest versions will be shown here. See the <a href="https://github.com/ProLoser/AnythingSlider/wiki/Change-Log">full change log here</a>.<br>
355
- <br>
356
-
357
- <h3>Version 1.7.13</h3>
358
- <ul>
359
- <li>Updated the plugin so that if panel sizes aren't defined in the css, it will default to the slider size. This should fix the problem with the slider initializing with a zero width or height.</li>
360
- <li>Added a "targetPage" callback variable which contains the targeted page number; "$targetPage" still contains the jQuery object of the targeted page. This can be used in event or callbacks:
361
- <pre><code>$('#slider').bind('slide_begin', function(event, slider){
362
- console.debug( 'The target page is #' + slider.targetPage );
363
- console.debug( 'The title of the target page is: ' + slider.$targetPage.find('h1').text() );
364
- // Do something else
365
- });</code></pre>Note that the targetPage variable contains the correct page before the slider animates, whereas "slider.currentPage" contains the current slide and is not updated until after the animation completes. See the "<a href="https://github.com/ProLoser/AnythingSlider/wiki/Callbacks-and-Events">Callback Arguments</a>" section in the wiki documents for a full list.</li>
366
- </ul>
367
-
368
- <h3>Version 1.7.12</h3>
369
- <ul>
370
- <li>Clicking links inside of a slide when mulitple slides are showing will no longer change the slider. Fix for <a href="https://github.com/ProLoser/AnythingSlider/issues/187">issue #187</a>.</li>
371
- <li>Updated how the navigation width was calculated when <code>navigationSize</code> is set so the <a href="https://github.com/Mottie/AnythingSlider-Themes">new tabs-light and tabs-dark themes</a> tab widths are calculated a bit more accurately - but it's still not perfect.</li>
372
- </ul>
373
-
374
- <h3>Version 1.7.11.5</h3>
375
- <ul>
376
- <li>Updated the AnythingSlider css file to restore the overflow setting after the slider has initialized. Fix for <a href="https://github.com/ProLoser/AnythingSlider/issues/183">issue #183</a>. Thanks sawmac!</li>
377
- <li>This fixes a problem created in the previous update.</li>
378
- </ul>
379
-
380
- <h3>Version 1.7.11.4</h3>
381
- <ul>
382
- <li>Updated the AnythingSlider css file to include the flash of unstyled content (FOUC) method 1 from the <a href="https://github.com/ProLoser/AnythingSlider/wiki/FAQ">FAQ page</a></li>
383
- </ul>
384
-
385
- <h3>Version 1.7.11.3</h3>
386
- <ul>
387
- <li>Updated the FX extension
388
- <ul>
389
- <li>When the <code>animationTime</code> is set to zero, the "fade" out effect occurred immediately. The fx extension has been updated to use the default time instead.</li>
390
- <li>Updated the <a href="http://jsfiddle.net/Mottie/Cm479/2144/">fade FX demo</a> to use <code>delayBeforeAnimate</code> to allow the current image to fade out before transitioning.</li>
391
- </ul>
392
- </li>
393
- </ul>
394
-
395
- <h3>Version 1.7.11.2</h3>
396
- <ul>
397
- <li>Added a local copy of jQuery with fallback.</li>
398
- </ul>
399
-
400
- <h3>Version 1.7.11.1</h3>
401
- <ul>
402
- <li>Fixed a problem with the "fade" fx. See <a href="https://github.com/ProLoser/AnythingSlider/issues/171">issue #171</a>.
403
- <ul>
404
- <li>In older versions, the size parameter was ignored; but with the changes in 1.7.11, it became required and now follows the same format as all of the other effects.</li>
405
- <li>The value is actually an opacity to use and must be included if adding a time or easing effect.
406
- <pre><code>// '.selector' : [ 'fade', 'opacity', 'time', 'easing' ]
407
- '.selector' : [ 'fade', '', 500, 'easeInOutCirc' ] // opacity number between 0 and 1 (default is 1, so using '' will set the value to 1)
408
- </code></pre>
409
- </li>
410
- </ul>
411
- </li>
412
- </ul>
413
-
414
- <h3>Version 1.7.11</h3>
415
- <ul>
416
- <li>Updated the FX extension:
417
- <ul>
418
- <li>Added <code>grow</code> option that allows for growing text - like in the movies! *popcorn*</li>
419
- <li>Allow ability to set multiple sizes for the grow and expand fx by simply separating the two values with a comma. If only one value is present, the fx will use that value (left side of the comma) as described below.
420
- <pre><code>// '.selector' : [ 'effect(s)', 'distance/size', 'time', 'easing' ]
421
- '.selector' : [ 'grow', '24px, 80px' ] // 'original text size, fx size'
422
- '.selector' : [ 'expand', '10%, 100%' ], // 'fx size, original size'</code></pre>
423
- </li>
424
- <li>The difference between grow and expand is that grow changes the font size whereas expand changes the width and height.</li>
425
- <li>Added ability to set the <code>fade</code> ending opacity.
426
- <pre><code>// '.selector' : [ 'effect(s)', 'distance/size', 'time', 'easing' ]
427
- '.selector' : [ 'fade', '0.8' ] // opacity number between 0 and 1
428
- </code></pre>
429
- </li>
430
- <li>Changed the intro fx from being initialized immediately to occurring when the page has finished loading.</li>
431
- </ul>
432
- </li>
433
- <li>Fixed a problem that occurs when <code>resizeContents</code> is false and the slide content has padding and/or margins.</li>
434
- </ul>
435
-
436
- <h3>Version 1.7.10</h3>
437
- <ul>
438
- <li>Fixed a problem where setting the <code>animationTime</code> to zero would not trigger any callbacks, thus preventing the FX extension from working.</li>
439
- </ul>
440
-
441
- <h3>Version 1.7.9</h3>
442
- <ul>
443
- <li>Added <code>vertical</code> option
444
- <ul>
445
- <li>When true, all of the content in the slider will scroll vertically.</li>
446
- <li>Included up &amp; down keyboard keys to navigate, but only when the vertical option is true.</li>
447
- <li>The <code>showMultiple</code> option does not currently work when the content is vertical. I may fix this in future versions.</li>
448
- <li>Thanks to Caroline-Elisa for the suggestion - in <a href="https://github.com/ProLoser/AnythingSlider/issues/166">issue #166</a>.</li>
449
- </ul>
450
- </li>
451
- <li>AnythingSlider will now accept an ID or classname to target a specific panel in the slider. Callbacks can also be included. Here is an example:
452
- <pre><code>// original method
453
- $('#slider').anythingSlider(4);
454
-
455
- // additional method
456
- $('#slider').anythingSlider('#quotes');</code></pre>
457
- </li>
458
- <li>Updated FX extension
459
- <ul>
460
- <li>Fixed a problem with the "expand" effect in the FX extension where the height would not change in some browsers.</li>
461
- <li>Added <code>outFxBind</code> and <code>inFxBind</code> options which set which AnythingSlider callbacks are used. This might be more useful if binding FX on slide begin so the element is already animating when the slide comes into view.</li>
462
- </ul>
463
- </li>
464
- </ul>
465
-
466
- </div>
467
-
468
- </body>
469
-
470
- </html>