1 function jQueryEffectsPlugin(slideshow_obj) { 2 /* Introduces setting 3 fx: true|false 4 */ 5 oldReplaceSlide = slideshow_obj.prototype.replaceSlide; 6 oldSetBarDisplay = slideshow_obj.prototype.setBarDisplay; 7 fx_enabled = function(sobj) { 8 return (sobj.settings.fx == null) ? true : sobj.settings.fx; 9 } 10 11 slideshow_obj.prototype.replaceSlide = function(slide) { 12 if (fx_enabled(this) && this.settings.melt_change && this.not_first_slide) { 13 melt_speed = 2000; 14 $(slide.cached_obj).css('opacity', '0'); 15 16 /* 17 if (this.not_first_slide == undefined) { 18 this.not_first_slide = true; 19 this.settings.delay += melt_speed / 1000; 20 $(slide.cached_obj).css('opacity', '1'); 21 } 22 else 23 */ 24 $(slide.cached_obj).css('margin-top', -this.settings.height); 25 26 this.target.img.parentNode.appendChild(slide.cached_obj); 27 var t = this.target; 28 29 $(this.target.img).fadeTo(melt_speed, 0, function() { 30 t.img.parentNode.replaceChild(slide.cached_obj, t.img); 31 t.img = slide.cached_obj; 32 $(slide.cached_obj).css('margin-top', '0'); 33 }); 34 35 $(slide.cached_obj).fadeTo(melt_speed, 1); 36 } 37 else { 38 oldReplaceSlide.apply(this, arguments); 39 if (!fx_enabled(this)) 40 return; 41 42 var j = $(this.target.img); 43 j.css('opacity', '0'); 44 45 j.fadeTo('normal', 1); 46 } 47 } 48 49 slideshow_obj.prototype.setBarDisplay = function(val) { 50 //if the ControlBarEvents plugin is not installed, this function has no reason to be 51 if (!oldSetBarDisplay) 52 return; 53 54 var obj = this; var args = arguments; 55 56 var finish_func = function() { oldSetBarDisplay.apply(obj, args) }; 57 58 if (!fx_enabled(this)) 59 return finish_func(); 60 61 if (val) 62 $(this.target.buttons).fadeTo('normal', 1, finish_func);
63 else 64 $(this.target.buttons).fadeTo('normal', 0, finish_func); 65 }; 66 } 67 68 jQueryEffectsPlugin(Slideshow); 69
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.