Created
May 31, 2012 10:51
-
-
Save carlo-colombo/2842618 to your computer and use it in GitHub Desktop.
Gantt cleaner
This file contains 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
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