-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
54 lines (45 loc) · 1.59 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="./style.css">
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
<script src="./node_modules/@babel/polyfill/dist/polyfill.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.11/lodash.min.js"></script>
<script src="./resizbleNode.js"></script>
<script src="./script.js"></script>
<title>Document</title>
</head>
<body>
<div id="progress-bar-container"></div>
<div id="progress-bar-container1"></div>
<div id="progress-bar-container2"></div>
<script>
const video_length = 16000;
const interval = 30;
const action = (time) => {
console.log(time);
};
let progressBar;
window.addEventListener('DOMContentLoaded', () => {
progressBar = new ProgressBar({
container: 'progress-bar-container',
length: video_length,
durationSlider: {
value: interval,
step: interval,
min: interval,
max: 600,
},
startTimestamp: new Date().getTime(),
});
progressBar.setActionOnSliderRelease(action);
// setTimeout(() => {
// progressBar.setSliderWidth(570);
// }, 10000);
});
</script>
</body>
</html>