flux.jquery.js 821 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /**
  2. * @preserve Flux Slider v1.4.4 jQuery Widget
  3. * http://www.joelambert.co.uk/flux
  4. *
  5. * Copyright 2011, Joe Lambert.
  6. * Free to use under the MIT license.
  7. * http://www.opensource.org/licenses/mit-license.php
  8. */
  9. (function($) {
  10. $.widget("joelambert.flux", {
  11. _create: function() {
  12. var _this = this;
  13. this.slider = new flux.slider(this.element, this.options);
  14. },
  15. start: function() {
  16. this.slider.start();
  17. },
  18. stop: function() {
  19. this.slider.stop();
  20. },
  21. isPlaying: function() {
  22. return this.slider.isPlayer();
  23. },
  24. next: function(t, o) {
  25. this.slider.next(t, o);
  26. },
  27. prev: function(t, o) {
  28. this.slider.prev(t, o);
  29. },
  30. showImage: function(i, t, o) {
  31. this.slider.showImage(i, t, o);
  32. },
  33. getImage: function(i) {
  34. return this.slider.getImage(i);
  35. }
  36. });
  37. }(jQuery));