Skip to content

Instantly share code, notes, and snippets.

@doublejosh
Created September 28, 2017 01:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save doublejosh/dd794baf5ba87aa833d8644984fcf110 to your computer and use it in GitHub Desktop.
Save doublejosh/dd794baf5ba87aa833d8644984fcf110 to your computer and use it in GitHub Desktop.
Wistia video close
/**
* 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