From f0e345c6892b05557f6d500dc104cd37de8dbd33 Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Sun, 5 Nov 2017 09:34:29 +0100 Subject: [PATCH 1/4] Added a waiting message to workflow.html --- rowers/templates/flexthumbnails.html | 6 ++++-- rowers/templates/workflow.html | 3 +++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/rowers/templates/flexthumbnails.html b/rowers/templates/flexthumbnails.html index 4fda7461..d2418cb4 100644 --- a/rowers/templates/flexthumbnails.html +++ b/rowers/templates/flexthumbnails.html @@ -1,10 +1,12 @@

Flex Charts

-

Click on the thumbnails to view the full chart.

- +
+

Sit Ready! We're counting strokes and loading data.

+
+
diff --git a/rowers/templates/workflow.html b/rowers/templates/workflow.html index 3b0ef5ac..c246f3f6 100644 --- a/rowers/templates/workflow.html +++ b/rowers/templates/workflow.html @@ -35,6 +35,9 @@ } $.getJSON(window.location.protocol + '//'+window.location.host + '/rowers/workout/{{ workout.id }}/get-thumbnails', function(json) { var counter=0; + $("#id_sitready").remove(); + $("#id_thumbs").append( + "

Click on the thumbnails to view the full chart.

"); $.each(json, function(index, element) { console.log('adding thumbnail'); var counter2 = counter+1; From 911cb204d13182c1c697b4f9b3c460caae860e3e Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Sun, 5 Nov 2017 12:03:30 +0100 Subject: [PATCH 2/4] delayed load of data on cum_flex Ajax call to load data for cumulative flex chart. It works. Yay! --- rowers/templates/cum_flex.html | 60 +++++++++---- rowers/urls.py | 6 ++ rowers/views.py | 150 ++++++++++++++++++++++++++------- 3 files changed, 170 insertions(+), 46 deletions(-) diff --git a/rowers/templates/cum_flex.html b/rowers/templates/cum_flex.html index 81268e7a..ea74a7ae 100644 --- a/rowers/templates/cum_flex.html +++ b/rowers/templates/cum_flex.html @@ -6,8 +6,23 @@ {% block content %} -{{ js_res | safe }} -{{ css_res| safe }} + +
+ + +
+
+ + + + +
- - - -{{ interactiveplot |safe }} +
+ +