/*jshint browser: true, strict: true, globalstrict: true, indent: 4, immed: true, latedef: true, undef: true, regexdash: false */ /*global Hex, Base64, ASN1 */ "use strict"; var reHex = /^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/, hash = null; function id(elem) { return document.getElementById(elem); } function toHTML(obj) { return String(obj).replace(/ 0) read(e.dataTransfer.files[0]); } window.onload = function () { if ('onhashchange' in window) window.onhashchange = loadFromHash; loadFromHash(); document.ondragover = stop; document.ondragleave = stop; if ('FileReader' in window) { id('file').style.display = 'block'; id('file').onchange = load; document.ondrop = dragAccept; } };