let container = document.createElement("div");
container.style = "position: fixed; top: 0; right: 0; z-index: 9999;";
let ll = document.createElement("input");
ll.placeholder = "Lower Limit";
ll.type = "number";
let ul = document.createElement("input");
ul.placeholder = "Upper Limit";
ul.type = "number";
let go = document.createElement("button");
go.innerText = "Filter";
go.onclick = function() {
console.log("Filtering list by size " + (ll.value||"0") + " - " + (ul.value||"inf"));
filter(ll.value, ul.value);
}
container.addEventListener("keyup", ({key}) => {
if (key === "Enter") {
go.onclick();
}
})
container.appendChild(ll);
container.appendChild(ul);
container.appendChild(go);
document.body.appendChild(container);