Created
October 18, 2017 22:31
-
-
Save goyuix/df7ebbc2649d21a2099eb81ee6b6cf80 to your computer and use it in GitHub Desktop.
JavaScript to clean up Friends of Scouting report prior to PDF distribution
This file contains hidden or 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
// 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