Skip to content

Instantly share code, notes, and snippets.

@pzread pzread/upload.js
Last active Aug 29, 2015

What would you like to do?
'url':'/judge/api/' + api_key + '/add_pkg',
var xhr = new XMLHttpRequest();
var prog = Math.min(100,e.loaded / pkg.size * 100);
j_bar.css('width',prog + '%');
return xhr;
j_result.text(JSON.stringify(res,null,' '));;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.