Skip to content

Instantly share code, notes, and snippets.

@kylebragger
Forked from pancakeapp/forrst-maximize.js
Created December 15, 2010 16:45
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 kylebragger/742228 to your computer and use it in GitHub Desktop.
Save kylebragger/742228 to your computer and use it in GitHub Desktop.
/*
This would have to be modified obviously, but it proves the concept.
*/
$('.code').hide()
.clone()
.appendTo('html')
.css('position', 'absolute')
.css('top', '2.5%')
.css('left', '2.5%')
.css('width', '95%')
.css('height', '95%')
.css('margin', '0')
.css('padding', '0')
.css('z-index', 1000).show()
.children('pre')
.css('width', '100%')
.css('max-height', '100%')
.css('height', '95%')
.css('margin', '0');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment