Skip to content
This repository
tree: d523a0ceef
July 14, 2011
file 34 lines (30 sloc) 1.161 kb
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 31 32 33 34
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Responsive Images Test Page</title>
<script>
/*
//optional: set config options here!
var rwd_images = {
widthBreakPoint: 600
};
*/
</script>
<script src="responsiveimgs.js"></script>
<!-- demo styles -->
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
body { font-family: Helvetica, sans-serif; background: #222; color: #eee; margin: 20px auto; padding: 0 20px; max-width: 980px; }
img { border: 0; width: 100%; display: block; max-width: 100%; }
#cred { font-size: .7em; color: #aaa; }
a { color: #fff; }
</style>
</head>
<body>

<h1>Responsive Images Test Page</h1>
<p>In supported browsers, the following image will load either small or large version depending on screen resolution, making a single 1kb request before requesting the appropriate size.</p>

<img src="sample-content/running-sml.jpg?full=sample-content/running-lrg.jpg" />

<p id="cred"><strong>Photo credit (CC):</strong> Cia de Foto <a href="http://www.flickr.com/photos/ciadefoto/3192757134/in/pool-809956@N25/">Flickr Creative Commons</a></p>

</body>
</html>
Something went wrong with that request. Please try again.