Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Video synch page - content synched to 0 will now appear immediately (…
…you no longer have to press play to see it) & the align text property is fixed (it was previously doing opposite of expected behaviour)
  • Loading branch information
FayCross committed Sep 30, 2015
1 parent 1fa853a commit 755441c
Showing 1 changed file with 7 additions and 2 deletions.
Expand Up @@ -94,9 +94,9 @@
}

if ($this.attr("align") == "Bottom") {
divString = "<div>" + x_addLineBreaks($this.attr("text")) + imgStr + "</div>"
} else {
divString = "<div>" + imgStr + x_addLineBreaks($this.attr("text")) + "</div>"
} else {
divString = "<div>" + x_addLineBreaks($this.attr("text")) + imgStr + "</div>"
}

var $caption = $(divString)
Expand Down Expand Up @@ -164,6 +164,11 @@
videoSynch.timeUpdate(mediaElement, mediaElement.currentTime);
});

var $captionAtStart = $($("#pageContents").data("captions")).filter( function(){ return $(this).data("synch") == 0; });
if ($captionAtStart.length > 0) {
$captionAtStart.show();
}

} else {
// VIMEO
if (eventType == "playProgress") {
Expand Down

0 comments on commit 755441c

Please sign in to comment.