generated from UltraViolet33/timeline-builder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
43 lines (41 loc) · 1.1 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
<html>
<head>
<link
title="timeline-styles"
rel="stylesheet"
href="https://cdn.knightlab.com/libs/timeline3/latest/css/timeline.css"
/>
<script src="https://cdn.knightlab.com/libs/timeline3/latest/js/timeline.js"></script>
<script
src="https://code.jquery.com/jquery-3.6.0.min.js"
integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4="
crossorigin="anonymous"
></script>
<script
type="text/javascript"
language="javascript"
src="whitney.json"
></script>
<script type="text/javascript">
$.getJSON("france.json", function (data) {
var timeline_json = data;
window.timeline = new TL.Timeline("timeline-embed", timeline_json);
});
</script>
<style>
/* Adjust the timeline-embed container for responsiveness */
#timeline-embed {
width: 100%;
height: 100%;
}
@media (max-width: 1000px) {
.tl-timeline p {
font-size: 36px !important ;
}
}
</style>
</head>
<body>
<div id="timeline-embed"></div>
</body>
</html>