Skip to content

Instantly share code, notes, and snippets.

@aroc
Last active August 29, 2015 14:02
Show Gist options
  • Save aroc/54a2669783231a0d2215 to your computer and use it in GitHub Desktop.
Save aroc/54a2669783231a0d2215 to your computer and use it in GitHub Desktop.
SideComments.js existing comments array structure
var existingComments = [
{
"sectionId": "1",
"comments": [
{
"authorAvatarUrl": "http://f.cl.ly/items/1W303Y360b260u3v1P0T/jon_snow_small.png",
"authorName": "Jon Sno",
"comment": "I'm Ned Stark's bastard. Related: I know nothing."
},
{
"authorAvatarUrl": "http://f.cl.ly/items/2o1a3d2f051L0V0q1p19/donald_draper.png",
"authorName": "Donald Draper",
"comment": "I need a scotch."
}
]
},
{
"sectionId": "3",
"comments": [
{
"authorAvatarUrl": "http://f.cl.ly/items/0l1j230k080S0N1P0M3e/clay-davis.png",
"authorName": "Senator Clay Davis",
"comment": "These Side Comments are incredible. Sssshhhiiiiieeeee."
}
]
}
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment