forked from MinnPost/jquery-vertical-timeline
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathexample.html
More file actions
76 lines (64 loc) · 2.58 KB
/
example.html
File metadata and controls
76 lines (64 loc) · 2.58 KB
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
<!doctype html>
<html class="no-js" lang="en" xmlns:fb="http://www.facebook.com/2008/fbml" xmlns:og="http://opengraphprotocol.org/schema/">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>jQuery Vertical Example</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width">
<!-- Include CSS for Timeline -->
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<!-- Include container for timeline -->
<h1>Vertical Timeline Example 1</h1>
<div class="timeline-jquery-example-1" style="width: 600px; margin: 0 auto;">
</div>
<h1>Vertical Timeline Example 2</h1>
<div class="timeline-jquery-example-2">
</div>
<h1>Vertical Timeline Example 3</h1>
<div class="timeline-jquery-example-3">
</div>
<h1>Vertical Timeline Example 4</h1>
<div class="timeline-jquery-example-4">
</div>
<!-- Include scripts -->
<script type="text/javascript" src="js/libs/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="js/libs/handlebars-1.0.rc.1.min.js"></script>
<script type="text/javascript" src="js/libs/tabletop-zzolo.master-20130402.min.js"></script>
<script type="text/javascript" src="js/libs/jquery.isotope.v1.5.21.min.js"></script>
<script type="text/javascript" src="js/libs/jquery.ba-resize.v1.1.min.js"></script>
<script type="text/javascript" src="js/libs/jquery.imagesloaded.v2.1.0.min.js"></script>
<script type="text/javascript" src="js/jquery-veritcal-timeline.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$('.timeline-jquery-example-1').verticalTimeline({
key: '0AsmHVq28GtVJdG1fX3dsQlZrY18zTVA2ZG8wTXdtNHc',
sheetName: 'Posts'
});
$('.timeline-jquery-example-2').verticalTimeline({
key: 'https://docs.google.com/spreadsheet/pub?key=0AtX8MXQ89fOKdDZadGcyNE9CZmFZV29tQjI5RFU3X3c&output=html',
sheetName: 'timeline-data',
defaultDirection: 'oldest',
defaultExpansion: 'collapsed',
groupFunction: 'groupSegmentByDecade',
width: '50%'
});
$.getJSON('./example.json', function(data) {
$('.timeline-jquery-example-3').verticalTimeline({
data: data,
width: '75%'
});
});
$('.timeline-jquery-example-4').verticalTimeline({
key: '0AjYft7IGrHzNdHVTTi1xRGtpdHV5SzJDZW4yRnlRN2c',
sheetName: 'Entries',
tabletopOptions: {
parameterize: 'http://gs-proxy.herokuapp.com/proxy?url='
}
});
});
</script>
</body>
</html>