Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 31 lines (26 sloc) 1.177 kb
c839311 div branch becomes the new default
Scott Jehl authored
1 <!DOCTYPE html>
77defd7 all in.
scottjehl authored
2 <html>
3 <head>
4 <meta charset=utf-8 />
5 <meta name="viewport" content="width=device-width,initial-scale=1">
6 <title>Picturefill</title>
8268ab3 by binding to domready and load events (as a fallback), we can delive…
scottjehl authored
7 <script src="external/matchmedia.js"></script>
8 <script src="picturefill.js"></script>
77defd7 all in.
scottjehl authored
9 <style>
10 body { font-family: sans-serif }
11 img { max-width: 100% }
12 </style>
13 </head>
14 <body>
15
16 <h1>Picturefill: A &lt;picture&gt; element polyfill</h1>
17
18 <p>For more info: <a href="http://github.com/scottjehl/picturefill">see project home.</a></p>
19
c839311 div branch becomes the new default
Scott Jehl authored
20 <div data-picture data-alt="A giant stone face at The Bayon temple in Angkor Thom, Cambodia">
21 <div data-src="external/imgs/small.jpg"></div>
22 <div data-src="external/imgs/medium.jpg" data-media="(min-width: 400px)"></div>
23 <div data-src="external/imgs/large.jpg" data-media="(min-width: 800px)"></div>
24 <div data-src="external/imgs/extralarge.jpg" data-media="(min-width: 1000px)"></div>
404c39d This refactors the proposed markup (slightly) and picturefill JS to b…
scottjehl authored
25
26 <!-- Fallback content for non-JS browsers. Same img src as the initial, unqualified source element. -->
27 <noscript><img src="external/imgs/small.jpg" alt="A giant stone face at The Bayon temple in Angkor Thom, Cambodia"></noscript>
c839311 div branch becomes the new default
Scott Jehl authored
28 </div>
77defd7 all in.
scottjehl authored
29 </body>
30 </html>
Something went wrong with that request. Please try again.