Skip to content
This repository was archived by the owner on Jun 7, 2023. It is now read-only.

Commit de355df

Browse files
committed
Video needs a RunestoneBase object to do its logging.
1 parent 1fa9084 commit de355df

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

runestone/video/video.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,17 +54,18 @@ def setup(app):
5454
INLINE = """\
5555
<script>
5656
jQuery(function($) {
57+
var rb = new RunestoneBase();
5758
$('#%(divid)s_thumb').click(function(e) {
5859
$('#%(divid)s').show();
5960
$('#%(divid)s_thumb').hide();
60-
logBookEvent({'event':'video','act':'play','div_id': '%(divid)s'});
61+
rb.logBookEvent({'event':'video','act':'play','div_id': '%(divid)s'});
6162
// Log the run event
6263
});
6364
$('#%(divid)s video').one("click", function(){
6465
this.play();
6566
});
6667
$('#%(divid)s video').one("play", function(){
67-
logBookEvent({'event':'video','act':'play','div_id': '%(divid)s'});
68+
rb.logBookEvent({'event':'video','act':'play','div_id': '%(divid)s'});
6869
});
6970
});
7071
</script>

0 commit comments

Comments
 (0)