Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Gets fullscreen (HTML5 API) to work with an iframe with colorbox.js
// Gets the iframe created by colorbox
var iframe = $("#colorbox").find("iframe");
// Gets focus on iframe
iframe.focus();
// Allow fullscreen on iframe
iframe.attr({
webkitAllowFullScreen : true,
mozAllowfullscreen : true,
allowFullScreen : true
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.