-
Notifications
You must be signed in to change notification settings - Fork 4
/
even-column.html
239 lines (222 loc) · 6.17 KB
/
even-column.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
<!DOCTYPE html>
<html>
<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>
<p class="lc_ec_leading">Your learning objective content goes here. This column is wrapped to even (1/2) width because of the lc_ec_fiftyFifty class on the section. Aenean ut est quis est consequat rutrum quis sit amet metus. Donec vitae malesuada justo. Vivamus feugiat justo a sem bibendum, ac semper risus condimentum. Ut ullamcorper nunc lorem, a vestibulum sapien placerat eget. Cras eu faucibus justo. Duis accumsan quam fringilla ullamcorper tincidunt. Duis odio leo, accumsan et tellus non, egestas commodo urna.</p>
<!-- use the HTML5 figure tag to handle the illustrations/interactives -->
<figure class="lc_ec_trailing">
<div id="Target0" style="
width: 100%;
height: 200px;
background: #ccc;
border: 1px solid #999;
text-align: center;
padding: 30px;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
">
foo
</div>
</figure>
</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/widget-base.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>
// local aliases for convenience
var EventManager = pearson.utils.EventManager;
var Rect = pearson.utils.Rect;
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 LabelGroup = pearson.brix.LabelGroup;
var MarkerGroup = pearson.brix.MarkerGroup;
var BarChart = pearson.brix.BarChart;
var LineGraph = pearson.brix.LineGraph;
var PieChart = pearson.brix.PieChart;
var Legend = pearson.brix.Legend;
var testData = [
{ x: 0,
y: 0
},
{ x: 5,
y: 5
},
{ x: 10,
y: 10}
];
var logData = [
{ x: 1,
y: 0.0011
},
{ x: 150,
y: 0.02
},
{ x: 500,
y: 0.2
},
{ x: 1300,
y: 0.36
},
{ x: 1400,
y: 0.34
},
{ x: 1500,
y: 0.425
},
{ x: 1600,
y: 0.545
},
{ x: 1700,
y: 0.61
},
{ x: 1750,
y: 0.7
},
{ x: 1800,
y: 0.9
},
{ x: 1850,
y: 1.128
},
{ x: 1900,
y: 1.55
},
{ x: 1910,
y: 1.75
},
{ x: 1920,
y: 1.86
},
{ x: 1925,
y: 2.0
},
{ x: 1940,
y: 2.3
},
{ x: 1950,
y: 2.529346
},
{ x: 1960,
y: 3.023358
},
{ x: 1965,
y: 3.33167
},
{ x: 1970,
y: 3.685777
},
{ x: 1974,
y: 4.00
},
{ x: 1980,
y: 4.437609
},
{ x: 1985,
y: 4.846247
},
{ x: 1990,
y: 5.290452
},
{ x: 1996,
y: 6.00
},
{ x: 2000,
y: 6.115367
},
{ x: 2005,
y: 6.512276
},
{ x: 2010,
y: 6.908688
}
]; // array of line data
var svg0 = new SVGContainer(
{node: d3.select("#Target0"),
maxWid: 500,
maxHt: 300
}
);
var graph = new LineGraph({
id: "pop",
Data: [logData],
type: "lines",
xAxisFormat: { type: "linear",
ticks: [1200,1300,1500,1900,2010],
orientation: "bottom",
label: "Year" },
yAxisFormat: { type: "linear",
ticks: 5,
orientation: "right",
label: "Population (Billions)" },
});
svg0.append(graph, {topPercentOffset: 0, leftPercentOffset: 0, heightPercent: 1, widthPercent: 1});
</script>
</body>
</html>