Created
September 28, 2017 01:39
-
-
Save doublejosh/dd794baf5ba87aa833d8644984fcf110 to your computer and use it in GitHub Desktop.
Wistia video close
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Close video popup at the end automatically. | |
*/ | |
(function () { | |
window._wq = window._wq || []; | |
// Access video object on page by ID. | |
_wq.push({id: "MY_VIDEO_ID", onReady: function (video) { | |
video.bind("end", function (t) { | |
video.popover.hide(); | |
}); | |
}}); | |
}()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment