X-Git-Url: http://id.pley.net/movie_parser.git/blobdiff_plain/86cb3dcb7102f7c715c323bbd1c62f4f136ddfab..a65052e7db9fec0f0098eec2d42175bf39ce27c6:/AtomTester.html?ds=inline diff --git a/AtomTester.html b/AtomTester.html index 789e246..82d9be2 100644 --- a/AtomTester.html +++ b/AtomTester.html @@ -10,11 +10,14 @@ reader.onload = (function(file) { return function(e) { var offset = 0; + var output = document.getElementById('output'); + output.innerHTML = ''; while (offset < e.target.result.byteLength) { - var atom = new Atom(e.target.result, offset); + var atom = Atom.create(e.target.result, offset); if (!atom) break; atoms.push(atom); + output.appendChild(atom.toDOMNode()); offset += atom.size; } }; @@ -26,7 +29,20 @@ document.getElementById('file').addEventListener('change', onFileSelect, false); } +
+