-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
40 lines (37 loc) · 1.9 KB
/
Copy pathindex.html
File metadata and controls
40 lines (37 loc) · 1.9 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
<!DOCTYPE html>
<html>
<head>
<link rel="icon" href="icon.png">
<link rel="stylesheet" type="text/css" href="styles.min.css">
<title>YouTube Encore</title>
</head>
<body>
<div id="qrcontainer"><canvas id="qrcanvas"></canvas></div>
<div id="container">
<h1><a href="https://www.youtubeencore.com/">YouTube Encore</a></h1>
<div id="player"></div>
<form id="loop-times" action="javascript:void(0);">
<p><input type="text" id="startTime" name="startTime" value="0:00" />
<button type="button" id="loop-set-start">[</button>
<a id="reset-times" href="#" title="Reset loop endpoints">—</a>
<input type="text" id="endTime" name="endTime" value="0:00" />
<button type="button" id="loop-set-end">]</button>
<input type="submit" value="Loop" />
<input type="button" value="QR" id="qr-button" /></p>
</form>
<p>Save this bookmarklet to loop YouTube videos:<br /> <a href="javascript:(function() {var l=window.location.href;if(l.indexOf('youtube.com')>-1){var i=l.substr(l.indexOf('v=')+2,11);window.location='https://www.youtubeencore.com/watch?v='+i;}})()
">Watch on YTEncore</a></p>
<p style="font-size:70%">Code by <a href="https://www.peterbeard.co">Peter Beard</a>. Get it on <a href="https://github.com/PeterBeard/youtubeencore">GitHub</a>.</p>
</div>
<script type="text/javascript" src="qr.min.js"></script>
<script type="text/javascript" src="main.min.js"></script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-3710255-4', 'youtubeencore.com');
ga('send', 'pageview');
</script>
</body>
</html>