diff --git a/rowers/templates/embedded_video.html b/rowers/templates/embedded_video.html index 78457458..dfd5c573 100644 --- a/rowers/templates/embedded_video.html +++ b/rowers/templates/embedded_video.html @@ -281,23 +281,21 @@ {{ metricsform.as_table }} - {% else %} - - {% endif %} - {% if not analysis.id %} {% endif %} - {% if analysis and user.is_authenticated and user == analysis.workout.user.user %} -
- Delete Analysis -
+ {% else %} + {% endif %} + + + ++ Delete Analysis +
+ {% endif %} +@@ -355,7 +360,7 @@ // lock var lock = document.getElementById("lock"); var output = document.getElementById("id_delay"); - var cookie = readCookie("lock"); + var cookie = readCookie("lock{{ workout.id }}"); var delay = output.value; if (cookie=="true") { lock.checked = true; @@ -526,10 +531,10 @@ lock.oninput = function() { if (this.checked) { output.disabled = true; - createCookie("lock","true",0); + createCookie("lock{{ workout.id}}","true",0); } else { output.disabled = false; - createCookie("lock","false",0); + createCookie("lock{{ workout.id }}","false",0); } } // Slider start stop diff --git a/static/js/videogauges.js b/static/js/videogauges.js index 35ef344e..102c3783 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: 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: "#00FF00", min: 0, max: 2}, // Greem + {strokeStyle: "#0000FF", min: 2, max: 3}, // Blue` + {strokeStyle: "#00FFFF", min: 3, max: 4}, // Yellow + {strokeStyle: "#FFDD00", min: 4, max: 5}, // Purple {strokeStyle: "#FF0000", min: 5, max: 6} // Red ],