Skip to content

Instantly share code, notes, and snippets.

@goyuix
Created October 18, 2017 22:31
Show Gist options
  • Save goyuix/df7ebbc2649d21a2099eb81ee6b6cf80 to your computer and use it in GitHub Desktop.
Save goyuix/df7ebbc2649d21a2099eb81ee6b6cf80 to your computer and use it in GitHub Desktop.
JavaScript to clean up Friends of Scouting report prior to PDF distribution
// hide donation amount
$("td.currency").hide();
// hide type column
$("tr").each(function(){$(this).find("td:last").hide();});
// hide confusing 'Declined?'value in status column
$("a:contains('Declined')").hide();
// hide navigation bar at top
$("div.navbar").hide();
// hide total dollar summary in header
$("#page-content div:nth(2)").hide();
// adjust some CSS rules to better format report with removed elements
$("#page-content").css("margin-top",0);
$("#page-content div:nth(3)").css("top",60);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment