-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathchapters.html
More file actions
59 lines (59 loc) · 1.84 KB
/
chapters.html
File metadata and controls
59 lines (59 loc) · 1.84 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Chapters Example</title>
<link rel="stylesheet" href="/src/style.css" />
<style>
.tabs {
display: flex;
gap: 10px;
margin: 20px 0;
border-bottom: 2px solid #ddd;
}
.tab-button {
padding: 10px 20px;
background: none;
border: none;
border-bottom: 3px solid transparent;
cursor: pointer;
font-size: 16px;
color: #666;
transition: all 0.3s;
}
.tab-button:hover {
color: #333;
}
.tab-button.active {
color: #0066cc;
border-bottom-color: #0066cc;
font-weight: bold;
}
.tab-content {
display: none;
}
.tab-content.active {
display: block;
}
</style>
</head>
<body>
<div class="container">
<a href="../" class="back-link">← Back to examples</a>
<h1>Chapters Example</h1>
<p>This example demonstrates three different ways to configure chapters:</p>
<div class="tabs">
<button class="tab-button active" data-tab="auto">Auto-generate (AI)</button>
<button class="tab-button" data-tab="url">VTT URL</button>
<button class="tab-button" data-tab="manual">Manual Object</button>
</div>
<video id="player" class="video-js" controls preload="auto" width="960" height="540"></video>
<h2>Example Code</h2>
<div class="code-block">
<pre><code id="code-display" class="language-javascript"></code></pre>
</div>
</div>
<script type="module" src="/src/chapters.ts"></script>
</body>
</html>