Skip to content
Newer
Older
100644 31 lines (26 sloc) 1.15 KB
c839311 div branch becomes the new default
Scott Jehl authored Jun 20, 2012
1 <!DOCTYPE html>
77defd7 all in.
scottjehl authored Feb 21, 2012
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 Mar 22, 2012
7 <script src="external/matchmedia.js"></script>
8 <script src="picturefill.js"></script>
77defd7 all in.
scottjehl authored Feb 21, 2012
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 Jun 20, 2012
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 Mar 22, 2012
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 Jun 20, 2012
28 </div>
77defd7 all in.
scottjehl authored Feb 21, 2012
29 </body>
30 </html>
Something went wrong with that request. Please try again.