From b6f78c5db15cb7e34649ca67f3295dcb1a102bbe Mon Sep 17 00:00:00 2001 From: prathamesh Date: Mon, 9 Nov 2020 15:52:56 +0530 Subject: Modify Lesson Statistics - gives total spent time - sets initial percentage to less than 25% - gives completion status(True or False) --- stats/templates/view_lesson_tracking.html | 29 ++++++++++------------------- 1 file changed, 10 insertions(+), 19 deletions(-) (limited to 'stats/templates/view_lesson_tracking.html') diff --git a/stats/templates/view_lesson_tracking.html b/stats/templates/view_lesson_tracking.html index 7962410..ef5c9ae 100644 --- a/stats/templates/view_lesson_tracking.html +++ b/stats/templates/view_lesson_tracking.html @@ -15,15 +15,6 @@ $(document).ready(function() { $("#stats-table").tablesorter({}); - $('#stats-table tr').each(function() { - var td = $(this).find("td"); - var elapsed = td.eq(4).html(); - var duration = td.eq(5).html(); - if (elapsed != undefined || duration != undefined) { - percent = (get_time_in_seconds(elapsed) / get_time_in_seconds(duration)) * 100; - td.eq(6).html(Math.round(percent)); - } - }); }); {% endblock %} @@ -49,22 +40,22 @@