diff options
| author | Jesse Morgan <jesse@jesterpm.net> | 2013-11-09 21:21:44 -0800 | 
|---|---|---|
| committer | Jesse Morgan <jesse@jesterpm.net> | 2013-11-09 21:21:44 -0800 | 
| commit | 4100cf8af9a638a38c4e42cd7d9f3c0da7af3782 (patch) | |
| tree | 8fb39a8d80422e276f88d430dd751a8708ad3bf6 /web/scripts | |
| parent | d94643c217b6b93eb6c539c60b00fe0cf68272b7 (diff) | |
Enforcing the viewing order of videos.
Also made the Outline links more noticeable.
Diffstat (limited to 'web/scripts')
| -rw-r--r-- | web/scripts/growth.js | 6 | 
1 files changed, 6 insertions, 0 deletions
diff --git a/web/scripts/growth.js b/web/scripts/growth.js index 5f5b273..fa5e3a9 100644 --- a/web/scripts/growth.js +++ b/web/scripts/growth.js @@ -143,6 +143,11 @@ function sendAnswer(required)  function playVideo(videoId)  { +    if (!$('#' + videoId).hasClass('allowed')) { +        notice("You must watch the videos in order."); +        return; +    } +      $.ajax({          type: "GET",          url: location.href + "/videos/" + videoId + ".json", @@ -197,6 +202,7 @@ function reportVideoComplete(data)      var completedBefore = $('#videos article .completed').length;      $('#' + data.id).addClass('completed'); +    $('#' + data.id).parent().next().children('div.image').addClass('allowed');      var completed = $('#videos article .completed').length;      var total = $('#videos article').length;  | 
