Plugin Power Saver: Implement 'poster' functionality.
[chromium-blink-merge.git] / chrome / renderer / resources / mobile_youtube_plugin.html
blobd2788ff1e8f8e21a2ca68a48c191b6bae360e421
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <meta name="viewport" content="width=device-width, user-scalable=no">
5 <script>
6 function insertBackground() {
7 var video = templateData['video_id'];
8 document.body.style.backgroundImage = "url('http://img.youtube.com/vi/" + video + "/0.jpg')";
10 </script>
11 <style type="text/css">
12 body {
13 background-color: black;
14 background-repeat: no-repeat;
15 background-size: cover;
16 overflow: hidden;
19 #inner {
20 position: absolute;
21 left: 50%;
22 top: 50%;
23 margin-left: -33px;
24 margin-top: -23px;
27 #logo {
28 position: absolute;
29 right: 5px;
30 bottom: 5px;
33 #play {
34 opacity: .7;
37 #youtube {
38 opacity: .7;
40 </style>
41 </head>
42 <body id="body" onLoad="insertBackground()">
43 <div id="logo"><img id="youtube" src="youtube.png"/></div>
44 <div id="inner"><img id="play" src="play.png" onclick="plugin.openYoutubeURL();"/></div>
45 </body>
46 </html>