-
Notifications
You must be signed in to change notification settings - Fork 6
/
index.html
104 lines (85 loc) · 4.86 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=640">
<title>pls.watch</title>
<meta name="description" content="shareable loops" />
<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" integrity="sha256-vx/OFQ/5RbFjcNI77SMCh/l9NqGwoT9iq+uJwso/Yec=" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/jquery/3.2.1/jquery.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/underscorejs/1.8.3/underscore-min.js" integrity="sha256-obZACiHd7gkOk9iIL/pimWMTJ4W/pBsKu+oZnSeBIek=" crossorigin="anonymous"></script>
<link rel="preload" href="https://cdn.jsdelivr.net/jquery.ui/1.11.4/jquery-ui.min.js" as="script" />
<link rel="preload" href="https://cdn.jsdelivr.net/npm/[email protected]/build/toastr.css" as="style" />
<link rel="preload" href="https://cdn.jsdelivr.net/npm/[email protected]/build/toastr.min.js" as="script" />
<link rel="preload" href="https://cdn.jsdelivr.net/jquery.mcustomscrollbar/3.1.5/jquery.mCustomScrollbar.min.css" as="style" />
<link rel="preload" href="https://cdn.jsdelivr.net/jquery.mcustomscrollbar/3.1.5/jquery.mCustomScrollbar.concat.min.js" as="script" />
<link rel="preload" href="/assets/play.ico" as="image" />
<link rel="preload" href="/assets/pause.ico" as="image" />
<link rel="preload" href="/assets/wait.ico" as="image" />
<link rel="preload" href="https://www.youtube.com/player_api" as="script" />
</head>
<body>
<div id="menu">
<span id="fullscreen-ui"><a id="fullscreen-toggle" title="click to go fullscreen">fullscreen</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>
<span id="help-ui"><a id="help-toggle" title="click to toggle help">help?</a></span>
</div>
<div><div id="box"></div></div>
<script>
'use strict';
$LAB
.script('pls.watch.js')
.script('pls.watch.editor.js')
.wait(function(){
normalizeUrl(window.location.href, renderPage);
});
</script>
<div id="help">
<div id="close-help" title="Click to close Help">×</div>
<h1><a href="https://pls.watch">pls.watch</a></h1>
<div id="version">%git-hash%</div>
<h3>About</h3>
<p>
create shareable loops and playlists using simple URL tokens<br/>
<span class="example">eg:
<a href="#v=ujAevYkuMJE&t=3">#v=ujAevYkuMJE&=3</a>
or <a href="#v=KA7fuPHnNyE&t=60;69.8&v=ZuHZSbPJhaY&t=1h;1h4.5s">#v=KA7fuPHnNyE&t=60;69.8&v=ZuHZSbPJhaY&t=1h;1h4.5s</a>
</span>
</p>
<h3>Basic Syntax</h3>
<p>
a video <span class="example">(.webm, .mp4 URL or YouTube ID)</span> <tt>#v=<video>[&t=<start>[;<end>]]</tt><br/>
an image <span class="example">(.png, .jpg, .gif URL or Imgur ID)</span> <tt>#i=<image>[&t=<duration>]</tt><br/>
a sound <span class="example">(SoundCloud Path)</span> <tt>#s=<path/sound>[&t=<start>[;<end>]]</tt>
</p>
<ul class="feature-list">
<li>→ <a href="https://github.com/lidel/pls.watch#url-parameters">Full Syntax Documentation with Examples</a></li>
<li>→ <a href="https://github.com/lidel/pls.watch#youtube">YouTube Playlist Import, Speed & Quality Control</a></li>
<li>→ <a href="https://github.com/lidel/pls.watch#imgur">Imgur and SoundCloud Support</a></li>
</ul>
<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>←</kbd> / <kbd>→</kbd> – seek 5s (add <kbd>ctrl</kbd> to seek 30s)</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>[</kbd> / <kbd>]</kbd> – decrease/increase playback speed (YouTube)</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: -->