forked from llama/stretchsite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
stretchsite.html
46 lines (33 loc) · 1.19 KB
/
stretchsite.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
<head>
<title>StretchSite - Fix YouTube Aspect Ratio</title>
<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-23141447-3', 'auto');
ga('send', 'pageview');
</script>
</head>
<body>
<p style="width:450px; margin:0 auto">
<b>StretchSite:</b> Play YouTube Videos in the Correct Aspect Ratio
</p>
{{> main}}
</body>
<template name="main">
<br>
<input id="videourl" placeholder="Paste YouTube link">
<br>
<div class="settings">
<button data-scale="0.75">16:9 -> 4:3</button>
<button data-scale="1.333333333">4:3 -> 16:9</button>
<input id="scale" type='range' min=-1 max=1 step=0.01 value=0>
<input id="zoom" type='range' min=-0.6 max=0.6 step=0.01 value=0>
</div>
<br>
<iframe id='thevideo' src="" frameborder="0" allowfullscreen></iframe>
<p class='footer'>
Please email feedback to <a href='mailto:[email protected]'>[email protected]</a>.
</p>
</template>