diff --git a/js/app.js b/js/app.js index 1fe7ee7..c048133 100644 --- a/js/app.js +++ b/js/app.js @@ -15,7 +15,7 @@ function callback() { // Sets up the page, that is now ready ready = true; - document.getElementById('main').innerHTML = '
'; + document.getElementById('main').innerHTML = ''; // Handle onchange actions document.getElementById('search').oninput = function (e) { @@ -93,7 +93,7 @@ oReq.onload = function (oEvent) { var l = 0, tmp_array; for (var i = 0; i < nb_bloom_filters; i++) { tmp_array = byte_array.subarray(1 + nb_bloom_filters + l, 1 + nb_bloom_filters + l + lengths[i]); - var l = lengths[i]; + l += lengths[i]; bloom.push(new BloomFilter(tmp_array, error_rate)); }