Skip to content

Instantly share code, notes, and snippets.

@carlo-colombo
Created May 31, 2012 10:51
Show Gist options
  • Save carlo-colombo/2842618 to your computer and use it in GitHub Desktop.
Save carlo-colombo/2842618 to your computer and use it in GitHub Desktop.
Gantt cleaner
var table = document.querySelector('#tasks'),
table2 = table.cloneNode(true),
forEach = Array.prototype.forEach;
forEach.call(document.body.querySelectorAll('body > div'),function(v,i){document.body.removeChild(v)});
document.body.appendChild(table2);
forEach.call(document.querySelectorAll('th,td.q4 '),function(v,i){ v.style['background-color']='transparent' });
forEach.call(document.querySelectorAll('.p3'),function(p3,i){p3.parentNode.removeChild(p3)});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment