forked from NUDelta/scaffolded-exercises
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexerciseOrderExample.js
132 lines (132 loc) · 4.17 KB
/
exerciseOrderExample.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
[
ExerciseInfo {
code: '\n' +
'/* $map.css({:72:75 */\n' +
' $map.css({\n' +
' left: position[0],\n' +
' top: position[1]\n' +
' });\n' +
'\n',
arrayLoc: 594,
prevExArrayLoc: null,
domObj: '$map',
reason: 'most recent DOM object modified in run log',
codeType: 'modifier',
otherElemsIncluded: [ '$map', '$image', 'tile', '$remove', '$overlay' ]
},
ExerciseInfo {
code: [
'\n' +
'/* rhs-method-$map:48:48 */\n' +
' var $map = $container.children(".map");\n' +
' var map_size = [(size[1] + size[3]) * tilesize, (size[0] + size[2]) * tilesize];\n',
'\n' +
'/* $map.css({:51:56 */\n' +
' $map.css({\n' +
' width: map_size[0],\n' +
' height: map_size[1],\n' +
' position: "absolute",\n' +
' zIndex: -1\n' +
' });\n' +
'\n',
'\n' +
'/* $map.find(".ground").css({:60:67 */\n' +
' $map.find(".ground").css({\n' +
' top: size[0] * tilesize,\n' +
' height: size[2] * tilesize,\n' +
' position: "absolute",\n' +
' width: "100%",\n' +
' zIndex: -1,\n' +
' background: "#000"\n' +
' });\n' +
'\n'
],
arrayLoc: [ 4, 5, 8 ],
prevExArrayLoc: 594,
domObj: '$map',
reason: 'setup code for DOM object $map, which was included in previous exercise',
codeType: 'initializer',
otherElemsIncluded: []
},
ExerciseInfo {
code: '\n' +
'/* $map.append($image);:107:107 */\n' +
' $map.append($image);\n' +
' }\n',
arrayLoc: 486,
prevExArrayLoc: 594,
domObj: '$map',
reason: 'most recent time current DOM obj was modified in run log',
codeType: 'modifier',
otherElemsIncluded: [ '$map', '$image', 'tile', '$remove', '$overlay' ]
},
ExerciseInfo {
code: '\n' +
'/* rhs-method-tile:92:92 */\n' +
' var tile = $map.find(".tile" + name);\n' +
'\n',
arrayLoc: 484,
prevExArrayLoc: 486,
domObj: '$map',
reason: 'most recent time current DOM obj was modified in run log',
codeType: 'modifier',
otherElemsIncluded: [ '$map', '$image', 'tile', '$remove', '$overlay' ]
},
ExerciseInfo {
code: '\n' +
'/* rhs-method-$remove:87:87 */\n' +
' var $remove = $map.children().not(".ground");\n' +
'\n',
arrayLoc: 454,
prevExArrayLoc: 484,
domObj: '$map',
reason: 'most recent time current DOM obj was modified in run log',
codeType: 'modifier',
otherElemsIncluded: [ '$map', '$image', 'tile', '$remove', '$overlay' ]
},
ExerciseInfo {
code: '\n' +
'/* $image.load(function() {:101:105 */\n' +
' $image.load(function() {\n' +
' $(this).show();\n' +
' }).error(function() {\n' +
' $(this).remove();\n' +
' });\n' +
'\n',
arrayLoc: 485,
prevExArrayLoc: 454,
domObj: '$image',
reason: 'most recent time current DOM obj was modified in run log',
codeType: 'modifier',
otherElemsIncluded: [ '$map', '$image', 'tile', '$remove', '$overlay' ]
},
ExerciseInfo {
code: '\n' +
'/* $overlay.css({:24:27 */\n' +
' $overlay.css({\n' +
' background: "transparent",\n' +
' position: "relative"\n' +
' });\n' +
'\n',
arrayLoc: 2,
prevExArrayLoc: null,
domObj: '$overlay',
reason: 'most recent DOM object modified in run log',
codeType: 'modifier',
otherElemsIncluded: [ '$map', '$image', 'tile', '$remove', '$overlay' ]
},
ExerciseInfo {
code: [
'\n' +
'/* rhs-method-$overlay:22:22 */\n' +
' var $overlay = $container.children("img");\n' +
'\n'
],
arrayLoc: [ 1 ],
prevExArrayLoc: 2,
domObj: '$overlay',
reason: 'setup code for DOM object $overlay, which was included in previous exercise',
codeType: 'initializer',
otherElemsIncluded: []
}
]