Skip to content

Commit

Permalink
put offsets in one take to not slow browser to a crawl
Browse files Browse the repository at this point in the history
  • Loading branch information
ruslashev committed Jun 20, 2021
1 parent 6906068 commit 8527524
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/js/offsets.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
function populateOffsets(columns) {
let rows = Math.ceil(fileLen / columns);
let container = document.getElementById('offsets');
let elements = "";
var offset = 0;

for (var i = 0; i < rows; ++i) {
container.innerHTML += offset.toString(16) + "</br>\n";
elements += offset.toString(16) + "</br>\n";
offset += columns;
}

document.getElementById('offsets').innerHTML = elements;
}

0 comments on commit 8527524

Please sign in to comment.