Skip to content

Instantly share code, notes, and snippets.

@knowuh
Created June 27, 2011 19:03
Show Gist options
  • Save knowuh/1049554 to your computer and use it in GitHub Desktop.
Save knowuh/1049554 to your computer and use it in GitHub Desktop.
activity json
{
"url": "/shared/describing-velocity/page/4/step/8",
"activityPage": "/shared/describing-velocity/page/4",
"paneConfig": "split",
"panes": {
"top": {
"type": "graph",
"title": "Position vs. Time",
"xAxis": "/shared/describing-velocity/axes/9s",
"yAxis": "/shared/describing-velocity/axes/40m",
"data": ["position-data"],
"annotations": ["p1A-highlight", "p2A-highlight", "students-segment-labels", "slope-line-A"],
"highlightedAnnotations": ["rise-arrow-A"]
},
"bottom": {
"type": "table",
"data": "position-data",
"annotations": ["p1A-highlight", "p2A-highlight"],
"highlightedAnnotations": ["rise-bracket-A"]
}
},
"beforeText": "<p>Incorrect.</p><p>What is the change in position?</p>",
"responseTemplate": "/shared/describing-velocity/response-template/numeric",
"afterText": "<p>Hint: Look at the graph.</p>",
"submissibilityCriterion": ["isNumeric", ["responseField", 1]],
"responseBranches": [
{
"criterion": ["withinAbsTolerance", ["delta", "y", ["slopeToolOrder", "first-point-A", "second-point-A"]], ["responseField", 1], 0.1],
"step": "/shared/describing-velocity/page/4/step/11"
}
],
"defaultBranch": "/shared/describing-velocity/page/4/step/9",
"submitButtonTitle": "OK"
},
....
{
"url": "/shared/describing-velocity/page/5/step/8",
"activityPage": "/shared/describing-velocity/page/5",
"paneConfig": "split",
"panes": {
"top": {
"type": "graph",
"title": "Position vs. Time",
"xAxis": "/shared/describing-velocity/axes/9s",
"yAxis": "/shared/describing-velocity/axes/40m",
"data": ["position-data"],
"annotations": ["p1A-highlight", "p2A-highlight", "students-segment-labels", "slope-line-A"],
"highlightedAnnotations": ["rise-arrow-A"]
},
"bottom": {
"type": "table",
"data": "position-data",
"annotations": ["p1A-highlight", "p2A-highlight"],
"highlightedAnnotations": ["rise-bracket-A"]
}
},
"beforeText": "<p>Incorrect.</p><p>What is the change in position?</p>",
"responseTemplate": "/shared/describing-velocity/response-template/numeric",
"afterText": "<p>Hint: Look at the graph.</p>",
"submissibilityCriterion": ["isNumeric", ["responseField", 1]],
"responseBranches": [
{
"criterion": ["withinAbsTolerance", ["delta", "y", ["slopeToolOrder", "first-point-A", "second-point-A"]], ["responseField", 1], 0.1],
"step": "/shared/describing-velocity/page/5/step/11"
}
],
"defaultBranch": "/shared/describing-velocity/page/5/step/9",
"submitButtonTitle": "OK"
},
~/lab/sproutcore/Smartgraphs » diff /tmp/a.json /tmp/b.json master (ruby-1.8.7-p334@smartgraphs)
2,3c2,3
< "url": "/shared/describing-velocity/page/4/step/8",
< "activityPage": "/shared/describing-velocity/page/4",
---
> "url": "/shared/describing-velocity/page/5/step/8",
> "activityPage": "/shared/describing-velocity/page/5",
29c29
< "step": "/shared/describing-velocity/page/4/step/11"
---
> "step": "/shared/describing-velocity/page/5/step/11"
32c32
< "defaultBranch": "/shared/describing-velocity/page/4/step/9",
---
> "defaultBranch": "/shared/describing-velocity/page/5/step/9",
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment