Skip to content

Instantly share code, notes, and snippets.

@sakunyo
Created June 2, 2011 00:17
Show Gist options
  • Save sakunyo/1003656 to your computer and use it in GitHub Desktop.
Save sakunyo/1003656 to your computer and use it in GitHub Desktop.
_js_fxPrint
/* !fxPrint ----------------------------------------------------------------- */
(function(){
setCSS = function(){
elem = document.createElement('link');
elem.setAttribute('rel','stylesheet');
elem.setAttribute('type','text/css');
elem.setAttribute('media','print');
elem.setAttribute('href','common/css/fx_print.css');
document.getElementsByTagName('head')[0].appendChild(elem);
}
if( isUA.fx() ) window.addEventListener("load",setCSS,false);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment