-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
91 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>Responsive images with picturePolyfill - by Andrea Verlicchi</title> | ||
<meta name="viewport" content="width=device-width"> | ||
<style> | ||
body { margin: 0; padding: 0; text-align: center; } | ||
.element a, .element span, .element img { display: block; } | ||
img { width: 100%; height: auto; border: 0; } | ||
.element h2 { padding: 0 16px; } | ||
.element:hover h2 { text-decoration: underline; } | ||
</style> | ||
</head> | ||
<body> | ||
<div id="container"> | ||
<h1>picturePolyfill Test</h1> | ||
<p>To test script solidness.</p> | ||
<div class="element"> | ||
<h2>Most complex usage</h2> | ||
<span data-alt="A beautiful image" data-picture='[ | ||
{"srcset": "../img/320x320.gif"}, | ||
{"srcset": ["../img/768x768.gif", "../img/768x768x2.gif"], "media": "(min-width: 321px)"}, | ||
{"srcset": ["../img/1024x1024.gif", "../img/1024x1024x2.gif"], "media": "(min-width: 769px)"}, | ||
{"srcset": ["../img/1280x1280.gif", "../img/1280x1280x2.gif"], "media": "(min-width: 1025px)"}, | ||
{"srcset": ["../img/1440x1440.gif", "../img/1440x1440x2.gif"], "media": "(min-width: 1281px)"}, | ||
{"srcset": ["../img/1920x1920.gif", "../img/1920x1920x2.gif"], "media": "(min-width: 1441px)"} | ||
]'> | ||
<noscript> | ||
<img src="../img/1280x1280.gif" alt="A beautiful image"/> | ||
</noscript> | ||
</span> | ||
</div> | ||
</div> | ||
<script src="../external/matchMedia.js"></script> | ||
<script src="../picturePolyfill.js"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters