Skip to content

Instantly share code, notes, and snippets.

@liferealized
Created January 11, 2011 13:04
Show Gist options
  • Save liferealized/774386 to your computer and use it in GitHub Desktop.
Save liferealized/774386 to your computer and use it in GitHub Desktop.
Print Fitbit
(function() {
var doc = document
, html = doc.getElementsByTagName('html')[0]
, main = doc.getElementById('main')
, header = doc.getElementById('header')
, cBody = doc.getElementById('contentBody')
, mods = doc.getElementById('modules')
, content = doc.getElementById('content')
, tNav = doc.getElementById('trackerNav')
, footer = doc.getElementById('footer')
, teasers = doc.getElementById('teasers')
, logform = doc.getElementById('log')
, waterIntake = doc.getElementById('waterIntake')
, transparent = 'transparent'
, none = 'none';
html.style.background = transparent;
main.style.width = '100%';
header.style.display = none;
cBody.style.margin = 0;
tNav.style.display = none;
mods.style.background = transparent;
mods.style.padding = 0;
content.style.background = transparent;
content.style.padding = 0;
content.style.border = 0;
footer.style.display = none;
teasers.style.display = none;
logform.style.display = none;
waterIntake.style.display = none;
window.print();
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment