Created
December 21, 2011 19:53
-
-
Save cbcwebdev/1507426 to your computer and use it in GitHub Desktop.
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
// say this is the "button" click that makes the iframe fullscreen | |
$('button.fullscreen').click(function() { | |
// fetch existing iframe | |
var $iframe = $('#iframeId'); | |
// clone iframe to push it into a new content area | |
var $iframeInstance = $iframe.clone(); | |
// add clone to body | |
$iframeInstance.appendTo('body'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment