Commit 36cbc423 authored by OzzieIsaacs's avatar OzzieIsaacs

Better test output html file

parent 6c552f6b
...@@ -42,6 +42,15 @@ function showCase(level) { ...@@ -42,6 +42,15 @@ function showCase(level) {
row.classList.add('hiddenRow'); row.classList.add('hiddenRow');
} }
} }
// Show error if all or error or summary problems selected
if (id.substr(0,2) == 'su') {
if (level == 0 || level == 2) {
row.classList.remove('hiddenRow');
}
else {
row.classList.add('hiddenRow');
}
}
} }
} }
...@@ -188,4 +197,4 @@ function show_img(obj) { ...@@ -188,4 +197,4 @@ function show_img(obj) {
function hide_img(obj){ function hide_img(obj){
obj.parentElement.style.display = "none"; obj.parentElement.style.display = "none";
obj.parentElement.getElementsByClassName('imgyuan')[0].innerHTML = ""; obj.parentElement.getElementsByClassName('imgyuan')[0].innerHTML = "";
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment