Sha256: 1621ae88dcc6f0c5d060732ab8aae58ae1441cab3213172a90fedc3fe55eb4a5
Contents?: true
Size: 411 Bytes
Versions: 26
Compression:
Stored size: 411 Bytes
Contents
mumuki.load(() => { $('#upload-input').change(function (evt) { var file = evt.target.files[0]; if (!file) return; var reader = new FileReader(); reader.onload = function (e) { var contents = e.target.result; $('#solution_content').html(contents); $(evt.target).val(""); $('form.new_solution').submit(); }; reader.readAsText(file); return false; }); });
Version data entries
26 entries across 26 versions & 1 rubygems