-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
71 lines (69 loc) · 2.14 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
<!DOCTYPE html>
<html>
<head>
<title>Random YouTube Videos</title>
<meta charset="UTF-8" />
</head>
<body>
<div id="frame">
<div id="player-container">
<div id="player">
<video id="video" preload="none">
<source type="video/youtube" />
</video>
</div>
<div id="api-keys-missing" class="box" hidden>
Please provide the list of YouTube API keys<br />
(under Settings in the bottom left corner)
</div>
</div>
<div id="controls">
<div id="controls-left">
<details id="settings">
<summary>Settings</summary>
<dl id="settings-list" class="box">
<dt>YouTube API keys (one per line)</dt>
<dd>
<textarea id="api-keys" rows="5"></textarea>
</dd>
<dt>Search query generation algorithm</dt>
<dd>
<select id="query-generation-algorithm">
<option value="NUMBERS" selected>Numbers</option>
<option value="WIKIPEDIA_WORDS">Wikipedia words</option>
</select>
</dd>
</dl>
</details>
</div>
<button id="next">Load video</button>
<div id="controls-right">
<details id="spoilers" hidden>
<summary>Spoilers</summary>
<dl id="spoilers-list" class="box">
<dt>
Video title
<a id="translate-title" class="translate-link" target="_blank"
>Translate</a
>
</dt>
<dd id="title"></dd>
<dt>
Search query
<a
id="translate-search-query"
class="translate-link"
target="_blank"
>Translate</a
>
</dt>
<dd id="search-query"></dd>
</dl>
</details>
<a id="open-on-youtube" target="_blank" hidden>Open on YouTube</a>
</div>
</div>
</div>
<script src="src/index.js"></script>
</body>
</html>