Created
May 22, 2009 10:56
-
-
Save natbat/116061 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
if ((location.href.split('?')[1] || '').indexOf('print') > -1) { | |
/* assuming all other stylesheets are on media all, this means you can use the ?print query string to preview print styles */ | |
$('link[media=print]').attr('media', ''); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment