Skip to content

Instantly share code, notes, and snippets.

@scytacki
Last active August 29, 2015 13:56
Show Gist options
  • Save scytacki/9332817 to your computer and use it in GitHub Desktop.
Save scytacki/9332817 to your computer and use it in GitHub Desktop.
$.getJSON('interactives.json', null, function (results){
var interactives_index = results,
names = "";
$.each(interactives_index.interactives, function(index, item){
var category = null;
try {
category = $.grep(interactives_index.groups,function (group){return group.path == item.groupKey})[0].category;
} catch (error) {
console.log("failed to find group of " + item.groupKey);
return;
}
if(item.publicationStatus == 'public' && (category == "Curriculum")){
console.log("saving name: " + item.title);
names = names + item.title + ", http://lab.concord.org/embeddables.html#" + item.path + "\n";
}
});
console.log("names:");
console.log(names);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment