-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
218 lines (171 loc) · 5.2 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
<!doctype html>
<html class="no-js" lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=yes">
<title>Ashton Eaton - The Register-Guard | Eugene, Ore.</title>
<meta name="description" content="">
<meta name="keywords" content="">
<script>/*! https://gist.github.com/mhulse/4704893 */;(function(a){a.className=a.className.replace(/\bno-js\b/,'js')}(document.documentElement));</script>
<link rel="stylesheet" href="zepplin/zep_styles.css">
<link rel="stylesheet" href="styles.css">
<style>
.progress-indicator-2 {
position:fixed;
top:0;
left:0;
height: 10px;
background-color: white;
z-index: 9999;
}
.no-js body{
display: none;
}
body{
background- color:white;
}
</style>
<script src="http://cdn.jsdelivr.net/headroomjs/0.5.0/headroom.min.js"></script>
<script>
window.onload = function() {
var zeppelin = new Headroom(document.querySelector('header'), {
'tolerance': 10,
'offset': 205,
'classes': {
'initial': 'z_animated',
'pinned': 'z_slide-down',
'unpinned': 'z_slide-up',
'top': 'z_top',
'notTop': 'z_top'
}
});
zeppelin.init();
};
</script>
</head>
<body>
<!-- >>>> HEAD <<<< -->
<!-- <header id="zeppelin" role="banner">
<h1 style="width:304px;float:left;"><a href="http://registerguard.com">The Register-Guard</a></h1>
<p style="margin:0 310px;width:304px;float:left;">Ashton Eaton</p>
</header> -->
<!-- >>>> /HEAD <<<< -->
<div class="progress-indicator-2"></div>
<!-- ONE -->
<!-- headline -->
<section id="run_head">
<h1>story stack</h1>
<div id="run_instruct">
Scroll down, use the arrow keys or press the spacebar to see more.
</div>
</section>
<!-- TWO -->
<!-- text -->
<section>
This is text. Format it however you want.
</section>
<!-- THREE -->
<!-- img -->
<section style="background:url(media/ashton_0.jpg) no-repeat;background-size:100%;">
</section>
<!-- FOUR -->
<!-- img w/ text -->
<section style="background:url(media/ashton_0.jpg) no-repeat;background-size:100%;">
<div style="text-align:right">This is a news slide but the same background image.</div>
</section>
<!-- FIVE -->
<!-- img w/ text -->
<section style="background:url(media/ashton_0.jpg) no-repeat;background-size:100%;">
<div style="text-align:right">Another new slide, same image.</div>
</section>
<!-- SIX -->
<!-- img w/ text -->
<section style="background:url(media/ashton_0.jpg) no-repeat;background-size:100%;">
<div style="text-align:right">Pretty nifty, huh?</div>
</section>
<!-- SEVEN -->
<!-- img -->
<section style="background:url(media/ashton_1.jpg) no-repeat;background-size:100%;">
</section>
<!-- EIGHT -->
<!-- video embed -->
<section>
<div style="width:100%;margin:0 auto;">
<div class="mm embed">
<iframe width="100%" height="100%" src="http://www.youtube.com/embed/eacGuG660_A" frameborder="0" allowfullscreen></iframe>
</div>
</div>
</section>
<!-- NINE -->
<!-- map embed -->
<section>
<div style="width:100%;margin:0 auto;">
<div class="mm embed">
<iframe width="100%" height="100%" scrolling="no" frameborder="no" src="https://www.google.com/fusiontables/embedviz?q=select+col2+from+14ZB6NnCtR_ks9-kxNnIiDGOZDIEKEm-xGLwgsdGQ&viz=MAP&h=false&lat=43.931893415237845&lng=-123.11440981250007&t=1&z=9&l=col2&y=2&tmplt=2&hml=TWO_COL_LAT_LNG"></iframe>
</div>
</div>
</section>
<section>
<div class="run_credits">
<p>PHOTOS BY</p>
<p style="font-size: 1.5em; line-height:1.5em; margin-top:-2%;">KEVIN CLARK, BRIAN DAVIES,<br>ANDY NELSON & CHRIS PIETSCH</p>
</div>
</section>
<section>
<div class="run_credits">
<div class="run_trg">The Register-Guard</div>
<div class="run_copy">REGISTERGUARD.COM<br>©2014</div>
</div>
</section>
<script src="d3stack/d3.v3.min.js"></script>
<script src="d3stack/stack.v1.js"></script>
<script>
// http://stackoverflow.com/questions/2915833/how-to-check-browser-for-touchstart-support-using-js-jquery
// if not touch screen remove #z
if('ontouchstart' in document){}
else{
d3.selectAll('section.run_bye').remove();
}
//
// stack
var mystack = stack()
.on('activate', activate)
.on('deactivate', deactivate);
// load
$(document).ready(function(){
$('.js').show();
});
</script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script>
(function(){
var $w = $(window);
var $circ = $('.animated-circle');
var $progCount = $('.progress-count');
var $prog2 = $('.progress-indicator-2');
var wh, h, sHeight;
function setSizes(){
wh = $w.height();
h = $('body').height();
sHeight = h - wh;
}
setSizes();
$w.on('scroll', function(){
var perc = Math.max(0, Math.min(1, $w.scrollTop()/sHeight));
updateProgress(perc);
}).on('resize', function(){
setSizes();
$w.trigger('scroll');
});
function updateProgress(perc){
var circle_offset = 126 * perc;
$circ.css({
"stroke-dashoffset" : 126 - circle_offset
});
$progCount.html(Math.round(perc * 100) + "%");
$prog2.css({width : perc*100 + '%'});
}
}());
</script>
</body>
</html>