-
-
+
-
+
@@ -296,19 +296,19 @@ Without Corrective Labels
-
+
-
+
-
+
@@ -322,7 +322,7 @@ Without Corrective Labels
CCIL Successes and Failures
-
+
diff --git a/static/js/sync_vids.js b/static/js/sync_vids.js
index 481b681..f89cc39 100644
--- a/static/js/sync_vids.js
+++ b/static/js/sync_vids.js
@@ -1,13 +1,27 @@
$(document).ready(function() {
const syncedVids = document.querySelectorAll('video.synced');
+ let vidsReady = 0;
let vidsEnded = 0;
for (const vid of syncedVids) {
+ vid.oncanplay = () => {
+ vid.oncanplay = null;
+ vidsReady += 1;
+ console.log(`${vidsReady}/${syncedVids.length} videos ready`);
+ if (vidsReady === syncedVids.length) {
+ console.log("Starting all videos");
+ for (const v of syncedVids) {
+ v.play();
+ }
+ }
+ }
+
vid.onended = () => {
vidsEnded += 1;
- console.log(vidsEnded);
+ console.log(`${vidsEnded}/${syncedVids.length} videos finished`);
if (vidsEnded === syncedVids.length) {
+ console.log("Restarting all videos");
setTimeout(() => {
vidsEnded = 0;
for (const v of syncedVids) {
diff --git a/static/videos/bc_coin_failure.mp4 b/static/videos/bc_coin_failure.mp4
index 42b7a7b..6284fe4 100644
Binary files a/static/videos/bc_coin_failure.mp4 and b/static/videos/bc_coin_failure.mp4 differ
diff --git a/static/videos/ccil_coin_cinematic.mp4 b/static/videos/ccil_coin_cinematic.mp4
index 04f0dfb..d8190db 100644
Binary files a/static/videos/ccil_coin_cinematic.mp4 and b/static/videos/ccil_coin_cinematic.mp4 differ
diff --git a/static/videos/ccil_coin_success.mp4 b/static/videos/ccil_coin_success.mp4
index e16115e..706ea68 100644
Binary files a/static/videos/ccil_coin_success.mp4 and b/static/videos/ccil_coin_success.mp4 differ