forked from EmoryDHLab/speculative
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·380 lines (340 loc) · 18.6 KB
/
index.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
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
<!-- h1 is the main title of the page, The Shape of History, nothing else
h2 is the subtitle of each section, like About and How it Works
h3 are the subtitles of the subtitles of each section, like the instructions Click the right arrow...
h4 are the subtitles in each section, like Events and Events and their corresponding squares -->
<!DOCTYPE html>
<html lang="en">
<head>
<link href='https://fonts.googleapis.com/css?family=PT+Sans|PT+Sans+Narrow:400,700|Inconsolata' rel='stylesheet' type='text/css'>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>The Shape of History</title>
<!-- Bootstrap -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
<link href="css/style.css" rel="stylesheet">
<link href="css/fjord.css" rel="stylesheet">
</head>
<body>
<section class="speculative_intro">
<div class="fullrow row intro section">
<div class="container-fluid introban">
<h1>The Shape of History</h1>
<br>
<div class="col-md-8 col-md-offset-2">
<h2>What is the shape of history? How does that shape affect our sense of history itself?</h2>
</div>
</div>
</div>
</section><!--close section intro-->
<!-- <section class="walkthrough">
--> <div class="section row narrative" id="history">
<div class="container">
<h2>About</h2>
<br>
<div class = "row">
<div class="col-md-6">
<p>What is the shape of history? Does it unfold along a path, proceeding from past to present? Does it cycle, repeating both triumphs and tragedies? Or is it something else altogether, a shape that reflects the complexities and ambiguities of recorded time?</p>
<br>
<p>When we give shape to history, we make choices that impact how we understand history itself. A timeline, for instance, reinforces our sense of history’s inevitable forward progression. A clocklike arrangement, on the other hand, suggests the cyclical nature of historical events. But what if the goal of giving shape to history were to allow each person, individually, to make sense of history for herself?</p>
<br>
<p>This was the goal of Elizabeth Peabody, the nineteenth-century writer, editor, educator, and activist. Drawing from a system developed in Poland earlier in the century, she devised a method of translating history into shape and color. She aimed to appeal to the mind’s eye—a phrase she herself employed—so that each viewer could create her own story to explain the events of the past.</p>
</div>
</div>
</div>
</div><!--close history-->
<!-- </section>
-->
<div class="section row explanation" id="howitworks">
<div class="container">
<h2>How it Works</h2>
<h3 id="h3_howitworks">Click to learn how Peabody envisioned her method.</h3>
<!--data interval = "false" stops it from automatically cycling through-->
<div id="carousel-example-generic" class="carousel" data-ride="carousel" data-interval="false">
<!-- Indicators -->
<ol class="carousel-indicators">
<li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li>
<li data-target="#carousel-example-generic" data-slide-to="1"></li>
<li data-target="#carousel-example-generic" data-slide-to="3"></li>
<li data-target="#carousel-example-generic" data-slide-to="4"></li>
<li data-target="#carousel-example-generic" data-slide-to="5"></li>
<li data-target="#carousel-example-generic" data-slide-to="6"></li>
<li data-target="#carousel-example-generic" data-slide-to="7"></li>
<li data-target="#carousel-example-generic" data-slide-to="8"></li>
<li data-target="#carousel-example-generic" data-slide-to="9"></li>
</ol>
<!-- Wrapper for slides -->
<div class="carousel-inner" role="listbox">
<div class="item active">
<img src="img/imgseq_9-23-01.png" alt="...">
</div>
<div class="item">
<img src="img/imgseq_9-23-02.png" alt="...">
</div>
<div class="item">
<img src="img/imgseq_9-23-03.png" alt="...">
</div>
<div class="item">
<img src="img/imgseq_9-23-04.png" alt="...">
</div>
<div class="item">
<img src="img/imgseq_9-23-05.png" alt="...">
</div>
<div class="item">
<img src="img/imgseq_9-23-06.png" alt="...">
</div>
<div class="item">
<img src="img/imgseq_9-23-07.png" alt="...">
</div>
<div class="item">
<img src="img/imgseq_9-23-08.png" alt="...">
</div>
<div class="item">
<img src="img/imgseq_9-23-09.png" alt="...">
</div>
</div>
<!-- Controls -->
<a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev">
<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next" onclick="hide('h3_howitworks')">
<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
</div>
</div>
<div class="row interactive fluid" id="view">
<div class="container">
<h2>View</h2>
<h3 id="h3_view" data-toggle="collapse" data target="#h3_view">Mouse over each event to see its position on the grid.</h3>
<div class="col-md-6">
<img></img>
<br><br>
<div id="viewGrid"></div>
</div>
<div id="viewTools" class="col-md-6">
<h4>Events</h4>
<ol id="sampleList"></ol>
<h4>Event Key</h4>
<div class="row">
<div class="col-md-4">
<!-- <img src="img/eventKey-01.png" id="eventKeyIMG" width="80%" alt="event key"></img> -->
<div id="typeGrid"></div>
</div>
<div class="col-md-8">
<ol id="eventKey">
<li id="type0">Battles, Sieges, Beginning of War</li>
<li id="type1">Conquests, Annexations, Unions</li>
<li id ="type2">Losses and Disasters</li>
<li id ="type3">Falls of States</li>
<li id ="type4">Foundations of States and Revolutions</li>
<li id ="type5">Treaties and Sundries</li>
<li id ="type6">Births</li>
<li id ="type7">Deeds</li>
<li id ="type8">Deaths, of remarkable individuals</li>
</ol>
<!-- <p>TODO: fade-in explanation text should go here</p>
--> </div>
</div>
</div>
</div>
</div><!--close view-->
<div class="section row narrative" id="interaction">
<div class="container">
<h2>Interaction, Updated</h2>
<br>
<div class = "row">
<div class="col-md-6">
<p>Elizabeth Peabody intended her images to be interactive. Along with the charts printed in her textbook, she designed workbooks that would allow each student to identify the major historical events of each era and then, one by one, color them in. Her belief was that, by creating “outlines to the eye,” her students would be able to conjure their own narratives of historical change.</p>
<br>
<p>Recreating Peabody’s interaction for the web is in many ways quite simple. From software like Adobe Photoshop, we understand the concept of the color picker; the mouse (or trackpad) has naturalized the click as a basic mode of interaction; and web programming languages like JavaScript allow us to translate the original interaction into algorithmic form. </p>
<br>
<p>But the resultant images are much less familiar. What do we learn about history—or about visualization—by translating these events into abstraction? Does the image convey a general sense of the unfolding of historical time, as Peabody envisioned? Does it reflect the impressionistic way in which history is recalled from memory? Or something else altogether? </p>
</div>
</div>
</div><!--close interaction-->
</div>
<div class="row interactive fluid" id="build">
<div class="container">
<h2>Interact</h2>
<h3 id="h3_build">Using the color palette below, plot each event on the chart.</h3>
<div class="col-md-6">
<br><br>
<img></img>
<div id="buildGrid"></div>
</div>
<div id="buildTools" class="col-md-6">
<!--THIS IS WHERE YOU ARE WORKING RN #####################################################################################################################################-->
<h4><b>Event</b></h4>
<div class="row">
<div id="buildList" class="col-md-11">
<p><span id="currentYr" class="col-md-2">1501.</span><span id="currentBuildEvent" class="col-md-10">Henry VII. grants patent for colonizing America. <a id='show-hide'>Show</a></span></p>
<div id="eventsNavigation">
<div class="col-md-2"></div>
<div class="col-md-5">
<span id="previous" class="glyphicon glyphicon-menu-left nextPrevButtons" aria-hidden="true"></span>
<span id="eventCounter">1</span>
<img class="corIncor" id="correct" width="21px" height="21px" src="img/correct.svg" alt="correct" hidden="true"/>
<img class="corIncor" id="incorrect" width="21px" height="21px" src="img/incorrect.svg" alt="incorrect" hidden="true"/>
<img class="corIncor" id="na" width="21px" height="21px" src="img/na.svg" alt="n/a"/>
<span id="next" class="glyphicon glyphicon-menu-right nextPrevButtons" aria-hidden="true"></span>
</div>
<div class="col-md-5"></div>
</div>
</div>
<div class="col-md-1"></div>
</div>
<div id="buildPalette">
<h4 style="margin-top:20px; margin-bottom:5px;">Palette</h4>
</div>
<h4>Event Key</h4>
<div class="row">
<div class="col-md-4">
<img src="img/eventKey-01.png" id="eventKeyIMG" width="80%" alt="event key"></img>
</div>
<div class="col-md-8">
<ol id="eventKey">
<li>Battles, Sieges, Beginning of War</li>
<li>Conquests, Annexations, Unions</li>
<li>Losses and Disasters</li>
<li>Falls of States</li>
<li>Foundations of States and Revolutions</li>
<li>Treaties and Sundries</li>
<li>Births</li>
<li>Deeds</li>
<li>Deaths, of remarkable individuals</li>
</ol>
<!-- <p>TODO: fade-in explanation text should go here</p>
--> </div>
</div>
</div>
</div>
</div><!--close build-->
<div class="section row narrative" id="compare">
<div class="container">
<h2>The Data of History</h2>
<br>
<div class="row">
<div class="col-md-6">
<p>The unfamiliarity of Peabody’s grid is striking in contrast to the familiar form of the timeline. The same history, depicted in timeline form, assumes a comforting legibility: the unfolding of past to present, steadily punctuated by significant events.</p>
<br>
<p>The conversion from grid to timeline is made possible, here, because of how each event is stored as data. Country, color, event type, and year; these are the elements that comprise what is, in effect, Peabody’s data structure. Once converted to data, the record of history can be visually represented in any number of different ways.</p>
<br>
<p>Comparing these four representations of the same set of events—as timeline, as data, as grid, and as text—we become alerted to how the representation of data truly matters. We also learn how each visual form reflects a particular sense of the historical record, and our role in the interpretation of it.</p>
</div>
</div>
</div>
</div><!--close compare-->
<div class="row interactive" id="compare2">
<div class="container">
<h2>Compare</h2>
<h3 id="h3_instr">Mouse over any element to see how the four representations of the data compare.</h3>
<div class="col-md-12">
<div id="timelineCompare">TODO: timeline goes here</div>
<div class="col-md-3">
<img></img>
<ol id="internalData"></ol>
</div>
<div class="col-md-5">
<img></img>
<div id="compareGrid"></div>
</div>
<div class="col-md-4">
<ol id="compareList"></ol>
</div>
</div>
</div>
</div><!--close compare2-->
</section><!--close section walkthrough-->
<div class="section row narrative" id="credits">
<div class="container">
<h2>Credits</h2>
<br>
<div class="row">
<div class="col-md-6">
<p>"The Shape of History" was designed and developed in Spring 2016 by Caroline Foster, Erica Pramer, and Lauren Klein. Shivani Negi and Adam Hayward joined the team in Fall 2016, contributing additional features to the project. Version 2.0 will be released in December 2016.</p>
<p>For questions and comments, please contact Lauren Klein, <a href="mailto:[email protected]">[email protected]</a>.</p>
<p>A project of the Georgia Tech <a href="dhlab.lmc.gatech.edu/">Digital Humanities Lab</a>.</p>
</div>
</div>
</div>
</div>
<script src="js/server.js"></script>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="js/bootstrap.min.js"></script>
<!--<script src="js/fjord.js"></script>-->
<script src="js/jquery-1.11.3.min.js"></script>
<script src="js/d3.min.js"></script>
<script src="js/view.js"></script>
<script src="js/compare.js"></script>
<script src="js/build.js"></script>
<script src="js/timeline.js"></script>
<script src="js/fullheight.js"></script>
<script>
var currentEvent=$("#currentBuildEvent"),
currYear=$("#currentYr"),
nextE=$("#next"),
prevE=$("#previous"),
counter=$("#eventCounter");
currentEvent.html(BuildControl.currentEventDesc()+" <a id='show-hide'>Show</a>");
currYear.text(BuildControl.currentYear()+".");
counter.text(BuildControl.getCounter());
$("body").on("click","#show-hide",function(e){
if(BuildControl.getShow()=="Show"){
$("#show-hide").html("Hide");
console.log("Shown");
BuildControl.showMe();
}else if(BuildControl.getShow()=="Hide"){
$("#show-hide").html("Show");
console.log("Hidden");
BuildControl.hideMe();
}
});
prevE.click(function(){
BuildControl.dec();
currentEvent.html(BuildControl.currentEventDesc()+" <a id='show-hide'>Show</a>");
currYear.text(BuildControl.currentYear());
counter.text(BuildControl.getCounter())
$("#show-hide").html(BuildControl.getShow());
});
nextE.click(function(){
BuildControl.inc();
currentEvent.html(BuildControl.currentEventDesc()+" <a id='show-hide'>Show</a>");
currYear.text(BuildControl.currentYear());
counter.text(BuildControl.getCounter());
$("#show-hide").html(BuildControl.getShow());
});
</script>
<script>
$("body").on("click",".buildSquare",function(e){
BuildControl.placeAnswer(e.currentTarget); //e.target is the rect object, where id="type#year#" and class="typeSquare"
});
$("body").on("mouseover",".buildSquare",function(e){
if($(e.currentTarget).attr("fill")=="white"){
$(e.currentTarget).attr("fill","#F3F3F3");
}
});
$("body").on("mouseout",".buildSquare",function(e){
if ($(e.currentTarget).attr("fill")=="#F3F3F3") {
$(e.currentTarget).attr("fill","white");
}
});
</script>
<script>
function hide(target){
document.getElementById(target).style.display = 'none';
}
</script>
</body>
</html>