-
Notifications
You must be signed in to change notification settings - Fork 1
/
wc66.html
322 lines (315 loc) · 11.3 KB
/
wc66.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
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8' />
<title></title>
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
<script src='https://api.tiles.mapbox.com/mapbox-gl-js/v0.44.1/mapbox-gl.js'></script>
<link href='https://api.tiles.mapbox.com/mapbox-gl-js/v0.44.1/mapbox-gl.css' rel='stylesheet' />
<style>
body { margin:0; padding:0; }
#map { position:absolute; top:0; bottom:0; width:100%; }
</style>
</head>
<body>
<style>
#map {
position: fixed;
width:60%;
}
#features {
width: 40%;
margin-left: 60%;
font-family: Arial;
overflow-y: scroll;
background-color: #fafafa;
}
section {
padding: 25px 50px;
line-height: 25px;
border-bottom: 1px solid #ddd;
opacity: 0.25;
font-size: 20px;
}
section.active {
opacity: 0.75;
}
section:last-child {
border-bottom: none;
margin-bottom: 1000px;
}
#marker {
background-image: url('/mapbox-gl-js/assets/washington-monument.jpg');
background-size: cover;
width: 50px;
height: 50px;
border-radius: 50%;
cursor: pointer;
}
.mapboxgl-popup {
max-width: 200px;
}
</style>
<div id='map'></div>
<div id='features'>
<section id='start' class='active'>
<h3>World Cup 1966</h3>
<h4>The Route to the Final</h4><br>
<img src="https://upload.wikimedia.org/wikipedia/en/3/38/England_crest_2009.svg" style="width:25%;height:25%;"><br><br>
<img src="https://raw.githubusercontent.com/egil1978/egil1978.github.io/master/Ordnance%20Survey%20Logo%20RGB_144.png" style="width:50%;height:50%;"><br>
<font size="1">In July 1966 the eighth staging of the FIFA World Cup was held in England.
Sir Alf Ramsey was manager and the Beatles were at number one with Paperback Writer. Sir Alf took a team of 22 players to the finals and this is their journey.<br>
Contains OS data © Crown copyright and database rights 2018</font>
</section>
<section id='section1' class='active'>
<h4>The Squad</h4>
<font size="1"><a href="https://en.wikipedia.org/wiki/Alf_Ramsey">Manager - Sir Alf Ramsey</a><br>
<a href="https://en.wikipedia.org/wiki/Gordon_Banks">No.1 Goal Keeper - Gordon Banks</a><br>
<a href="https://en.wikipedia.org/wiki/George_Cohen">No.2 Defender - George Cohen</a><br>
<a href="https://en.wikipedia.org/wiki/Ray_Wilson_(English_footballer)">No.3 Defender - Ray Wilson</a><br>
<a href="https://en.wikipedia.org/wiki/Nobby_Stiles">No.4 Midfielder - Nobby Stiles</a><br>
<a href="https://en.wikipedia.org/wiki/Jack_Charlton">No.5 Defender - Jack Charlton</a><br>
<a href="https://en.wikipedia.org/wiki/Bobby_Moore">No.6 Defender (Captain) - Bobby Moore</a><br>
<a href="https://en.wikipedia.org/wiki/Alan_Ball_Jr.">No.7 Midfielder - Alan Ball</a><br>
<a href="https://en.wikipedia.org/wiki/Jimmy_Greaves">No.8 Forward - Jimmy Greaves</a><br>
<a href="https://en.wikipedia.org/wiki/Bobby_Charlton">No.9 Midfielder - Bobby Charlton</a><br>
<a href="https://en.wikipedia.org/wiki/Geoff_Hurst">No.10 Forward - Geoff Hurst</a><br>
<a href="https://en.wikipedia.org/wiki/John_Connelly_(footballer)">No.11 Forward - John Connelly</a><br>
<a href="https://en.wikipedia.org/wiki/Ron_Springett">No.12 Goal Keeper - Ron Springett</a><br>
<a href="https://en.wikipedia.org/wiki/Peter_Bonetti">No.13 Goal Keeper - Peter Bonetti</a><br>
<a href="https://en.wikipedia.org/wiki/Jimmy_Armfield">No.14 Defender - Jimmy Armfield</a><br>
<a href="https://en.wikipedia.org/wiki/Gerry_Byrne_(footballer)">No.15 Defender - Gerry Byrne</a><br>
<a href="https://en.wikipedia.org/wiki/Martin_Peters">No.16 Midfielder - Martin Peters</a><br>
<a href="https://en.wikipedia.org/wiki/Ron_Flowers">No.17 Midfielder - Ron Flowers</a><br>
<a href="https://en.wikipedia.org/wiki/Norman_Hunter_(footballer)">No.18 Defender - Norman Hunter</a><br>
<a href="https://en.wikipedia.org/wiki/Terry_Paine">No.19 Forward - Terry Paine</a><br>
<a href="https://en.wikipedia.org/wiki/Ian_Callaghan">No.20 Midfielder - Ian Callaghan</a><br>
<a href="https://en.wikipedia.org/wiki/Roger_Hunt">No.21 Forward - Roger Hunt</a><br>
<a href="https://en.wikipedia.org/wiki/George_Eastham">No.22 Midfielder - George Eastham</a><br>
</section>
<section id='section2'>
<h3>Group 1</h3>
<h4>Monday 11th July<br>England 0 - 0 Uruguay</h4>
<iframe width="500" height="350" src="https://www.youtube.com/embed/S7UTNoIr37k" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
</section>
<section id='section3'>
<h3>Group 1</h3>
<h4>Wednesday 13th July<br>France 1 - 1 Mexico</h4>
</section>
<section id='section4'>
<h3>Group 1</h3>
<h4>Friday 15 July<br>Uruguay 2 - 1 France</h4>
</section>
<section id='section5'>
<h3>Group 1</h3>
<h4>Saturday 16th July<br>England 2 - 0 Mexico</h4>
<font size="1">B.Charlton 37'<br>Hunt 75'</font>
<iframe width="500" height="350" src="https://www.youtube.com/embed/g2yiCIy0xK4" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
</section>
<section id='section5'>
<h3>Group 1</h3>
<h4>Tuesday 19th July<br>Uruguay 0 - 0 Mexico</h4>
</section>
<section id='section6'>
<h3>Group 1</h3>
<h4>Wednesday 20th July<br>England 2 - 0 France</h4>
<font size="1">Hunt 38' 75'</font>
<iframe width="500" height="350" src="https://www.youtube.com/embed/sS-LVv7ptIA" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
</section>
<section id='section7'>
<h3>Quarter-finals</h3>
<h4>Saturday 23rd July<br>England 1 - 0 Argentina</h4>
<font size="1">Hurst 78'</font>
<iframe width="500" height="350" src="https://www.youtube.com/embed/_tANCIPdcIY" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
</section>
<section id='section8'>
<h3>Quarter-finals</h3>
<h4>Saturday 23rd July<br>West Germany 4 - 0 Uruguay</h4>
</section>
<section id='section9'>
<h3>Quarter-finals</h3>
<h4>Saturday 23rd July<br>Soviet Union 2 - 1 Hungary</h4>
</section>
<section id='section10'>
<h3>Quarter-finals</h3>
<h4>Saturday 23rd July<br>Portugal 5 - 3 North Korea</h4>
</section>
<section id='section11'>
<h3>Semi-finals</h3>
<h4>Monday 25th July<br>West Germany 2 - 1 Soviet Union</h4>
</section>
<section id='section12'>
<h3>Semi-finals</h3>
<h4>Tuesday 26th July<br>England 2 - 1 Portugal</h4><br><font size="1">B.Charlton 30' 80'</font>
<iframe width="500" height="350" src="https://www.youtube.com/embed/25Wk11KAnuI" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
</section>
<section id='section13'>
<h3>Third place</h3>
<h4>Thursday 28th July<br>Portugal 2 - 1 Soviet Union</h4>
</section>
<section id='section14'>
<h3>Final</h3>
<h4>England 4 - 2 West Germany</h4>
<font size="1">Hurst 18' 101' 120'<br>Peters 78'</font>
<iframe width="500" height="350" src="https://www.youtube.com/embed/C0aK2IgORGA" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
</section>
</div>
<script>
mapboxgl.accessToken = 'pk.eyJ1IjoiZ2VvZGF0YXZpeiIsImEiOiJjamgxMGRkNXYwZXhuMnFubHg1ZDg4YTY2In0.T_VVqnOpZ0Yz134UMnp6Yw';
var monument = [-0.279433, 51.555952];
var map = new mapboxgl.Map({
container: 'map',
style: 'mapbox://styles/geodataviz/cji4i2hg40fin2sloeqbq9dvr',
bearing: 0,
center: [-1.038997, 53.211250],
zoom: 6,
speed: 0.5,
pitch: 0,
interactive:false
});
// create the popup
var popup = new mapboxgl.Popup({ offset: 25 })
.setText('Construction on the Washington Monument began in 1848.');
// create DOM element for the marker
var el = document.createElement('div');
el.id = 'marker';
// create the marker
new mapboxgl.Marker(el)
.setLngLat(monument)
.setPopup(popup) // sets a popup on this marker
.addTo(map);
var chapters = {
'start': {
bearing: 0,
center: [-1.992864, 52.967712],
zoom: 6.65,
speed: 0.5,
pitch: 0
},
'section1': {
bearing: 0,
center: [-1.992864, 52.967712],
zoom: 6.65,
speed: 0.5,
pitch: 0
},
'section2': {
bearing: -49.60,
center: [-0.278854, 51.555950],
zoom: 16,
speed: 0.5,
pitch: 60
},
'section3': {
bearing: -49.60,
center: [-0.278854, 51.555950],
zoom: 16,
speed: 0.5,
pitch: 60
},
'section4': {
bearing: 0,
center: [-0.234273, 51.514681],
zoom: 13,
speed: 0.5,
pitch: 36
},
'section5': {
bearing: -49.60,
center: [-0.278854, 51.555950],
zoom: 16,
speed: 0.5,
pitch: 60
},
'section6': {
bearing: -49.60,
center: [-0.278854, 51.555950],
zoom: 16,
speed: 0.5,
pitch: 60
},
'section7': {
bearing: -49.60,
center: [-0.278854, 51.555950],
zoom: 16,
speed: 0.5,
pitch: 60
},
'section8': {
bearing: -36.01,
center: [-1.499419, 53.409347],
zoom: 15.55,
speed: 0.5,
pitch: 58.50
},
'section9': {
bearing: 12.02,
center: [-1.375468, 54.922034],
zoom: 16,
speed: 0.5,
pitch: 50
},
'section10': {
bearing: -20.78,
center: [-2.966580, 53.438516],
zoom: 15.75,
speed: 0.5,
pitch: 44.50
},
'section11': {
bearing: -20.78,
center: [-2.966580, 53.438516],
zoom: 15.75,
speed: 0.5,
pitch: 44.50
},
'section12': {
bearing: -49.60,
center: [-0.278854, 51.555950],
zoom: 16,
speed: 0.5,
pitch: 60
},
'section13': {
bearing: -49.60,
center: [-0.278854, 51.555950],
zoom: 16,
speed: 0.5,
pitch: 60
},
'section14': {
bearing: -49.60,
center: [-0.278854, 51.555950],
zoom: 16,
speed: 0.5,
pitch: 60
},
};
// On every scroll event, check which element is on screen
window.onscroll = function() {
var chapterNames = Object.keys(chapters);
for (var i = 0; i < chapterNames.length; i++) {
var chapterName = chapterNames[i];
if (isElementOnScreen(chapterName)) {
setActiveChapter(chapterName);
break;
}
}
};
var activeChapterName = 'start';
function setActiveChapter(chapterName) {
if (chapterName === activeChapterName) return;
map.flyTo(chapters[chapterName]);
document.getElementById(chapterName).setAttribute('class', 'active');
document.getElementById(activeChapterName).setAttribute('class', '');
activeChapterName = chapterName;
}
function isElementOnScreen(id) {
var element = document.getElementById(id);
var bounds = element.getBoundingClientRect();
return bounds.top < window.innerHeight && bounds.bottom > 0;
}
</script>
</body>
</html>
view rawresumap.html hosted with ❤ by GitHub