forked from scottjehl/picturefill
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
29 lines (26 loc) · 985 Bytes
/
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
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Posterfill</title>
<script src="external/matchmedia.js"></script>
<script src="posterfill.js"></script>
<style>
body { font-family: sans-serif }
video { max-width: 100% }
</style>
</head>
<body>
<h1>Posterfill: Responsive poster attributes for the <video> element</h1>
<p>For more info: <a href="http://github.com/lewisnyman/posterfill">see project home.</a></p>
<video controls>
<source src="foo.ogg" type="video/ogg">
<source src="foo.mp4" type="video/mp4">
<div data-poster="external/imgs/small.jpg"></div>
<div data-poster="external/imgs/medium.jpg" data-media="(min-width: 400px)"></div>
<div data-poster="external/imgs/large.jpg" data-media="(min-width: 800px)"></div>
<div data-poster="external/imgs/extralarge.jpg" data-media="(min-width: 1000px)"></div>
</video>
</body>
</html>