Last active
August 29, 2015 14:08
-
-
Save szmeku/27a8e6be928a53c3a10b to your computer and use it in GitHub Desktop.
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 rows = []; | |
Array.prototype.forEach.call(groups, function(group){ | |
var header = group.querySelector('#name'); | |
if(header){ | |
rows.push('*** ' + header.textContent); | |
var tasks = group.querySelectorAll('.task .title'); | |
Array.prototype.forEach.call(tasks, function(task){ | |
rows.push(task.textContent); | |
}); | |
} | |
}); | |
var txtString = rows.join("\n"); | |
console.log(txtString); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment