diff --git a/rowers/templates/embedded_video.html b/rowers/templates/embedded_video.html index 3830eb43..5d357280 100644 --- a/rowers/templates/embedded_video.html +++ b/rowers/templates/embedded_video.html @@ -175,7 +175,9 @@ document.getElementById("{{ id }}").innerHTML = {{ id }}_now; {% endfor %} {% for group in metricsgroups %} - set_{{ group }}(); + try { + set_{{ group }}(); + } catch (e) {} {% endfor %} // gauge.set(catch_now); try { diff --git a/static/js/videogauges.js b/static/js/videogauges.js index 20f48ad6..e12dcc2e 100644 --- a/static/js/videogauges.js +++ b/static/js/videogauges.js @@ -39,10 +39,10 @@ var opts = { generateGradient: true, highDpiSupport: true, // High resolution support staticZones: [ - {strokeStyle: "#00FF00", min: 0, max: 1}, // Red from 100 to 60 - {strokeStyle: "#0000FF", min: 1, max: 2}, // Yellow - {strokeStyle: "#00FFFF", min: 2, max: 3}, // Green - {strokeStyle: "#FFDD00", min: 3, max: 5}, // Yellow + {strokeStyle: "#00FF00", min: 0, max: 2}, // Red from 100 to 60 + {strokeStyle: "#0000FF", min: 2, max: 3}, // Yellow + {strokeStyle: "#00FFFF", min: 3, max: 4}, // Green + {strokeStyle: "#FFDD00", min: 4, max: 5}, // Yellow {strokeStyle: "#FF0000", min: 5, max: 6} // Red ],