forked from scottjehl/picturefill
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
30 lines (26 loc) · 1.16 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
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Picturefill</title>
<script src="external/matchmedia.js"></script>
<script src="picturefill.js"></script>
<style>
body { font-family: sans-serif }
img { max-width: 100% }
</style>
</head>
<body>
<h1>Picturefill: A <picture> element polyfill</h1>
<p>For more info: <a href="http://github.com/scottjehl/picturefill">see project home.</a></p>
<span data-picture data-alt="A giant stone face at The Bayon temple in Angkor Thom, Cambodia">
<span data-src="external/imgs/small.jpg"></span>
<span data-src="external/imgs/medium.jpg" data-media="(min-width: 400px)"></span>
<span data-src="external/imgs/large.jpg" data-media="(min-width: 800px)"></span>
<span data-src="external/imgs/extralarge.jpg" data-media="(min-width: 1000px)"></span>
<!-- Fallback content for non-JS browsers. Same img src as the initial, unqualified source element. -->
<noscript><img src="external/imgs/small.jpg" alt="A giant stone face at The Bayon temple in Angkor Thom, Cambodia"></noscript>
</span>
</body>
</html>