-
Notifications
You must be signed in to change notification settings - Fork 9
/
index.html
59 lines (59 loc) · 3.33 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Scrolly Teller Example</title>
<link type="text/css" rel="stylesheet" href="dist/bundle.css"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<div class="app-container" id="scrolly-teller-app">
<div class="title-area">
<div class="title left">ScrollyTeller</div>
<h3 class="intro left">ScrollyTeller is a JavaScript library that builds the HTML for a scrolling
data story from csv files, and provides a flexible framework for triggering chart actions when
text "narration" scrolls into view. For an introduction to the mechanics of scrollytelling, see the
excellent <a href="https://github.com/russellgoldenberg/scrollama"
target="_blank">Scrollama</a> library, which
ScrollyTeller relies on for detecting scroll events
and progress.</h3>
<p class="intro left"><strong>Scroll down</strong> to learn how to create a data story using
ScrollyTeller. The <strong>spacebar</strong> and <strong>arrow keys</strong> also advance the
story.</p>
<p class="intro left">Use the <span class="navbar" style="display: inline; padding: 0; margin: 0;">
<span class="navButton" style="padding: 5px;">buttons</span></span> to jump to different parts of the
story.</p>
</div>
<nav class="navbar">
<div
data-section="introduction"
data-narrationtarget="introStart"
class="navButton intro"><h3>Overview</h3></div>
<div data-section="wealthAndHealth"
data-narrationtarget="storyConfigStart"
class="navButton storyConfig"><h3>Story Config</h3></div>
<div data-section="wealthAndHealth"
data-narrationtarget="sectionConfigStart"
class="navButton sectionConfig"><h3>Section Config</h3></div>
<div data-section="wealthAndHealth"
data-narrationtarget="fetchNarrationStart"
class="navButton fetchNarration"><h3>Fetch Narration</h3></div>
<div data-section="wealthAndHealth"
data-narrationtarget="fetchDataStart"
class="navButton fetchData"><h3>Fetch Data</h3></div>
<div data-section="wealthAndHealth"
data-narrationtarget="renderGraphStart"
class="navButton renderGraph"><h3>Render Graph</h3></div>
<div data-section="wealthAndHealth"
data-narrationtarget="eventHandlersStart"
class="navButton eventHandlers"><h3>Event Handlers</h3></div>
<div data-section="builtInTriggers"
data-narrationtarget="builtInTriggersStart"
class="navButton builtInTriggers"><h3>Built-in Triggers</h3></div>
</nav>
<div id="app"></div>
</div>
<script src="https://cdn.jsdelivr.net/gh/google/code-prettify/loader/run_prettify.js"></script>
<script type="text/javascript" src="dist/bundle.js"></script>
</body>
</html>