mirror of
https://github.com/karma-riuk/crab-webapp.git
synced 2025-07-05 06:08:13 +02:00
now using .hidden everywhere to toggle visibility
of elements
This commit is contained in:
@ -54,16 +54,16 @@ document.getElementById("upload-btn").onclick = async () => {
|
||||
}
|
||||
|
||||
results = json;
|
||||
progressContainer.style.display = "none";
|
||||
progressContainer.classList.add("hidden");
|
||||
|
||||
commentResultsContainer.style.display = "none";
|
||||
refinementResultsContainer.style.display = "none";
|
||||
commentResultsContainer.classList.add("hidden");
|
||||
refinementResultsContainer.classList.add("hidden");
|
||||
const resultsContainer =
|
||||
type === "comment"
|
||||
? commentResultsContainer
|
||||
: refinementResultsContainer;
|
||||
|
||||
resultsContainer.style.display = "block";
|
||||
resultsContainer.classList.remove("hidden");
|
||||
|
||||
const tbody = resultsContainer.querySelector("table tbody");
|
||||
tbody.innerHTML = "";
|
||||
@ -121,7 +121,7 @@ socket.on("progress", (data) => {
|
||||
});
|
||||
|
||||
socket.on("started-processing", () => {
|
||||
progressContainer.style.display = "block";
|
||||
progressContainer.classList.remove("hidden");
|
||||
setProgress(0);
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user