Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

558 enrichment plot update #564

Merged
merged 9 commits into from
Jan 6, 2025
20 changes: 10 additions & 10 deletions website/templates/result.html
Original file line number Diff line number Diff line change
Expand Up @@ -95,21 +95,21 @@
//iterate over all figures in figs and update them
for (let [key, value] of Object.entries(figs)) {
if (key == "richFig") {
if (sel_hydro_scale != 'kyte_doolittle') {
if (sel_hydro_scale != 'kyte_doolittle' && !document.getElementById("overlay")) {
value.add_warning_overlay()
}
else {
else if (sel_hydro_scale == 'kyte_doolittle' && document.getElementById("overlay")) {
value.remove_warning_overlay()
}
}
else {
try {
value.update_bars(data);
}
catch {
console.log("Failed to update: " + key)
}
}

try {
value.update_bars(data);
}
catch {
console.log("Failed to update: " + key)
}

}
}

Expand Down