Skip to content

Instantly share code, notes, and snippets.

@getanwar
Last active October 2, 2016 18:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save getanwar/356f84ac3e98a143c8b1 to your computer and use it in GitHub Desktop.
Save getanwar/356f84ac3e98a143c8b1 to your computer and use it in GitHub Desktop.
JS: Treehouse - Course List (console)
// course list
// copy this code to console and see result on the page
$('.video-22-icon').next().each(function(i) {
var el = $(this);
var title = el.parents('.stage-meta').find('h2').text();
var list = '<br><h6>' + (i + 1) + '. ' + title + ': ' + el.text() + '</h6>';
$('#syllabus-description').append(list);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment