Debian Codegraph @

debian/missing-sources/jcaption/jcaption.min.js

raw symbols SCIP
1 (function(a){a.fn.jcaption=function(b){b=a.extend({wrapperElement:"div",wrapperClass:"caption",captionElement:"p",imageAttr:"alt",copyStyle:true,removeStyle:true,removeAlign:true,copyAlignmentToClass:true,copyFloatToClass:true,autoWidth:true,animate:false,show:{opacity:"show"},showDuration:200,hide:{opacity:"hide"},hideDuration:200},b);a(this).each(function(){a(this).bind("load",function(){if(a(this).data("loaded")){return false}a(this).data("loaded",true);var f=a(this);if(f.attr(b.imageAttr).length>0){f.wrap("<"+b.wrapperElement+" class='"+b.wrapperClass+"'></"+b.wrapperElement+">");var d=f.css("float");var c=f.attr("style");if(b.removeStyle){f.removeAttr("style")}var e=f.attr("align");if(b.removeAlign){f.removeAttr("align")}var g=a(this).parent().append("<"+b.captionElement+">"+f.attr(b.imageAttr)+"</"+b.captionElement+">");if(b.animate){a(this).next().hide();a(this).parent().hover(function(){a(this).find("p").animate(b.show,b.showDuration)},function(){a(this).find("p").animate(b.hide,b.hideDuration)})}if(b.copyStyle){g.attr("style",c)}if(b.copyAlignmentToClass){g.addClass(e)}if(b.copyFloatToClass&&d.length>0){g.addClass(d)}if(b.autoWidth){g.width(f.width())}}});if(this.complete||this.naturalWidth>0){a(this).trigger("load")}})}})(jQuery);