-
Notifications
You must be signed in to change notification settings - Fork 30
/
index.html
89 lines (86 loc) · 2.09 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" type="text/css" href="./src/css/base.css">
<link rel="stylesheet" type="text/css" href="./src/css/chapter.css">
<style>
.container {
margin-top: 400px;
}
</style>
</head>
<body>
<div class="container"></div>
<script type="module">
import { Player, Chapter } from './src/main.js'
const audio = {
title: 'STS-133 FD11 Mission Status Briefing',
artist: 'NASA',
src: `./pages/public/assets/STS-133_FD11_Mission_Status_Briefing.mp3`,
cover: 'https://www.nasa.gov/sites/all/themes/custom/nasatwo/images/nasa-logo.svg',
}
const chapters = [
{
'id': 'chp0',
'startTime': 0,
'endTime': 16,
'title': 'Introduction',
},
{
'id': 'chp1',
'startTime': 16,
'endTime': 285,
'title': 'Mission Status Briefing by Bryan Lunney',
},
{
'id': 'chp2',
'startTime': 285,
'endTime': 348,
'title': 'Elaboration on the Shuttle\'s Status',
},
{
'id': 'chp3',
'startTime': 348,
'endTime': 444,
'title': 'Explaining the Crew\'s Schedule',
},
{
'id': 'chp4',
'startTime': 444,
'endTime': 503,
'title': 'What the Atmosphere Is Like at ISS and Discovery',
},
{
'id': 'chp5',
'startTime': 503,
'endTime': 556,
'title': 'Explaining Cryo Margins',
},
{
'id': 'chp6',
'startTime': 556,
'endTime': 637,
'title': 'Final Q&A',
},
{
'id': 'chp7',
'startTime': 637,
'endTime': 666,
'title': 'Wrap Up',
},
]
Player.use(Chapter)
const player = new Player({
container: document.querySelector('.container'),
audio: {
...audio,
chapters,
},
})
</script>
</body>
</html>