File manager - Edit - /home/jardides/www/Jardi-design/j37/plugins/fabrik_element/fileupload/lib/plupload/js/plupload.silverlight-min.js
Back
/*! Fabrik */ !function(a,b,c,d){function e(a){var b,c,f,g,h=typeof a;if(a===d||null===a)return"null";if("string"===h)return b="\bb t\nn\ff\rr\"\"''\\\\",'"'+a.replace(/([\u0080-\uFFFF\x00-\x1f\"])/g,function(a,c){var d=b.indexOf(c);return d+1?"\\"+b.charAt(d+1):(a=c.charCodeAt().toString(16),"\\u"+"0000".substring(a.length)+a)})+'"';if("object"==h){if(c=a.length!==d,b="",c){for(f=0;f<a.length;f++)b&&(b+=","),b+=e(a[f]);b="["+b+"]"}else{for(g in a)a.hasOwnProperty(g)&&(b&&(b+=","),b+=e(g)+":"+e(a[g]));b="{"+b+"}"}return b}return""+a}function f(a){var b,c,d,e,f,g=!1,h=null,i=0;try{try{h=new ActiveXObject("AgControl.AgControl"),h.IsVersionSupported(a)&&(g=!0),h=null}catch(j){var k=navigator.plugins["Silverlight Plug-In"];if(k){for(b=k.description,"1.0.30226.2"===b&&(b="2.0.30226.2"),c=b.split(".");c.length>3;)c.pop();for(;c.length<4;)c.push(0);for(d=a.split(".");d.length>4;)d.pop();do e=parseInt(d[i],10),f=parseInt(c[i],10),i++;while(i<d.length&&e===f);f>=e&&!isNaN(e)&&(g=!0)}}}catch(l){g=!1}return g}var g={},h={};c.silverlight={trigger:function(a,b){var d,e=g[a];e&&(d=c.toArray(arguments).slice(1),d[0]="Silverlight:"+b,setTimeout(function(){e.trigger.apply(e,d)},0))}},c.runtimes.Silverlight=c.addRuntime("silverlight",{getFeatures:function(){return{jpgresize:!0,pngresize:!0,chunks:!0,progress:!0,multipart:!0,multi_selection:!0}},init:function(d,i){function j(){return b.getElementById(d.id+"_silverlight").content.Upload}var k,l,m="",n=d.settings.filters,o=b.body;if(!f("2.0.31005.0")||a.opera&&a.opera.buildNumber)return void i({success:!1});for(h[d.id]=!1,g[d.id]=d,k=b.createElement("div"),k.id=d.id+"_silverlight_container",c.extend(k.style,{position:"absolute",top:"0px",background:d.settings.shim_bgcolor||"transparent",zIndex:99999,width:"100px",height:"100px",overflow:"hidden",opacity:d.settings.shim_bgcolor||b.documentMode>8?"":.01}),k.className="plupload silverlight",d.settings.container&&(o=b.getElementById(d.settings.container),"static"===c.getStyle(o,"position")&&(o.style.position="relative")),o.appendChild(k),l=0;l<n.length;l++)m+=(""!=m?"|":"")+n[l].title+" | *."+n[l].extensions.replace(/,/g,";*.");k.innerHTML='<object id="'+d.id+'_silverlight" data="data:application/x-silverlight," type="application/x-silverlight-2" style="outline:none;" width="1024" height="1024"><param name="source" value="'+d.settings.silverlight_xap_url+'"/><param name="background" value="Transparent"/><param name="windowless" value="true"/><param name="enablehtmlaccess" value="true"/><param name="initParams" value="id='+d.id+",filter="+m+",multiselect="+d.settings.multi_selection+'"/></object>',d.bind("Silverlight:Init",function(){var a,f={};h[d.id]||(h[d.id]=!0,d.bind("Silverlight:StartSelectFiles",function(){a=[]}),d.bind("Silverlight:SelectFile",function(b,d,e,g){var h;h=c.guid(),f[h]=d,f[d]=h,a.push(new c.File(h,e,g))}),d.bind("Silverlight:SelectSuccessful",function(){a.length&&d.trigger("FilesAdded",a)}),d.bind("Silverlight:UploadChunkError",function(a,b,e,g,h){d.trigger("Error",{code:c.IO_ERROR,message:"IO Error.",details:h,file:a.getFile(f[b])})}),d.bind("Silverlight:UploadFileProgress",function(a,b,d,e){var g=a.getFile(f[b]);g.status!=c.FAILED&&(g.size=e,g.loaded=d,a.trigger("UploadProgress",g))}),d.bind("Refresh",function(a){var d,e,f;d=b.getElementById(a.settings.browse_button),d&&(e=c.getPos(d,b.getElementById(a.settings.container)),f=c.getSize(d),c.extend(b.getElementById(a.id+"_silverlight_container").style,{top:e.y+"px",left:e.x+"px",width:f.w+"px",height:f.h+"px"}))}),d.bind("Silverlight:UploadChunkSuccessful",function(a,b,d,e,g){var h,i=a.getFile(f[b]);h={chunk:d,chunks:e,response:g},a.trigger("ChunkUploaded",i,h),i.status!=c.FAILED&&j().UploadNextChunk(),d==e-1&&(i.status=c.DONE,a.trigger("FileUploaded",i,{response:g}))}),d.bind("Silverlight:UploadSuccessful",function(a,b,d){var e=a.getFile(f[b]);e.status=c.DONE,a.trigger("FileUploaded",e,{response:d})}),d.bind("FilesRemoved",function(a,b){var c;for(c=0;c<b.length;c++)j().RemoveFile(f[b[c].id])}),d.bind("UploadFile",function(a,b){var d=a.settings,g=d.resize||{};j().UploadFile(f[b.id],a.settings.url,e({name:b.target_name||b.name,mime:c.mimeTypes[b.name.replace(/^.+\.([^.]+)/,"$1").toLowerCase()]||"application/octet-stream",chunk_size:d.chunk_size,image_width:g.width,image_height:g.height,image_quality:g.quality||90,multipart:!!d.multipart,multipart_params:d.multipart_params||{},file_data_name:d.file_data_name,headers:d.headers}))}),d.bind("Silverlight:MouseEnter",function(a){var e,f;e=b.getElementById(d.settings.browse_button),f=a.settings.browse_button_hover,e&&f&&c.addClass(e,f)}),d.bind("Silverlight:MouseLeave",function(a){var e,f;e=b.getElementById(d.settings.browse_button),f=a.settings.browse_button_hover,e&&f&&c.removeClass(e,f)}),d.bind("Silverlight:MouseLeftButtonDown",function(a){var e,f;e=b.getElementById(d.settings.browse_button),f=a.settings.browse_button_active,e&&f&&(c.addClass(e,f),c.addEvent(b.body,"mouseup",function(){c.removeClass(e,f)}))}),d.bind("Sliverlight:StartSelectFiles",function(a){var e,f;e=b.getElementById(d.settings.browse_button),f=a.settings.browse_button_active,e&&f&&c.removeClass(e,f)}),d.bind("Destroy",function(a){var d;c.removeAllEvents(b.body,a.id),delete h[a.id],delete g[a.id],d=b.getElementById(a.id+"_silverlight_container"),d&&o.removeChild(d)}),i({success:!0}))})}})}(window,document,plupload);
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.01 |
proxy
|
phpinfo
|
Settings