forked from lidel/pls.watch
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
89 lines (71 loc) · 3.48 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>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=640">
<title>Minimalistic Youtube Looper</title>
<link href="/style.css" media="all" rel="stylesheet" />
<link rel="shortcut icon" href="/favicon.ico" />
<script src="https://cdn.jsdelivr.net/labjs/2.0.3/LAB.min.js"></script>
</head>
<body>
<div id="menu">
<span id="help-ui"><a id="help-toggle" title="click to toggle help">help</a> | </span>
<span id="editor-ui"><a id="editor-toggle" title="click to toggle playlist editor">editor</a> | </span>
<span id="random-ui"><a id="random" title="click to toggle random mode">random</a> | </span>
<span id="embed-ui"><a id="embed-toggle" title="click to get embed code for current playlist">embed</a> | </span>
<span id="shorten-ui"><a id="shorten" title="click to get a short URL for current playlist">shorten</a></span>
</div>
<div><div id="box"></div></div>
<script>
'use strict';
$LAB
.script('https://cdn.jsdelivr.net/jquery/3.0.0-alpha1/jquery.min.js')
.script('https://cdn.jsdelivr.net/underscorejs/1.8.3/underscore-min.js')
.wait()
.script('yt-looper.js')
.script('yt-looper.editor.js')
.wait(function(){
normalizeUrl(window.location.href, renderPage);
});
</script>
<div id="help">
<h1><a href="https://yt.aergia.eu">yt-looper</a></h1>
<div id="version">%git-hash%</div>
<h3>YouTube</h3>
<p>append <tt>#v=<videoId>&t=<start>;<end></tt> to the URL and enjoy a loop<br/>
<span class="example">eg:
<a href="#v=ZuHZSbPJhaY&t=1h1s;1h4s">#v=ZuHZSbPJhaY&=1h1s;1h4s</a>
or <a href="#v=lWqJTKdznaM&t=58;68&v=ZuHZSbPJhaY&t=1h;1h5s">#v=lWqJTKdznaM&t=58;68&v=ZuHZSbPJhaY&t=1h;1h5s</a>
</p>
<p>to import playlist and play n<sup>th</sup> video with editor open from start:<br/>
<tt>#list=<playlistId>&index=<n>&editor</tt><br/>
<span class="example">eg:
<a href="#list=PLyALKMPGOR5evINIHBRgtioZBuujYFaeS&index=13&editor">#list=PLyALKMPGOR5evINIHBRgtioZBuujYFaeS&index=13&editor</a></span>
</p>
<h3>Imgur and SoundCloud</h3>
<p><tt>#i=<imgurId>&t=<duration></tt><br/>
<tt>#s=<soundCloudPathTo/sound>&t=<start>;<end></tt> <br/>
<span class="example">eg:
<a href="#i=lkD38.gifv&t=5s&s=sacredbones/pharmakon-body-betrays-itself">#i=lkD38.gifv&t=5s&s=sacredbones/pharmakon-body-betrays-itself</a></span>
</p>
<p style="text-align:right;font-size:small"><a href="https://github.com/lidel/yt-looper#url-parameters">more examples at GitHub</a></p>
<h2>keyboard shortcuts</h2>
<ul>
<li><kbd>?</kbd> – display help (toggle)</li>
<li><kbd>f</kbd> – fullscreen (toggle)</li>
<li><kbd>spacebar</kbd> – play/pause player (toggle)</li>
<li><kbd>k</kbd> / <kbd>j</kbd> – jump to previous/next video (in playlists with multiple videos)</li>
<li><kbd>h</kbd> / <kbd>l</kbd> – jump to previous/next interval (if a video has more than one)</li>
<li><kbd>-</kbd> / <kbd>+</kbd> – volume control</li>
<li><kbd>m</kbd> – mute video (toggle)</li>
<li><kbd>x</kbd> – panic button: mute, pause and hide player (toggle)</li>
<li><kbd>b</kbd> – hide player, but keep playing audio in background (toggle)</li>
<li><kbd>r</kbd> – jump to random item on playlist</li>
<li><kbd>e</kbd> – playlist editor (toggle)</li>
<li><kbd>s</kbd> – display short URL for current playlist</li>
</ul>
</div>
</body>
</html>
<!-- vim:set ts=2 sw=2 et: -->