I'm attempting to conceal everything in the body except for the table
I've given this a shot:
body:not(#issuetable) { display:none; }
const css = `
body:not(#issuetable) { display:none; }
#issuetable th ,#issuetable td { display:none; }
#issuetable th:nth-child(3),#issuetable th:nth-child(5),
#issuetable td:nth-child(3),#issuetable td:nth-child(5){ display:table-cell; }
`;
let style = document.createElement('style');
style.innerHTML = css;
document.head.appendChild(style);
It seems like everything is being hidden. If you have any insights, please share.
<html xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:x="urn:schemas-microsoft-com:office:excel"
xmlns="http://www.w3.org/TR/REC-html40">
<head>
<title>John's Done (Apple Project Management)</title>
<style type="text/css">
table {
mso-displayed-decimal-separator:"\.";
mso-displayed-thousand-separator:"\,";
}
body
{
margin: 0px;
font-size: 12px;
font-family: Arial, sans-serif;
color:black;
}
</style>
<META HTTP-EQUIV="Content-Type" Content="application/vnd.ms-excel; charset=UTF-8">
<!-- JRA-7598 - ensure fields (e.g. description) occupy only one cell - even fields containing newlines. -->
<!--
Vertical align all cells to the top, in order to align all issue rows of issuetable to the top,
since Excel does not use or save the css files it is hardcoded here.
-->
<style>
@page
{
mso-page-orientation:landscape;
margin:.25in .25in .5in .25in;
mso-header-margin:.5in;
mso-footer-margin:.25in;
mso-footer-data:"&R&P of &N";
mso-horizontal-page-align:center;
mso-vertical-page-align:center;
}
td.issuekey,
td.issuetype,
td.status {
mso-style-parent: "";
mso-number-format: \@;
text-align: left;
}
br
{
mso-data-placement:same-cell;