-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
55 lines (47 loc) · 1.33 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
<!DOCTYPE html>
<html lang="en">
<head>
<title>SAEON TIMELINE</title>
<meta charset="utf-8" />
<meta name="description" content="TimelineJS Embed" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-touch-fullscreen" content="yes" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />
<link
title="timeline-styles"
rel="stylesheet"
href="/index.css"
/>
<script src="https://cdn.knightlab.com/libs/timeline3/latest/js/timeline.js"></script>
<base target="_blank" />
<!-- Style-->
<style>
html,
body {
width: 100%;
height: 100%;
padding: 0px;
margin: 0px;
}
#timeline-embed {
height: 100%;
}
</style>
</head>
<body>
<div id="timeline-embed"></div>
<script type="text/javascript">
const DEFAULT_SOURCE = '1nDhnLDOtmMdvt8OGEDOYuO32yfb2RNlQLzY94jhBFbI'
const source = new URL(window.location.href).searchParams.get('source') ?? DEFAULT_SOURCE
timeline = new TL.Timeline(
'timeline-embed',
`https://docs.google.com/spreadsheets/d/${source}/pubhtml`,
{
hash_bookmark: true,
initial_zoom: 1,
timenav_position: 'bottom',
}
)
</script>
</body>
</html>