From 7cd1e061222500b90a016885b60c4287c0df3d8d Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Sun, 8 Dec 2019 10:16:01 +0100 Subject: [PATCH 1/4] gauge comment improvements --- static/js/videogauges.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/js/videogauges.js b/static/js/videogauges.js index 102c3783..f6c068e4 100644 --- a/static/js/videogauges.js +++ b/static/js/videogauges.js @@ -41,8 +41,8 @@ var opts = { staticZones: [ {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: "#00FFFF", min: 3, max: 4}, // Cyan + {strokeStyle: "#FFDD00", min: 4, max: 5}, // Orange {strokeStyle: "#FF0000", min: 5, max: 6} // Red ], From 08d46c1957bce4514fc7206882ccc9a955d9d6e1 Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Mon, 9 Dec 2019 10:57:43 +0100 Subject: [PATCH 2/4] added sharing buttons --- rowers/templates/embedded_video.html | 62 ++++++++++++++++++++++++++-- rowers/templates/workout_view.html | 15 ++++--- 2 files changed, 65 insertions(+), 12 deletions(-) diff --git a/rowers/templates/embedded_video.html b/rowers/templates/embedded_video.html index dfd5c573..4d27ae10 100644 --- a/rowers/templates/embedded_video.html +++ b/rowers/templates/embedded_video.html @@ -7,6 +7,24 @@ {% block title %}Workout Video{% endblock %} +{% block og_title %}{{ analysis.name }}{% endblock %} +{% block description %}Rowing Video Analysis:{{ analysis.name }}{% endblock %} +{% block og_description %}Rowing Video Analysis:{{ analysis.name }}{% endblock %} +{% block og_image %} +{% if analysis %} + + +{% else %} + + +{% endif %} +{% endblock %} + +{% if analysis %} +{% block image_src %} + +{% endblock %} +{% endif %} {% block meta %} {% leaflet_js %} @@ -22,6 +40,18 @@ }); }); + {% endblock %} {% block main %} @@ -80,16 +110,38 @@ controls to move around in the video and play it.

You can make manual adjustments to the delay to fine tune the alignment. - Once you are finished, check "Lock Video and Data" to lock the video and the data.

-

Once you are happy with the alignment, you can save the analysis, and share with other people.

+ Once you are finished, check "Lock Video and Data" to lock the video and the data.

+

Once you are happy with the alignment, you can save the analysis, and + share with other people.

{% else %}
  • Playing the video will advance the data in synchronization. Use the regular YouTube controls to move around in the video and play it.

    +
  • {% endif %} - - +