Código Javascript:
Ver original
var xid = Math.random().toString(36).substr(2, 5); var results = '<div id="'+ xid +'" class="resultdiv"><table>'; if (doSHA1) results += '<tr><td>SHA1:</td><td>' + sha1proc.finalize() + '</td></tr>'; if (doSHA256) results += '<tr><td>SHA256:</td><td>' + sha256proc.finalize() + '</td></tr>'; if (doMD5) results += '<tr><td>MD5:</td><td>' + md5proc.finalize() + '</td></tr>'; if (doCRC32) results += '<tr><td>CRC-32:</td><td>' + decimalToHexString(crc32intermediate) + '</td></tr>'; results += '</table>'; results += "<button>Remover</button>"; results += "<"+"sc"+"rip"+"t"+">"; results += "$('button').click(function(){$('div').remove(" + "\":contains('"+ xid +"')\"" + ");});"; results += "<"+"/sc"+"ript"+">"; results += "</div>";