Skip to content

Instantly share code, notes, and snippets.

@hvitorino
Created July 4, 2013 12:25
Show Gist options
  • Save hvitorino/5927238 to your computer and use it in GitHub Desktop.
Save hvitorino/5927238 to your computer and use it in GitHub Desktop.
//http://www.ivyishere.org/
var songs = new Array($(".module-row-cell.artist").length);
for(var i = 0; i < songs.length; i++)
songs[i] = { name: "", artist: "" };
$.each($(".module-row-cell.artist"), function(index, item) {
songs[index].artist = $(item).text();
});
$.each($(".module-row-cell.song"), function(index, item) {
songs[index].name = $(item).text();
});
$.each(songs, function(index, item){
console.log(item.artist + ", " + item.name);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment