-
Notifications
You must be signed in to change notification settings - Fork 4
/
Brain.html
211 lines (186 loc) · 9.73 KB
/
Brain.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
<?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_fiftyFifty 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">
<div id="carousel"></div>
</div>
<div class="lc_ec_trailing">
<p>The brain is uses a subsystem of eyes and other neurological components to process incoming light. Light entering the eyes can be separated into the left and right visual fields. Light travels in a straight line through the cornea and lens. The resulting image projected on the retina is actually upside down and reversed. Our brain compensates for this. </p>
<p>The image from the left visual field on the right side of each retina goes to the right visual cortex, while the right visual field goes to the left visual cortex. The axons from the temporal halves of each retina project to the visual cortex on the same size of the brain, while the axons from the nasal halves cross over to the opposite side. The optic chiasm is the point of crossover.</p>
<p>Photoreceptors in the retina, the rods, are found all over the retina except in the very center, which contains only cones. Rods sense changes in brightness but not wavelength, so they see only black or white and shades of gray. They are very sensitive. Because rods work well in low light, they are also the cells that adapt to low light. Dark adaptation occurs as the eye recovers its ability to see when moving from a brightly lit state to a dark state.
</p>
<div id="callouts"></div>
</div>
</div>
</section>
</div>
</div>
<script src="js/jquery-latest.js"></script>
<script src="js/bootstrap.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="js/widget-base.js"></script>
<script src="js/widget-callouts.js"></script>
<script src="js/eventmanager.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-sketch.js"></script>
!-->
<script>
// local aliases for convenience
var Size = pearson.utils.Size;
var SVGContainer = pearson.brix.SVGContainer;
var Image = pearson.brix.Image;
var CaptionedImage = pearson.brix.CaptionedImage;
var Carousel = pearson.brix.Carousel;
var ImageViewer = pearson.brix.ImageViewer;
var Callouts = pearson.brix.Callouts;
var LineGraph = pearson.brix.LineGraph;
var LabelGroup = pearson.brix.LabelGroup;
var Button = pearson.brix.Button;
var Slider = pearson.brix.Slider;
var Readout = pearson.brix.Readout;
var Sketch = pearson.brix.Sketch;
var EventManager = pearson.utils.EventManager;
var SubmitManager = pearson.brix.SubmitManager;
var MultipleChoiceQuestion = pearson.brix.MultipleChoiceQuestion;
var SelectGroup = pearson.brix.SelectGroup;
var eventManager = new EventManager();
var imgvwrConfig4 =
{
items:
[
new Image({
URI: 'img/brainVisualSystem.jpg',
caption: "Cross section of human brain visual system.",
actualSize: {height: 492, width: 716},
displayWidth: 477
}),
new Image({
URI: 'img/brainVisual60.jpg',
caption: "60 degree view of the brain.",
actualSize: {height: 492, width: 716},
}),
new Image({
URI: 'img/brainVisualFront.jpg',
caption: "Human brain front view.",
actualSize: {height: 492, width: 716},
}),
new Image({
URI: 'img/brainBack.jpg',
caption: "Human brain rear view.",
actualSize: {height: 492, width: 716}
})
],
};
var cntrConfig4 =
{
node: d3.select("#carousel"),
maxSize: {width: 477, height: 475}
};
var cntr4 = new SVGContainer(cntrConfig4);
var imgvwr4 = new ImageViewer(imgvwrConfig4, eventManager);
cntr4.append(imgvwr4, {topPercentOffset: 0, leftPercentOffset: 0, heightPercent: 1, widthPercent: 1});
var textChunks = new Callouts (
{id: "brainStuff",
headers: ["Function"],
textBits: [
{cols:["About 90% of the axons in the optic nerve go to the lateral geniculate nucleus in the thalamus. These axons originate from the retina. This parallel processing is important for reconstructing the visual world."], key: "thalamus"
},
{cols: ["The dorsal stream, commonly referred to as the 'where' stream, is involved in spatial attention (covert and overt), and communicates with regions that control eye movements and hand movements. More recently, this area has been called the 'how' stream to emphasize its role in guiding behaviors to spatial locations. "], key: "dorsal"
},
{cols:["Primary Visual Pathway is the connection from the retina to the visual cortex via the optic nerve. The visual cortex is the largest system in the human brain and is responsible for processing the visual image."], key: "pathway"
},
{cols: ["The ventral stream, commonly referred as the 'what' stream, is involved in the recognition, identification and categorization of visual stimuli. There is still much debate about the degree of specialization between this and the dorsal stream; the two streams are heavily interconnected."], key: "ventral"},
{cols: ["Different populations of ganglion cells in the retina sense light, and send that information to the brain through the optic nerve. "], key: "eye"},
{cols: ["Vision affects many other physical systems, including balance. Vision information is communicated to the rest of the body through the brainstem."], key: "stem"}
]
});
textChunks.draw(d3.select("#callouts"));
var hotspots = new Sketch({
id: "spots",
type: "hot",
drawShape:
[
{ key: "thalamus", fill: "White", shape: "path", data: [{d:"M280.25,209.5c0,0,2-6,4-10s-15-5,5-13s27-8,34-7s17,9,17,9l7,21l-7,14l-21,2h-16L280.25,209.5z"}]},
{ key: "dorsal", fill: "White", shape: "path", data: [{d: "M161.25,158.5c3-10,19-37,25-45s38-17,47-22s18-3,19,4s-14,15-14,15s9,17,2,17s-19,7-29,12s-7,6-20,14s-6.783,16.835-11,21c-3.246,3.206-18-3-18-3L161.25,158.5z"}]},
{ key: "pathway", fill: "White", shape: "path", data: [{d: "M134.25,204.5c0,0,23-13,32-9s19,6,26,1s19,2,15,14s-37,31-30,41 s-3,23,5,32s18,12,5,18s-36,10-40,3s-16-53-16-53S123.25,217.5,134.25,204.5z"}]},
{ key: "pathway", fill: "White", shape: "circle", data: [{xyPos: [0.6, 0.6], radius: .05 }]},
{ key: "ventral", fill: "White", shape: "path", data: [{d: "M205.25,279.5c11.229-4.679,32-11,58-11s33-8,44,1s7,8,9,25s-24,19-46,24s-46,4-51,0S193.25,284.5,205.25,279.5z"}]},
{ key: "eye", fill: "White", shape: "circle", data: [{xyPos: [0.85, 0.48], radius: .05 }]},
],
}, eventManager);
cntr4.append(hotspots, {topPercentOffset: .1, leftPercentOffset: -.1, heightPercent: 1, widthPercent: 1});
var brainLabels = new LabelGroup(
{id: "brainLabel",
labels:
[
{content: "Thalamus", xyPos: [.45,.75], width: 100, key: "thalamus"},
{content: "Dorsal Stream", xyPos:[.1,.85], width: 100, key: "dorsal"},
{content: "Primary Visual Pathway", xyPos:[.02,.55], width: 130, key: "pathway"},
{content:"Ventral Stream", xyPos:[.05,.3], width: 120, key: "ventral"},
{content:"Eye", xyPos:[.8,.45], width: 70, key: "eye"},
{content:"Brainstem", xyPos:[.5,.25], width: 100, key: "stem"},
]
}, eventManager);
cntr4.append(brainLabels, {topPercentOffset: .2, leftPercentOffset: 0, heightPercent: .8, widthPercent: 1});
//if we click off the first image, then blank out the hotspots
eventManager.subscribe(imgvwr4.selectedEventId, handleCarouselOverlay);
eventManager.subscribe(hotspots.selectedEventId, handleSelection);
eventManager.subscribe(brainLabels.selectedEventId, handleSelection);
//and show the first piece of text - state
handleSelection({selectKey: "eye"});
/* EventHandler */
function handleSelection (eventDetails) {
textChunks.lite(eventDetails.selectKey);
brainLabels.lite(eventDetails.selectKey);
hotspots.lite(eventDetails.selectKey);
}
function handleCarouselOverlay(eventDetails)
{
if (eventDetails.selectKey==0)
{
brainLabels.setOpacity(1,100,0);
}
else
{
//this is not right. It makes all the hotspots invisible, but they are still there
//and active. What we want is to remove them entirely.
hotspots.setOpacity(0, 100, 0);
brainLabels.setOpacity(0,100,0);
}
}
</script>
</body>
</html>