-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtimeline.html
238 lines (230 loc) · 11.4 KB
/
timeline.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
<!doctype html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>Timeline</title>
<style type="text/css" media="screen">
@import url(timeline.css);
#t { width: 700px; }
#t2 { width: 940px; }
#t3 { width: 940px; }
#t,#t2,#t3 {margin: 50px auto;}
#t4 .timeline-wrapper {
height: 230px;
}
#t4 .timeline-content {
padding: 0 10px 5px;
margin: 10px;
}
</style>
</head>
<body>
<h1>Timeline</h1>
<div id="t"></div>
<div class="clearfix"></div>
<div id="t2"></div>
<div class="clearfix"></div>
<div id="t3"></div>
<div class="clearfix"></div>
<h2>The one with HTML pre-built</h2>
<div id="t4">
<div class="timeline-wrapper clearfix">
<div class="timeline-band">
<div id="y1980" class="timeline-content">
<h4><a href="#">test case of 1980</a></h4>
<h5>大事記</h5>
<ul>
<li>安領著發評重一聲原布想小空光議好</li>
<li>帶面福需請地在山只待</li>
<li>賣結我料安。學言員</li>
<li>友候要專帶提年</li>
<li>聲一世感景筆美族大要</li>
</ul>
</div>
<div id="y1981" class="timeline-content">
<h4><a href="#">test case of 1981</a></h4>
<h5>大事記</h5>
<ul>
<li>安領著發評重一聲原布想小空光議好</li>
<li>帶面福需請地在山只待</li>
<li>賣結我料安。學言員</li>
<li>友候要專帶提年</li>
<li>聲一世感景筆美族大要</li>
</ul>
</div>
<div id="y1982" class="timeline-content">
<h4><a href="#">test case of 1982</a></h4>
<h5>大事記</h5>
<ul>
<li>安領著發評重一聲原布想小空光議好</li>
<li>帶面福需請地在山只待</li>
<li>賣結我料安。學言員</li>
<li>友候要專帶提年</li>
<li>聲一世感景筆美族大要</li>
</ul>
</div>
<div id="y1983" class="timeline-content">
<h4><a href="#">test case of 1983</a></h4>
<h5>大事記</h5>
<ul>
<li>安領著發評重一聲原布想小空光議好</li>
<li>帶面福需請地在山只待</li>
<li>賣結我料安。學言員</li>
<li>友候要專帶提年</li>
<li>聲一世感景筆美族大要</li>
</ul>
</div>
<div id="y1984" class="timeline-content">
<h4><a href="#">test case of 1984</a></h4>
<h5>大事記</h5>
<ul>
<li>安領著發評重一聲原布想小空光議好</li>
<li>帶面福需請地在山只待</li>
<li>賣結我料安。學言員</li>
<li>友候要專帶提年</li>
<li>聲一世感景筆美族大要</li>
</ul>
</div>
<div id="y1985" class="timeline-content">
<h4><a href="#">test case of 1985</a></h4>
<h5>大事記</h5>
<ul>
<li>安領著發評重一聲原布想小空光議好</li>
<li>帶面福需請地在山只待</li>
<li>賣結我料安。學言員</li>
<li>友候要專帶提年</li>
<li>聲一世感景筆美族大要</li>
</ul>
</div>
<div id="y1986" class="timeline-content">
<h4><a href="#">test case of 1986</a></h4>
<h5>大事記</h5>
<ul>
<li>安領著發評重一聲原布想小空光議好</li>
<li>帶面福需請地在山只待</li>
<li>賣結我料安。學言員</li>
<li>友候要專帶提年</li>
<li>聲一世感景筆美族大要</li>
</ul>
</div>
<div id="y1987" class="timeline-content">
<h4><a href="#">test case of 1987</a></h4>
<h5>大事記</h5>
<ul>
<li>安領著發評重一聲原布想小空光議好</li>
<li>帶面福需請地在山只待</li>
<li>賣結我料安。學言員</li>
<li>友候要專帶提年</li>
<li>聲一世感景筆美族大要</li>
</ul>
</div>
<div id="y1988" class="timeline-content">
<h4><a href="#">test case of 1988</a></h4>
<h5>大事記</h5>
<ul>
<li>安領著發評重一聲原布想小空光議好</li>
<li>帶面福需請地在山只待</li>
<li>賣結我料安。學言員</li>
<li>友候要專帶提年</li>
<li>聲一世感景筆美族大要</li>
</ul>
</div>
<div id="y1989" class="timeline-content">
<h4><a href="#">test case of 1989</a></h4>
<h5>大事記</h5>
<ul>
<li>安領著發評重一聲原布想小空光議好</li>
<li>帶面福需請地在山只待</li>
<li>賣結我料安。學言員</li>
<li>友候要專帶提年</li>
<li>聲一世感景筆美族大要</li>
</ul>
</div>
<div id="y1990" class="timeline-content">
<h4><a href="#">test case of 1990</a></h4>
<h5>大事記</h5>
<ul>
<li>安領著發評重一聲原布想小空光議好</li>
<li>帶面福需請地在山只待</li>
<li>賣結我料安。學言員</li>
<li>友候要專帶提年</li>
<li>聲一世感景筆美族大要</li>
</ul>
</div>
<div id="y1991" class="timeline-content">
<h4><a href="#">test case of 1991</a></h4>
<h5>大事記</h5>
<ul>
<li>安領著發評重一聲原布想小空光議好</li>
<li>帶面福需請地在山只待</li>
<li>賣結我料安。學言員</li>
<li>友候要專帶提年</li>
<li>聲一世感景筆美族大要</li>
</ul>
</div>
</div>
</div>
<div class="timeline-year-index-wrapper clearfix">
<div class="timeline-year-index clearfix">
<a href="#y1980" class="timeline-year">1980</a>
<a href="#y1981" class="timeline-year">1981</a>
<a href="#y1982" class="timeline-year">1982</a>
<a href="#y1983" class="timeline-year">1983</a>
<a href="#y1984" class="timeline-year">1984</a>
<a href="#y1985" class="timeline-year">1985</a>
<a href="#y1986" class="timeline-year">1986</a>
<a href="#y1987" class="timeline-year">1987</a>
<a href="#y1988" class="timeline-year">1988</a>
<a href="#y1989" class="timeline-year">1989</a>
<a href="#y1990" class="timeline-year">1990</a>
<a href="#y1991" class="timeline-year">1991</a>
</div>
</div>
<div class="timeline-scrollbar">
<div class="timeline-scrollbar-"></div>
</div>
</div>
<script type="text/javascript" src="jquery.min.js"></script>
<script type="text/javascript" charset="utf-8" src="timeline.js"></script>
<script type="text/javascript" charset="utf-8">
$(function() {
$("#t,#t2").timeline({
data: [
[(new Date(1980, 0, 1)), "Foobar 0"],
[(new Date(1981, 0, 1)), "Foobar 1"],
[(new Date(1982, 0, 1)), "Foobar 2"],
[(new Date(1983, 0, 1)), "Foobar 3"],
[(new Date(1984, 0, 1)), "Foobar 4"],
[(new Date(1985, 0, 1)), "Foobar 5"],
[(new Date(1986, 0, 1)), "Foobar 6"],
[(new Date(1987, 0, 1)), "Foobar 7"],
[(new Date(1988, 0, 1)), "Foobar 8"],
[(new Date(1989, 0, 1)), "Foobar 9"],
[(new Date(1990, 0, 1)), "Foobar a"],
[(new Date(1991, 0, 1)), "Foobar b"],
[(new Date(1992, 0, 1)), "Foobar c"],
[(new Date(1993, 0, 1)), "Foobar d"],
[(new Date(1994, 0, 1)), "Foobar e"],
[(new Date(1995, 0, 1)), "Foobar f"]
]
});
$('#t3').timeline({
data: [
[(new Date(1980, 0, 1)), $('#y1980').html()],
[(new Date(1981, 0, 1)), $('#y1981').html()],
[(new Date(1982, 0, 1)), $('#y1982').html()],
[(new Date(1983, 0, 1)), $('#y1983').html()],
[(new Date(1984, 0, 1)), $('#y1984').html()],
[(new Date(1985, 0, 1)), $('#y1985').html()],
[(new Date(1986, 0, 1)), $('#y1986').html()],
[(new Date(1987, 0, 1)), $('#y1987').html()],
[(new Date(1988, 0, 1)), $('#y1988').html()],
[(new Date(1989, 0, 1)), $('#y1989').html()],
[(new Date(1990, 0, 1)), $('#y1990').html()]
]
});
$('#t4').timeline();
});
</script>
</body>
</html>