Last active
August 29, 2015 14:02
-
-
Save mcdado/7a1af1de94aa12b5bc70 to your computer and use it in GitHub Desktop.
wwdc-extract-titles.js
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 sessions = []; | |
jQuery("li.session").each(function () { | |
var current = jQuery(this), | |
session = { | |
'id' : current.attr("id").toString().replace('-video', ''), | |
'title' : current.find(".title").text(), | |
'description' : current.find(".description p:nth-child(2)").text(), | |
'track' : current.find(".track").text() | |
}; | |
sessions.push(session); | |
}); | |
sessions.sort(function (a, b) { | |
return a.id - b.id; | |
}); | |
jQuery(sessions).each(function () { | |
console.log(this.id + ". " + this.title) | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment