-
Notifications
You must be signed in to change notification settings - Fork 4
/
NeffReactor.html
360 lines (342 loc) · 19.3 KB
/
NeffReactor.html
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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta charset="UTF-8">
<meta name="Author" content="Leslie Bondaryk" />
<meta name="Owner" content="Pearson" />
<meta name="Copyright" content="Copyright (c) 2013 Pearson. All rights reserved." />
<meta content="width=device-width, initial-scale=1.0" name="viewport" />
<meta content="Carmen Santiago, Demo Book" name="description" />
<title class="setTitle"></title>
<!-- bootstrap_plus.css contains styling for the dropdown menu and other common core styles -->
<link href="css/bootstrap_plus.css" rel="stylesheet" media="screen">
<!-- widgets.css contains styling for the interactive brix -->
<link href="css/widgets.css" rel="stylesheet">
<!-- eCourse-master.css contains styling for all the navigation -->
<link href="css/eCourse-master.css" rel="stylesheet" media="screen">
<!-- content_styles.css contains styling for the narrative layout and responsive design -->
<link href="css/content_styles.css" rel="stylesheet" media="screen">
</head>
<body>
<div class="container">
<div class="span12 lc_ec_page">
<section class="lc_ec_majorMinor lc_ec_pageInner">
<div class="lc_ec_content">
<h2 class="lc_ec_bHead"><span class='number setId'></span>
<span class="setTitle"></span>
</h2>
<div class="lc_ec_leading">
<p>Nuclear reactors use heat from fission reactions to turn water into steam, which spins turbines connected to generators that produce electricity. The figure shows a common design known as a pressurized water reactor.</p>
<div id="imgReactor"></div>
</div>
<div id="steps" class"lc_ec_trailing"></div>
</div>
</section>
</div>
</div>
<script src="js/jquery-latest.js"></script>
<script src="js/bootstrap.min.js"></script>
<!-- <script src="js/jquery.touchSwipe.min.js"></script> -->
<script src="js/jquery-ui-1.10.2.custom.js"></script>
<script src="js/toc-structure.js"></script>
<script src="js/eCourse-master.js"></script>
<script src="js/d3.v3.min.js"></script>
<script src="js/brixlib-compiled.js"></script>
<!--
<script src="../closure/closure-library/closure/goog/base.js"></script>
<script src="../closure/closure-library/closure/goog/deps.js"></script>
<script src="js/eventmanager.js"></script>
<script src="js/fakeactivitydb.js"></script>
<script src="js/answerman.js"></script>
<script src="js/submitmanager.js"></script>
<script src="js/mortar-base.js"></script>
<script src="js/widget-base.js"></script>
<script src="js/bricworks.js"></script>
<script src="js/widget-numeric.js"></script>
<script src="js/widget-legend.js"></script>
<script src="js/widget-callouts.js"></script>
<script src="js/widget-button.js"></script>
<script src="js/widget-sketch.js"></script>
<script src="js/widget-prototype-axes.js"></script>
<script src="js/widget-linegraph.js"></script>
<script src="js/widget-barchart.js"></script>
<script src="js/widget-piechart.js"></script>
<script src="js/widget-image.js"></script>
<script src="js/widget-carousel.js"></script>
<script src="js/widget-imageviewer.js"></script>
<script src="js/widget-labelgroup.js"></script>
<script src="js/widget-markergroup.js"></script>
<script src="js/widget-radiogroup.js"></script>
<script src="js/widget-checkgroup.js"></script>
<script src="js/widget-selectgroup.js"></script>
<script src="js/widget-multiplechoicequestion.js"></script>
<script src="js/widget-multiselectquestion.js"></script>
<script src="js/widget-numericquestion.js"></script>
<script src="js/widget-slider.js"></script>
<script src="js/mortar-hilite.js"></script>
<script src="js/briclayer.js"></script>
-->
<script>
// Create an object that will contain the objects needed for the activities
// on this page.
pearson.brix.activity = {};
var a = pearson.brix.activity;
// The activity config that defines the brix and mortar for this page
a.config =
{
"description": "The Neff Reactor activity, w/ labels on an image, along w/ an associated label table",
"sequenceNodeKey": "39b0706e-8587-447e-a598-ecc5e9a1b883",
"containerConfig":
[
{
"description": "This 'imgReactor' container contains the image and overlaying labelgroup",
"containerId": "imgReactor",
"brixConfig":
[
{
"bricId": "cimage1",
"bricType": "CaptionedImage",
"config":
{
"id": "cimg0n",
"URI": "img/reactor.jpg",
"caption": "Nuclear Reactor Schematic Diagram",
"actualSize": {"height": 310, "width": 680},
"displayWidth": 757,
"captionPosition": "below"
},
},
{
"bricId": "cntr1",
"bricType": "SvgContainer",
"config":
{
//"node": d3.select("#imgReactor"),
//"maxSize": pearson.utils.Size.matchRatioWithHeight(310 + 40, {"height": 310, "width": 680}/*"cimage1"."config"."actualSize"*/),
},
"configFixup":
[
{
"type": "set-property",
"name": "node",
"value":
{
"type": "d3select",
"selector": "#imgReactor"
}
},
{
"type": "set-property",
"name": "maxSize",
"value":
{
"type": "property-of-ref",
"domain": "brix",
"refId": "cimage1",
"accessor": "getSizeAt100Pct"
}
}
]
},
{
"bricId": "labels1",
"bricType": "LabelGroup",
"config":
{
"id": "reactorNum",
"type": "numbered",
"labels":
[
{"content": "1", "xyPos": [0, 0.22], "width": 0},
{"content": "2", "xyPos": [0.05, 0.43], "width": 0},
{"content": "3", "xyPos": [0.3, 0.7], "width": 0},
{"content": "4", "xyPos": [0.62, 0.65], "width": 0},
{"content": "5", "xyPos": [0.66, 0.15], "width": 0}
]
}
}
],
"mortarConfig":
[
{
"mortarId": "hilite1",
"mortarType": "Hilite",
"config":
{
"eventDetailsProperty": "selectKey"
},
"configFixup":
[
{
"type": "set-property",
"name": "topic",
// This value type will have to change to lookup a bric type's particular event id
// for now I've hardcoded that event id (topic).
// this is the lbltbl1's selectedEventId
"value":
{
"type": "brix-topic",
"bricType": "Callouts",
"instanceId": "callme",
"eventName": "selected"
}
},
{
"type": "set-property",
"name": "targetBric",
"value": { "type": "ref", "domain": "brix", "refId": "labels1" }
}
]
}
],
"hookupActions":
[
{
"description": "Append the captioned image to the svg container",
"type": "method-call",
"instance": {"type": "ref", "domain": "brix", "refId": "cntr1"},
"methodName": "append",
"args":
[
{ "type": "ref", "domain": "brix", "refId": "cimage1" },
{ "type": "constant", "value": {"topPercentOffset": 0, "leftPercentOffset": 0, "heightPercent": 1, "widthPercent": 1} }
]
},
{
"description": "Append the labels to the captioned image",
"type": "method-call",
"instance": {"type": "ref", "domain": "brix", "refId": "cimage1"},
"methodName": "append",
"args":
[
{ "type": "ref", "domain": "brix", "refId": "labels1" }
]
},
{
"description": "Initial condition: select 1st label (note that we may want to use the state field to do this later)",
"type": "method-call",
"instance": {"type": "ref", "domain": "brix", "refId": "labels1"},
"methodName": "lite",
"args":
[
{ "type": "constant", "value": "0" }
]
}
]
},
{
"description": "The 'steps' container contains the label table",
"containerId": "steps",
"brixConfig":
[
{
"bricId": "lbltbl1",
"bricType": "Callouts",
"config":
{
"id": "callme",
"show": "all",
"type": "numbered",
"headers": ["Nuclear Reactor function"],
"textBits":
[
{"cols": ["In a closed circuit, (green) water is pumped at high pressure to the reactor core."]},
{"cols": ["Heat is generated by fission in the fuel rods in the reactor core, which heats the circulating water. Thick layers of concrete and steel or lead contain the reactor core’s radioactivity."]},
{"cols": [ "In the steam generator, the energy from the heated water is used to boil water from a separate supply. The resulting steam moves through a pipe to a turbine."]},
{"cols": ["The steam turns the turbine, which is connected to an electricity generator. Power lines distribute the electricity. A typical reactor produces as much as a coal-fired power plant."]},
{"cols": ["A third supply of water is used to cool the steam so it condenses into water, which is pumped back to the steam generator."]}
]
}
}
],
"mortarConfig":
[
{
"mortarId": "hilite2",
"mortarType": "Hilite",
"config":
{
"eventDetailsProperty": "selectKey"
},
"configFixup":
[
{
"type": "set-property",
"name": "topic",
// This value type will have to change to lookup a bric type's particular event id
// for now I've hardcoded that event id (topic).
// this is the labels1's selectedEventId
"value":
{
"type": "brix-topic",
"bricType": "LabelGroup",
"instanceId": "reactorNum",
"eventName": "selected"
}
},
{
"type": "set-property",
"name": "targetBric",
"value": { "type": "ref", "domain": "brix", "refId": "lbltbl1" }
}
]
}
],
"hookupActions":
[
{
"description": "draw the label table",
"type": "method-call",
"instance": {"type": "ref", "domain": "brix", "refId": "lbltbl1"},
"methodName": "draw",
"args":
[
{ "type": "d3select", "selector": "#steps" }
]
},
{
"description": "Initial condition: select 1st table row (note that we may want to use the state field to do this later)",
"type": "method-call",
"instance": {"type": "ref", "domain": "brix", "refId": "lbltbl1"},
"methodName": "lite",
"args":
[
{ "type": "constant", "value": "0" }
]
}
]
}
]
};
// create the eventmanager to be used by the created brix, and the
// bricLayer which will create them, and then tell the bricLayer to build.
a.eventManager = new pearson.utils.EventManager();
a.bricLayer = new pearson.brix.BricLayer(null, a.eventManager);
a.building = a.bricLayer.build(a.config);
/*
// shorter names
a.cimage1 = a.building.brix.cimage1;
a.cntr1 = a.building.brix.cntr1;
a.labels1 = a.building.brix.labels1;
a.lbltbl1 = a.building.brix.lbltbl1;
// code that will be replaced by mortar defined in container "imgReactor"
var hilite1Config =
{
"topic": "callme_Callout",
"eventDetailsProperty": "selectKey",
"targetBric": a.building.brix["labels1"]
};
a.building.mortar.hilite1 = new pearson.brix.mortar.Hilite(hilite1Config, a.eventManager);
// code that will be replaced by mortar defined in container "steps"
var hilite2Config =
{
"topic": "reactorNum_labelSelected",
"eventDetailsProperty": "selectKey",
"targetBric": a.building.brix["lbltbl1"]
};
a.building.mortar.hilite2 = new pearson.brix.mortar.Hilite(hilite2Config, a.eventManager);
*/
</script>
</body>
</html>